/* =========================================================
   DREAMNATURE ADMIN CMS
   ========================================================= */

:root {

    --green-950: #0b2e1c;
    --green-900: #103d25;
    --green-800: #14532d;
    --green-700: #166534;
    --green-600: #15803d;
    --green-500: #22c55e;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;

    --white: #ffffff;

    --gray-950: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    --danger: #dc2626;
    --danger-bg: #fef2f2;

    --sidebar-width: 270px;

    --topbar-height: 82px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm:
        0 1px 3px rgba(0, 0, 0, .06);

    --shadow-md:
        0 8px 30px rgba(0, 0, 0, .07);

    --transition:
        all .25s ease;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family: 'Inter', sans-serif;

    background: #f5f7f6;

    color: var(--gray-800);

    font-size: 14px;

    line-height: 1.6;
}


a {
    text-decoration: none;

    color: inherit;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   MAIN WRAPPER
   ========================================================= */

.admin-wrapper {

    min-height: 100vh;

    display: flex;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-sidebar {

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar-width);

    background:
        linear-gradient(
            180deg,
            var(--green-950) 0%,
            var(--green-900) 100%
        );

    color: white;

    display: flex;

    flex-direction: column;

    z-index: 1000;

    box-shadow:
        5px 0 25px rgba(0, 0, 0, .08);

    transition: var(--transition);
}


/* =========================================================
   BRAND
   ========================================================= */

.sidebar-brand {

    height: 95px;

    padding: 0 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(255, 255, 255, .08);
}


.brand-link {

    display: flex;

    align-items: center;

    gap: 12px;
}


.brand-icon {

    width: 43px;
    height: 43px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255, 255, 255, .12);

    border:
        1px solid rgba(255, 255, 255, .15);

    color: #86efac;

    font-size: 21px;
}


.brand-text {

    display: flex;

    flex-direction: column;

    line-height: 1.2;
}


.brand-text strong {

    font-family: 'Playfair Display', serif;

    font-size: 20px;

    color: white;
}


.brand-text span {

    margin-top: 5px;

    color: #86efac;

    font-size: 9px;

    letter-spacing: 1.8px;

    font-weight: 700;
}


.sidebar-close {

    display: none;

    border: 0;

    background: transparent;

    color: white;

    font-size: 20px;

    cursor: pointer;
}


/* =========================================================
   SIDEBAR CONTENT
   ========================================================= */

.sidebar-content {

    flex: 1;

    padding: 28px 16px;

    overflow-y: auto;
}


.nav-section {

    margin-bottom: 30px;
}


.nav-label {

    display: block;

    padding: 0 12px;

    margin-bottom: 10px;

    color: #6ee7b7;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.admin-nav {

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.nav-item {

    position: relative;

    min-height: 48px;

    padding: 0 13px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: #cbd5d1;

    font-weight: 500;

    transition: var(--transition);
}


.nav-item:hover {

    background: rgba(255, 255, 255, .08);

    color: white;

    transform: translateX(2px);
}


.nav-item.active {

    background:
        linear-gradient(
            90deg,
            rgba(34, 197, 94, .25),
            rgba(34, 197, 94, .08)
        );

    color: white;
}


.nav-item.active::before {

    content: "";

    position: absolute;

    left: 0;

    top: 9px;
    bottom: 9px;

    width: 3px;

    border-radius: 0 5px 5px 0;

    background: #4ade80;
}


.nav-icon {

    width: 25px;

    display: flex;

    justify-content: center;

    color: #94a3a0;

    font-size: 17px;
}


.nav-item.active .nav-icon {

    color: #4ade80;
}


.nav-badge {

    margin-left: auto;

    min-width: 22px;
    height: 22px;

    padding: 0 6px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background: #22c55e;

    color: white;

    font-size: 10px;

    font-weight: 700;
}


.nav-external {

    margin-left: auto;

    font-size: 12px;

    opacity: .5;
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {

    padding: 18px;

    border-top:
        1px solid rgba(255, 255, 255, .08);
}


.admin-user {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 15px;

    padding: 10px;

    border-radius: 12px;

    background: rgba(255, 255, 255, .05);
}


.user-avatar,
.topbar-avatar {

    flex-shrink: 0;

    width: 39px;
    height: 39px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #22c55e,
            #15803d
        );

    color: white;

    font-weight: 800;

    font-size: 14px;
}


.user-details {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.user-details strong {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 12px;

    color: white;
}


.user-details span {

    color: #86a99a;

    font-size: 10px;
}


.logout-btn {

    width: 100%;

    border: 0;

    background: transparent;

    color: #cbd5d1;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: 9px;

    cursor: pointer;

    font-size: 13px;

    transition: var(--transition);
}


.logout-btn:hover {

    background: rgba(220, 38, 38, .15);

    color: #fca5a5;
}


/* =========================================================
   MAIN
   ========================================================= */

.admin-main {

    min-height: 100vh;

    width: calc(100% - var(--sidebar-width));

    margin-left: var(--sidebar-width);

    display: flex;

    flex-direction: column;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.admin-topbar {

    height: var(--topbar-height);

    padding: 0 35px;

    background: white;

    border-bottom:
        1px solid var(--gray-200);

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 500;
}


.topbar-left {

    display: flex;

    align-items: center;

    gap: 15px;
}


.page-heading {

    display: flex;

    flex-direction: column;
}


.page-eyebrow {

    color: var(--green-600);

    font-size: 9px;

    letter-spacing: 1.5px;

    font-weight: 800;
}


.page-heading h1 {

    margin-top: 2px;

    font-size: 21px;

    line-height: 1.2;

    color: var(--gray-950);

    font-weight: 700;
}


.topbar-right {

    display: flex;

    align-items: center;

    gap: 20px;
}


.topbar-site-link {

    display: flex;

    align-items: center;

    gap: 7px;

    color: var(--gray-600);

    font-size: 12px;

    font-weight: 600;

    transition: var(--transition);
}


.topbar-site-link:hover {

    color: var(--green-600);
}


.topbar-divider {

    height: 32px;

    width: 1px;

    background: var(--gray-200);
}


.topbar-user {

    display: flex;

    align-items: center;

    gap: 10px;

    cursor: default;
}


.topbar-avatar {

    width: 37px;
    height: 37px;
}


.topbar-user-info {

    display: flex;

    flex-direction: column;

    line-height: 1.25;
}


.topbar-user-info strong {

    color: var(--gray-800);

    font-size: 12px;
}


.topbar-user-info small {

    color: var(--gray-400);

    font-size: 10px;
}


.topbar-user > i {

    color: var(--gray-400);

    font-size: 11px;
}


.mobile-menu-btn {

    display: none;

    width: 40px;
    height: 40px;

    border: 1px solid var(--gray-200);

    border-radius: 9px;

    background: white;

    color: var(--gray-700);

    cursor: pointer;

    font-size: 21px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.admin-content {

    flex: 1;

    padding: 32px 35px;

    max-width: 1600px;

    width: 100%;

    margin: 0 auto;
}


/* =========================================================
   ALERTS
   ========================================================= */

.admin-alert {

    margin-bottom: 25px;

    min-height: 58px;

    padding: 12px 15px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 12px;

    border: 1px solid;
}


.admin-alert.success {

    background: var(--green-50);

    border-color: #bbf7d0;

    color: var(--green-800);
}


.admin-alert.danger {

    background: var(--danger-bg);

    border-color: #fecaca;

    color: #991b1b;
}


.alert-icon {

    width: 32px;
    height: 32px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.success .alert-icon {

    background: #dcfce7;

    color: var(--green-700);
}


.danger .alert-icon {

    background: #fee2e2;

    color: var(--danger);
}


.alert-content {

    display: flex;

    flex-direction: column;

    flex: 1;
}


.alert-content strong {

    font-size: 12px;
}


.alert-content span {

    font-size: 12px;

    opacity: .8;
}


.alert-close {

    border: 0;

    background: transparent;

    cursor: pointer;

    color: currentColor;

    opacity: .6;

    font-size: 17px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.admin-footer {

    min-height: 65px;

    padding: 18px 35px;

    border-top:
        1px solid var(--gray-200);

    background: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--gray-500);

    font-size: 11px;
}


.admin-footer strong {

    color: var(--green-700);
}


.footer-version {

    color: var(--gray-400);
}


.footer-version span {

    padding: 0 5px;
}


/* =========================================================
   SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    z-index: 900;

    backdrop-filter: blur(2px);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .admin-topbar {

        padding: 0 25px;
    }

    .admin-content {

        padding: 28px 25px;
    }

    .topbar-site-link span,
    .topbar-user-info {

        display: none;
    }

}


@media (max-width: 900px) {

    :root {

        --sidebar-width: 270px;
    }


    .admin-sidebar {

        transform: translateX(-100%);

        box-shadow: 15px 0 40px rgba(0, 0, 0, .2);
    }


    .admin-sidebar.open {

        transform: translateX(0);
    }


    .sidebar-close {

        display: block;
    }


    .sidebar-overlay.show {

        display: block;
    }


    .admin-main {

        width: 100%;

        margin-left: 0;
    }


    .mobile-menu-btn {

        display: flex;

        align-items: center;

        justify-content: center;
    }


    .admin-topbar {

        padding: 0 20px;
    }


    .admin-content {

        padding: 25px 20px;
    }


    .admin-footer {

        padding: 18px 20px;
    }

}


@media (max-width: 600px) {

    .admin-topbar {

        height: 72px;
    }


    .page-eyebrow {

        display: none;
    }


    .page-heading h1 {

        font-size: 18px;
    }


    .topbar-divider {

        display: none;
    }


    .topbar-user > i {

        display: none;
    }


    .topbar-user {

        gap: 7px;
    }


    .topbar-avatar {

        width: 35px;
        height: 35px;
    }


    .admin-content {

        padding: 20px 15px;
    }


    .admin-footer {

        flex-direction: column;

        gap: 5px;

        text-align: center;

        padding: 16px;
    }

}


@media (max-width: 400px) {

    .admin-topbar {

        padding: 0 14px;
    }


    .admin-content {

        padding: 17px 12px;
    }


    .brand-text strong {

        font-size: 18px;
    }

}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-welcome {

    padding: 28px 30px;

    margin-bottom: 25px;

    border-radius: 18px;

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(
            120deg,
            #103d25,
            #166534
        );

    box-shadow:
        0 10px 35px rgba(16, 61, 37, .15);
}


.dashboard-welcome::after {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -70px;
    top: -100px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .05);
}


.welcome-label {

    color: #86efac;

    font-size: 10px;

    letter-spacing: 1.5px;

    font-weight: 800;
}


.dashboard-welcome h2 {

    margin-top: 5px;

    font-size: 25px;

    font-weight: 700;
}


.dashboard-welcome p {

    margin-top: 4px;

    color: #cdebd8;

    font-size: 13px;
}


.welcome-icon {

    width: 75px;
    height: 75px;

    border-radius: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255, 255, 255, .1);

    font-size: 36px;

    color: #86efac;

    z-index: 1;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}


.stat-card {

    background: white;

    border: 1px solid var(--gray-200);

    border-radius: 15px;

    padding: 21px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}


.stat-card:hover {

    transform: translateY(-3px);

    box-shadow: var(--shadow-md);
}


.stat-icon {

    width: 48px;
    height: 48px;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;
}


.stat-icon.green,
.quick-icon.green {

    background: #dcfce7;

    color: #15803d;
}


.stat-icon.blue,
.quick-icon.blue {

    background: #dbeafe;

    color: #2563eb;
}


.stat-icon.orange,
.quick-icon.orange {

    background: #ffedd5;

    color: #ea580c;
}


.stat-icon.purple {

    background: #f3e8ff;

    color: #9333ea;
}


.stat-info {

    display: flex;

    flex-direction: column;
}


.stat-info span {

    color: var(--gray-500);

    font-size: 11px;
}


.stat-info strong {

    margin-top: 2px;

    color: var(--gray-950);

    font-size: 22px;
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        1.3fr 1fr;

    gap: 20px;
}


.dashboard-card {

    background: white;

    border: 1px solid var(--gray-200);

    border-radius: 16px;

    padding: 24px;

    box-shadow: var(--shadow-sm);
}


.card-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom:
        1px solid var(--gray-100);
}


.card-header h3 {

    font-size: 15px;

    color: var(--gray-900);
}


.card-header p {

    margin-top: 3px;

    color: var(--gray-400);

    font-size: 11px;
}


.card-header > i {

    color: var(--green-600);

    font-size: 20px;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions {

    padding-top: 8px;
}


.quick-action {

    padding: 15px 5px;

    display: flex;

    align-items: center;

    gap: 13px;

    border-bottom:
        1px solid var(--gray-100);

    transition: var(--transition);
}


.quick-action:last-child {

    border-bottom: 0;
}


.quick-action:hover {

    padding-left: 10px;
}


.quick-icon {

    width: 39px;
    height: 39px;

    flex-shrink: 0;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.quick-action > div:nth-child(2) {

    flex: 1;

    display: flex;

    flex-direction: column;
}


.quick-action strong {

    font-size: 12px;

    color: var(--gray-800);
}


.quick-action span {

    color: var(--gray-400);

    font-size: 10px;
}


.quick-action > i {

    color: var(--gray-300);

    font-size: 12px;
}


/* =========================================================
   WEBSITE STATUS
   ========================================================= */

.status-online {

    display: flex;

    align-items: center;

    gap: 5px;

    padding: 5px 9px;

    border-radius: 20px;

    background: #dcfce7;

    color: #15803d;

    font-size: 10px;

    font-weight: 700;
}


.status-online > span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #22c55e;
}


.website-status {

    padding-top: 10px;
}


.status-row {

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid var(--gray-100);

    font-size: 11px;
}


.status-row span {

    color: var(--gray-500);

    display: flex;

    align-items: center;

    gap: 8px;
}


.status-row span i {

    color: var(--green-600);

    font-size: 15px;
}


.status-row strong {

    color: #15803d;

    font-size: 10px;
}


.visit-website-btn {

    margin-top: 18px;

    min-height: 43px;

    border-radius: 9px;

    background: var(--green-700);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-size: 11px;

    font-weight: 700;

    transition: var(--transition);
}


.visit-website-btn:hover {

    background: var(--green-800);

    transform: translateY(-1px);

    color: white;
}


/* =========================================================
   DASHBOARD RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 900px) {

    .dashboard-grid {

        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .stats-grid {

        grid-template-columns: 1fr;
    }


    .dashboard-welcome {

        padding: 22px;

    }


    .dashboard-welcome h2 {

        font-size: 21px;
    }


    .welcome-icon {

        width: 55px;
        height: 55px;

        font-size: 25px;
    }


    .dashboard-card {

        padding: 18px;
    }

}