* {
    box-sizing: border-box;
}

body {
    font-family: Inter, Arial, sans-serif;
    margin: 0;
    padding: 30px;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: radial-gradient(circle at top, #f7f9fc, #e8eef6);
    color: #1f2937;
}

h1 {
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* КОНТЕЙНЕР */
.container {
    width: 100%;
    max-width: 460px;
}

/* ФОРМА */
form {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    backdrop-filter: blur(8px);
}

/* INPUTS */
input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: white;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* КНОПКИ */
button {
    padding: 11px 14px;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-1px);
    background: #2563eb;
}

/* СТАТИСТИКА */
#stats {
    background: white;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* КАРТОЧКА */
.card {
    list-style: none;
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);

    display: flex;
    flex-direction: column;
    gap: 8px;

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* HEADER */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* КАТЕГОРИЯ */
.category {
    background: #3b82f6;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
}

/* ДАТА */
.date {
    font-size: 12px;
    color: #6b7280;
}

/* СТАТУС */
.status {
    font-weight: 600;
}

/* КНОПКИ В КАРТОЧКЕ */
.card button {
    width: 100%;
}

/* СТАТУС КНОПКА */
.status-btn {
    background: #22c55e;
}

.status-btn:hover {
    background: #16a34a;
}

/* УДАЛЕНИЕ */
.delete {
    background: #ef4444;
}

.delete:hover {
    background: #dc2626;
}

/* ЛОГИН */
.login-box {
    margin-top: 90px;
    background: white;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 320px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ЛОГИН INPUT */
.login-box input {
    padding: 12px;
}

/* ВЫХОД */
.logout {
    background: #ef4444;
    margin-bottom: 10px;
}

.logout:hover {
    background: #dc2626;
}
.top-bar {
    width: 100%;
    max-width: 900px;

    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: white;

    padding: 16px 20px;
    border-radius: 14px;

    margin-bottom: 25px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    animation: fadeDown 0.5s ease;
}

.top-bar-title {
    font-size: 18px;
    font-weight: 700;
}

.top-bar-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

/* лёгкая анимация появления */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}