
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --dark: #242126;
    --dark-light: #302b31;
    --orange: #e9854b;
    --orange-dark: #cf6134;
    --peach: #f8e3d3;
    --cream: #fff9f3;
    --white: #ffffff;
    --text: #342a28;
    --muted: #928783;
    --border: #f1e5dc;
    --green: #269b60;
    --red: #dc5555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
}

a {
    text-decoration: none;
}

.admin-wrapper {
    min-height: 100vh;
}

/* SIDEBAR */

.admin-sidebar {
    width: 255px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    transition: transform .3s ease;
}

.sidebar-brand {
    text-align: center;
    padding: 28px 15px 24px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand-icon {
    font-size: 49px;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.sidebar-brand h4 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    margin-bottom: 0;
    color: white;
}

.sidebar-brand span {
    font-size: 10px;
    letter-spacing: 3px;
    color: #e9b18f;
}

.sidebar-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #a79b99;
    padding: 23px 24px 10px;
    font-weight: 700;
}

.sidebar-menu {
    padding: 0 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    margin-bottom: 5px;
    color: #e6dfdd;
    font-size: 13px;
    font-weight: 500;
    border-radius: 9px;
    transition: .25s;
}

.sidebar-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.sidebar-link:hover {
    background: rgba(233,133,75,.15);
    color: #ffb17e;
}

.sidebar-link.active {
    background: linear-gradient(110deg, #e9854b, #d76d3d);
    color: white;
    box-shadow: 0 4px 12px rgba(233,133,75,.2);
}

.sidebar-bottom {
    margin-top: auto;
    padding: 0 12px;
}

.logout-link:hover {
    background: rgba(220,85,85,.15);
    color: #ff8888;
}

.sidebar-footer {
    margin: 18px 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    color: #c3aaa0;
    font-size: 11px;
}

.sidebar-footer i {
    color: var(--orange);
    margin-right: 5px;
}

.sidebar-overlay {
    display: none;
}

/* MAIN CONTENT */

.admin-main {
    margin-left: 255px;
    min-height: 100vh;
}

/* TOPBAR */

.admin-topbar {
    height: 80px;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 17px;
}

.topbar-left h5 {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}

.topbar-left span {
    color: var(--muted);
    font-size: 12px;
}

.sidebar-toggle {
    border: none;
    background: #fff7f0;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    font-size: 23px;
    color: var(--dark);
    cursor: pointer;
}

.topbar-date {
    font-size: 12px;
    color: #786c67;
    padding-right: 20px;
    border-right: 1px solid var(--border);
}

.topbar-date i {
    color: var(--orange);
    margin-right: 5px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    background: var(--peach);
    display: grid;
    place-items: center;
    color: var(--orange-dark);
    font-size: 22px;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info strong {
    font-size: 13px;
}

.profile-info small {
    color: var(--muted);
    font-size: 11px;
}

/* DASHBOARD CONTENT */

.dashboard-content {
    padding: 28px 30px;
    max-width: 1800px;
    margin: auto;
}

/* WELCOME BANNER */

.welcome-banner {
    min-height: 225px;
    border-radius: 19px;
    padding: 38px 45px;
    background: linear-gradient(110deg, #f6d5bb, #e4a18c);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 9px 22px rgba(160,102,74,.08);
}

.welcome-text {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.welcome-label {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    color: #743e2d;
}

.welcome-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 43px);
    margin: 10px 0;
    color: #4b251d;
}

.welcome-text p {
    color: #613a30;
    font-size: 14px;
    line-height: 1.8;
    max-width: 480px;
}

.welcome-btn {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    background: var(--orange-dark);
    color: white;
    padding: 11px 19px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    transition: .25s;
}

.welcome-btn:hover {
    background: #a94726;
    color: white;
    transform: translateY(-2px);
}

.welcome-decoration {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    color: rgba(160,82,57,.24);
}

/* SECTION HEADING */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 20px;
}

.section-heading h3 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    font-weight: 700;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0 0;
}

.today-badge {
    padding: 9px 13px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #796a64;
    font-size: 11px;
}

/* STATISTICS CARDS */

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 22px 18px;
    min-height: 145px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: .25s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(70,45,35,.07);
}

.stat-icon {
    height: 57px;
    width: 57px;
    min-width: 57px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 24px;
}

.stat-icon.peach {
    background: #fce9dc;
    color: #dc7548;
}

.stat-icon.orange {
    background: #fce7d8;
    color: #d66b38;
}

.stat-icon.pink {
    background: #fbe2e2;
    color: #d16b68;
}

.stat-icon.purple {
    background: #eee6f7;
    color: #9771ba;
}

.stat-details span {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.stat-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    font-weight: 700;
    margin: 5px 0;
}

.stat-details small {
    color: #a49a96;
    font-size: 10px;
}

.stat-details .stat-positive {
    color: var(--green);
}

/* DASHBOARD CARDS */

.dashboard-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 23px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(70,45,35,.025);
}

.card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-heading h5 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
}

.card-heading h5 i {
    color: var(--orange-dark);
    margin-right: 7px;
}

.card-heading p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
}

.period-select {
    width: 120px;
    border-radius: 8px;
    font-size: 11px;
    border-color: var(--border);
}

.chart-container {
    height: 245px;
    position: relative;
}

/* RECENT APPOINTMENTS */

.view-all {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.appointment-list {
    display: flex;
    flex-direction: column;
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid #f4eeea;
}

.appointment-item:last-child {
    border-bottom: none;
}

.customer-avatar {
    width: 37px;
    height: 37px;
    min-width: 37px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f8dfd0;
    color: #bd633e;
    font-size: 11px;
    font-weight: 700;
}

.pink-bg {
    background: #f8e0e5;
    color: #bc6179;
}

.purple-bg {
    background: #ece4f6;
    color: #8868a8;
}

.orange-bg {
    background: #fce8d4;
    color: #bd7443;
}

.appointment-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.appointment-info strong {
    font-size: 11px;
}

.appointment-info span {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

.appointment-time {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.appointment-time strong {
    font-size: 10px;
}

.appointment-time span {
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px;
}

.status-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 6px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.confirmed {
    background: #dff5e7;
    color: #23854b;
}

.pending {
    background: #fff0dc;
    color: #d18735;
}

.cancelled {
    background: #fde5e5;
    color: #ce4d4d;
}

/* QUICK ACTIONS */

.quick-actions-section {
    margin-top: 28px;
}

.quick-actions-section h5 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    margin-bottom: 16px;
    font-weight: 700;
}

.quick-action {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    transition: .25s;
}

.quick-action:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
    transform: translateY(-3px);
}

.quick-action span {
    font-size: 11px;
    font-weight: 600;
    flex: 1;
}

.quick-action > i {
    color: var(--muted);
    font-size: 14px;
}

.quick-action-icon {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #fff0e5;
    color: var(--orange-dark);
    display: grid;
    place-items: center;
    font-size: 17px;
}

.dashboard-footer {
    text-align: center;
    color: #a99c95;
    font-size: 11px;
    margin-top: 35px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 950;
    }

    .admin-main {
        margin-left: 0;
    }

    .dashboard-content {
        padding: 22px 18px;
    }
}

@media (max-width: 576px) {

    .admin-topbar {
        padding: 0 14px;
        height: 70px;
    }

    .topbar-left h5 {
        font-size: 15px;
    }

    .topbar-left span {
        font-size: 10px;
    }

    .topbar-date {
        display: none;
    }

    .profile-info {
        display: none;
    }

    .welcome-banner {
        padding: 27px 22px;
        min-height: 230px;
    }

    .welcome-decoration {
        right: -5px;
        font-size: 85px;
        opacity: .6;
    }

    .welcome-text h1 {
        font-size: 30px;
    }

    .welcome-text p {
        font-size: 12px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .section-heading h3 {
        font-size: 22px;
    }

    .appointment-item {
        gap: 7px;
    }

    .appointment-time {
        display: none;
    }

    .status-badge {
        font-size: 8px;
        padding: 5px 7px;
    }

    .dashboard-card {
        padding: 17px;
    }

    .chart-container {
        height: 210px;
    }
}
