:root {
    --sidebar-bg: #10b981;
    --sidebar-text: #ffffff;
    --sidebar-active: rgba(255, 255, 255, 0.2);
    --danger: #f87171;
}

body.dashboard {
    display: flex;
    min-height: 100vh;
    background-color: #f9fafb;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--sidebar-bg), #34d399);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 2px 0 12px rgba(52, 211, 153, 0.12);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.sidebar__logo {
    width: 40px;
    height: 40px;
}

.sidebar__menu {
    display: grid;
    gap: 0.5rem;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sidebar__link:hover {
    background-color: var(--sidebar-active);
    transform: translateX(4px);
}

.sidebar__link.is-active {
    background-color: rgba(251, 191, 36, 0.3);
    color: #fef3c7;
    font-weight: 600;
}

.sidebar__link--danger {
    color: #fee2e2;
}

.sidebar__icon {
    font-size: 1.25rem;
}

.sidebar__footer {
    margin-top: auto;
    display: grid;
    gap: 0.5rem;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content__header {
    padding: 2rem 3rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(52, 211, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.content__header h1 {
    margin: 0 0 0.5rem;
}

.content__subtitle {
    margin: 0;
    color: #6b7280;
}

.content__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.content__body {
    padding: 2.5rem 3rem;
    display: grid;
    gap: 2rem;
    background-color: #f9fafb;
    flex: 1;
}

.content__footer {
    padding: 1.5rem 3rem;
    background-color: #ffffff;
    border-top: 1px solid rgba(52, 211, 153, 0.15);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background-color: #ffffff;
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 20px 48px rgba(52, 211, 153, 0.12);
    transform: translateY(-2px);
    border-color: rgba(52, 211, 153, 0.2);
}

.card__title {
    font-size: 1rem;
    color: #10b981;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.card__stat {
    font-size: 2rem;
    font-weight: 700;
    color: #34d399;
    margin: 0;
}

.card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.badge--warning {
    background-color: rgba(249, 115, 22, 0.15);
    color: #c2410c;
}

.badge--info {
    background-color: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(52, 211, 153, 0.08);
}

.table thead {
    background-color: #34d399;
    color: #ffffff;
}

.table th,
.table td {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.95rem;
}

.table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.table tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

.timeline {
    display: grid;
    gap: 1.25rem;
}

.timeline__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.timeline__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #34d399;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.2);
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline__content h4 {
    margin: 0 0 0.25rem;
}

.timeline__content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.pill-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.35rem 0.85rem;
    background-color: rgba(52, 211, 153, 0.15);
    color: #10b981;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-list {
    display: grid;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background-color: rgba(52, 211, 153, 0.1);
    color: #10b981;
}

.status-item span {
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), rgba(52, 211, 153, 0));
}

.empty-state h3 {
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6b7280;
}

.auth {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: linear-gradient(160deg, rgba(167, 243, 208, 0.3), rgba(125, 211, 252, 0.2));
    padding: 2rem 1rem;
}

.auth__card {
    width: min(1000px, 100%);
    background-color: #ffffff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(52, 211, 153, 0.12), 0 0 0 1px rgba(52, 211, 153, 0.08);
    overflow: hidden;
}

.auth__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* Left Side: Logo & Branding */
.auth__left {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(52, 211, 153, 0.9));
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth__left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.auth__header {
    text-align: center;
    display: grid;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth__logo {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.auth__logo:hover {
    transform: scale(1.08);
}

.auth__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth__caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Right Side: Login Form */
.auth__right {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 100vh;
}

.auth__form {
    display: grid;
    gap: 1.25rem;
}

.auth__field {
    display: grid;
    gap: 0.5rem;
    position: relative;
}

.auth__field span {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
}

.auth__field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(52, 211, 153, 0.25);
    border-radius: 12px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
    color: #1f2937;
    font-family: inherit;
}

.auth__field input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background-color: #ffffff;
}

/* Password wrapper with toggle */
.auth__field--password {
    position: relative;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: color 0.2s ease;
    border-radius: 6px;
}

.password-toggle:hover {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.password-toggle svg {
    display: block;
}

/* Luxury Select/Combobox */
.auth__field--select {
    position: relative;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper select {
    width: 100%;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    border: 2px solid rgba(52, 211, 153, 0.25);
    border-radius: 12px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1f2937;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.select-wrapper select:hover {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 8px rgba(52, 211, 153, 0.08);
}

.select-wrapper select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 4px 12px rgba(52, 211, 153, 0.15);
    background-color: #ffffff;
}

.select-wrapper select option {
    padding: 0.75rem;
    background-color: #ffffff;
    color: #1f2937;
    font-size: 1rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    pointer-events: none;
    color: #6b7280;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.select-wrapper:hover .select-arrow {
    color: #10b981;
}

.select-wrapper select:focus + .select-arrow {
    color: #10b981;
    transform: rotate(180deg);
}

.auth__submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth__footer {
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

.auth__footer a {
    color: #10b981;
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.auth__footer a:hover {
    color: #059669;
    text-decoration: underline;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.back-to-home:hover {
    color: #10b981;
}

.back-to-home svg {
    transition: transform 0.2s ease;
}

.back-to-home:hover svg {
    transform: translateX(-2px);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background-color: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert strong {
    font-weight: 600;
}

/* Tablet & Mobile Responsive for Auth */
@media (max-width: 968px) {
    .auth__split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth__left {
        padding: 2.5rem 2rem;
        min-height: 300px;
    }

    .auth__right {
        padding: 2.5rem 2rem;
        max-height: none;
        overflow-y: visible;
    }

    .auth__logo {
        width: 120px;
        height: 120px;
    }

    .auth__title {
        font-size: 1.5rem;
    }

    .auth__caption {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth {
        padding: 1rem 0.75rem;
        min-height: 100vh;
    }

    .auth__card {
        border-radius: 20px;
    }

    .auth__split {
        min-height: auto;
    }

    .auth__left {
        padding: 2rem 1.5rem;
        min-height: 250px;
    }

    .auth__right {
        padding: 2rem 1.5rem;
        max-height: none;
        overflow-y: visible;
    }

    .auth__logo {
        width: 90px;
        height: 90px;
    }

    .auth__title {
        font-size: 1.375rem;
    }

    .auth__caption {
        font-size: 0.9rem;
    }

    .auth__field span {
        font-size: 0.85rem;
    }

    .auth__field input,
    .select-wrapper select {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .password-wrapper input {
        padding-right: 2.5rem;
    }

    .password-toggle {
        right: 0.5rem;
        padding: 0.375rem;
    }

    .password-toggle svg {
        width: 18px;
        height: 18px;
    }

    .select-wrapper select {
        padding-right: 2.5rem;
    }

    .select-arrow {
        right: 0.875rem;
        width: 14px;
        height: 14px;
    }

    .auth__submit {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .auth__footer {
        font-size: 0.85rem;
    }
}

@media (max-width: 960px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .content__header,
    .content__body,
    .content__footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .content__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .content__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

