/* MD PhotoArt Studio - Teal Theme + PERFECT LAYOUT */
:root {
    --primary-teal: #14b8a6;
    --teal-dark: #0d9488;
    --teal-light: #5eead4;
    --teal-ultra: #ecfdf5;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-soft: rgba(20, 184, 166, 0.14);
    --shadow-soft: 0 8px 24px rgba(20, 184, 166, 0.10);
    --shadow-hover: 0 18px 38px rgba(20, 184, 166, 0.18);
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, var(--teal-ultra) 0%, #f0fdfa 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    color: var(--text-dark);
}

/* === MAIN LAYOUT === */
.main-wrapper {
    min-height: 100vh;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    min-width: 0;
}

.page-body {
    flex: 1 0 auto;
}

/* === NAVBAR === */
.navbar {
    background: linear-gradient(135deg, var(--primary-teal), var(--teal-dark)) !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    z-index: 1040;
    position: sticky;
    top: 0;
}

.navbar-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}

.navbar-page-subtitle {
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.sidebar-toggle {
    color: white !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.22) !important;
    transform: translateY(-1px);
}

.nav-user-btn {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 12px;
    padding: 0.45rem 0.85rem;
}

.nav-user-btn:hover,
.nav-user-btn:focus {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.nav-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    font-size: 0.94rem;
}

.dropdown-item:hover {
    background: var(--teal-ultra);
    color: var(--teal-dark);
}

/* === SIDEBAR === */
.sidebar-desktop {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    z-index: 1035;
    background: linear-gradient(180deg, var(--primary-teal), var(--teal-dark));
    box-shadow: 4px 0 20px rgba(20, 184, 166, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    min-height: 72px;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-brand-text h5 {
    margin: 0;
    font-size: 1rem;
    color: white;
    font-weight: 700;
    line-height: 1.1;
}

.sidebar-brand-text small {
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
}

.sidebar-menu {
    padding: 0.8rem 0;
}

.sidebar-section-title {
    padding: 0.35rem 1.25rem 0.55rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-desktop .nav-link {
    color: rgba(255,255,255,0.92);
    padding: 0.78rem 1.15rem;
    margin: 0.12rem 0.65rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-desktop .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sidebar-desktop .nav-link:hover,
.sidebar-desktop .nav-link.active {
    background: rgba(255,255,255,0.16);
    color: white;
    border-left-color: white;
    transform: translateX(4px);
}

.sidebar-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.28rem 0.45rem;
    border-radius: 20px;
}

.sidebar-divider {
    height: 1px;
    margin: 0.8rem 1rem;
    background: rgba(255,255,255,0.12);
}

/* === MOBILE SIDEBAR === */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* === CONTENT / CARDS === */
.page-header-card,
.dashboard-card,
.info-box {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.page-header-card {
    padding: 1.1rem 1.2rem;
}

.dashboard-card {
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-teal), var(--teal-light));
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
}

.card-body {
    padding: 1rem;
}

.stat-card {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--teal-ultra), #ccfbf1);
    color: var(--teal-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-teal);
    line-height: 1;
    margin: 0;
}

.placeholder-box {
    border: 1px dashed rgba(20, 184, 166, 0.32);
    background: linear-gradient(135deg, #ffffff, #f8fffe);
    border-radius: 14px;
    padding: 1rem;
}

.placeholder-box h6 {
    color: var(--teal-dark);
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.placeholder-box p,
.muted-text {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.94rem;
}

.quick-link {
    display: block;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8fffe);
    border: 1px solid var(--border-soft);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    color: var(--teal-dark);
    box-shadow: var(--shadow-soft);
}

.quick-link i {
    color: var(--primary-teal);
}

/* === FOOTER === */
footer {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(20,184,166,0.2);
    margin-top: auto;
}

/* === SCROLLBAR === */
.sidebar-desktop::-webkit-scrollbar {
    width: 8px;
}

.sidebar-desktop::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 10px;
}

.sidebar-desktop::-webkit-scrollbar-track {
    background: transparent;
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .sidebar-desktop {
        transform: translateX(-100%);
    }

    .sidebar-desktop.sidebar-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-header-card {
        padding: 1rem;
    }

    .navbar-page-title {
        font-size: 1.08rem;
    }

    .stat-number {
        font-size: 1.55rem;
    }
}

@media (min-width: 992px) {
    .sidebar-backdrop {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .sidebar-desktop {
        width: 250px;
    }

    .stat-card {
        gap: 0.85rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .card-header {
        font-size: 0.9rem;
    }
}
