* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(145deg, #e6e9f0, #eef1f5);
    min-height: 100vh;
}

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: #f4f6fb;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.05),
                -8px -8px 20px rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.4s ease;
}

.auth-card h1 {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.auth-card h2 {
    font-size: 18px;
    margin-top: 10px;
}

.auth-card input {
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: #eef1f6;
    font-size: 14px;
    outline: none;
}

.auth-card button {
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #3b82f6;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.auth-card button:hover {
    transform: translateY(-2px);
}

.switch-auth {
    font-size: 13px;
    text-align: center;
}

.switch-auth span {
    color: #3b82f6;
    cursor: pointer;
}

.error {
    color: red;
    font-size: 13px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: #f4f6fb;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 10px rgba(0,0,0,0.03);
}

.logo {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 40px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar nav a {
    font-size: 14px;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
}

.sidebar nav a.active {
    color: #3b82f6;
}

.sidebar nav a:hover {
    transform: translateX(5px);
}

.logout {
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #ef4444;
    color: white;
    cursor: pointer;
}

.main {
    flex: 1;
    padding: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1;
    background: #f4f6fb;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 6px 6px 15px rgba(0,0,0,0.05),
                -6px -6px 15px rgba(255,255,255,0.8);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.card p {
    font-size: 22px;
    font-weight: 600;
}

.create {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.create input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: #eef1f6;
}

.create button {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: #3b82f6;
    color: white;
    cursor: pointer;
}

.create select,
.create input[type="date"] {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: #eef1f6;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item {
    background: #f4f6fb;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item button {
    background: #ef4444;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .sidebar nav {
        flex-direction: row;
        gap: 10px;
    }

    .main {
        padding: 20px;
    }

    .stats {
        flex-direction: column;
    }

    .create {
        flex-direction: column;
    }
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #e5e7eb;
    cursor: pointer;
    transition: 0.2s;
}

.filter.active {
    background: #3b82f6;
    color: white;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input,
.search-bar select {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: #eef1f6;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    padding: 12px 16px;
    border-radius: 10px;
    background: #111827;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.item {
    animation: fadeInItem 0.25s ease;
}

.item {
    animation: fadeInItem 0.25s ease;
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}