/* ============================================
   SERBEST İŞİM - MODERN DASHBOARD CSS
   Bionluk-inspired design with brand colors
   ============================================ */

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

:root {
    /* Brand Colors */
    --primary: #8B3A3A;
    --primary-dark: #7A2E2E;
    --primary-light: #A04848;
    --primary-gradient: linear-gradient(135deg, #8B3A3A 0%, #6B2A2A 100%);
    
    /* Accent Colors */
    --accent-green: #00B894;
    --accent-blue: #0984E3;
    --accent-orange: #FDCB6E;
    --accent-purple: #6C5CE7;
    --accent-red: #E74C3C;
    
    /* Neutral Colors */
    --bg-main: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-light: #F1F3F5;
    --bg-hover: #E9ECEF;
    
    /* Text Colors */
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #B2BEC3;
    --text-white: #FFFFFF;
    
    /* Border & Shadow */
    --border-light: #E9ECEF;
    --border-medium: #DEE2E6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.15);
    
    /* Spacing */
    --sidebar-width: 260px;
    --sidebar-collapsed: 80px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Typography */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--primary-gradient);
    color: var(--text-white);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.9;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

/* ============================================
   SIDEBAR - Bionluk Style
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border-light);
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-header {
    background: var(--primary);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
}

.sidebar-header .logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

/* Sidebar Section Labels */
.sidebar-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 16px 8px;
    margin-top: 8px;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(139, 58, 58, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.nav-item .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #FEE2E2;
    color: var(--accent-red);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-main);
}

/* ============================================
   HEADER - Bionluk Style
   ============================================ */
.dashboard-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0 32px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Search Bar in Header */
.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    width: 400px;
    transition: all 0.2s ease;
}

.header-search:focus-within {
    background: var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search .search-icon {
    color: var(--text-muted);
    margin-right: 10px;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    border-radius: var(--radius-xl);
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
    flex: 1;
    padding: 28px 32px;
    max-width: 1400px;
    width: 100%;
}

.content-section {
    display: none !important;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block !important;
}

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

/* ============================================
   WELCOME CARD - Bionluk Style
   ============================================ */
.welcome-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* ============================================
   COMPACT HOME DESIGN - Modern & Minimal
   ============================================ */
.compact-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.compact-welcome .welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.compact-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
}

.compact-welcome h2 span {
    color: rgba(255, 255, 255, 0.95);
}

.compact-welcome p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Compact Stats */
.compact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.compact-stat {
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.compact-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.compact-stat .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.compact-stat .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* Compact Actions */
.compact-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.compact-action-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 16px 12px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
}

.compact-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.compact-action-btn span:first-child {
    font-size: 24px;
}

/* Compact Section */
.compact-section {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

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

.compact-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.link-btn:hover {
    text-decoration: underline;
}

.welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.welcome-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.welcome-content h2 span {
    color: var(--primary);
}

.welcome-content p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============================================
   STATS GRID - Modern Cards
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.stat-icon.green { background: rgba(0, 184, 148, 0.15); }
.stat-icon.blue { background: rgba(9, 132, 227, 0.15); }
.stat-icon.orange { background: rgba(253, 203, 110, 0.25); }
.stat-icon.purple { background: rgba(108, 92, 231, 0.15); }
.stat-icon.red { background: rgba(231, 76, 60, 0.15); }
.stat-icon.primary { background: rgba(139, 58, 58, 0.15); }

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.stat-trend.up { color: var(--accent-green); }
.stat-trend.down { color: var(--accent-red); }

/* ============================================
   QUICK ACTIONS - Bionluk Style
   ============================================ */
.quick-actions {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 28px;
}

.quick-actions h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.action-card {
    background: var(--bg-light);
    border: 2px solid transparent;
    padding: 24px 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-card:hover {
    background: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    font-size: 32px;
}

.action-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2,
.section-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.section-header .btn-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.section-header .btn-link:hover {
    text-decoration: underline;
}

/* ============================================
   SERVICES GRID - Bionluk Card Style
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.service-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
}

.service-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.service-favorite.active {
    color: var(--accent-red);
}

/* Service Card Content */
.service-content {
    padding: 16px;
}

.service-seller {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.seller-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background-size: cover;
    background-position: center;
}

.seller-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-orange);
    font-weight: 600;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

.service-price span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    background: var(--bg-white);
    padding: 60px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.empty-state .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   PROFILE CARD
   ============================================ */
.profile-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 48px;
    margin: 0 auto 24px;
    border: 4px solid var(--bg-light);
    background-size: cover;
    background-position: center;
}

.profile-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(139, 58, 58, 0.1);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 16px;
}

.profile-bio {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    text-align: left;
}

.profile-bio h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-bio p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   SETTINGS LIST
   ============================================ */
.settings-list {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: var(--bg-light);
}

.setting-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.setting-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.setting-arrow {
    color: var(--text-muted);
    font-size: 20px;
}

/* ============================================
   EARNINGS SUMMARY
   ============================================ */
.earnings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.earning-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.earning-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.earning-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earning-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
}

.earning-card.highlight {
    background: var(--primary-gradient);
}

.earning-card.highlight h4,
.earning-card.highlight .earning-amount {
    color: white;
}

/* ============================================
   ORDERS LIST
   ============================================ */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.order-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    pointer-events: none;
}

.order-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    pointer-events: none;
    margin: 0;
}

.order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    pointer-events: none;
    white-space: nowrap;
}

.order-status.pending { background: var(--accent-orange); color: #333; }
.order-status.inProgress { background: var(--accent-blue); }
.order-status.completed { background: var(--accent-green); }
.order-status.cancelled { background: var(--accent-red); }

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    pointer-events: none;
}

.order-details p {
    font-size: 14px;
    color: var(--text-secondary);
    pointer-events: none;
    margin: 0;
}

.order-details strong {
    color: var(--text-primary);
    pointer-events: none;
}

/* ============================================
   FAVORITES GRID
   ============================================ */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.favorite-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.favorite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.favorite-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    font-size: 48px;
    opacity: 0.5;
}

.favorite-info {
    padding: 16px;
}

.favorite-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.favorite-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
    margin: 10px 0;
}

.btn-remove {
    width: 100%;
    padding: 10px;
    background: var(--bg-light);
    color: var(--accent-red);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #FEE2E2;
}

/* ============================================
   MESSAGES LIST
   ============================================ */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.message-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-card:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

.message-card.unread {
    background: rgba(139, 58, 58, 0.05);
    border-color: var(--primary);
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: white;
    background-size: cover;
    background-position: center;
}

.message-info {
    flex: 1;
    min-width: 0;
}

.message-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.message-info p {
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
}

.message-unread-badge {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
    margin: 24px 0;
}

.search-bar {
    display: flex;
    gap: 16px;
    background: var(--bg-white);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    align-items: center;
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.1);
}

.search-bar select {
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 14px;
    min-width: 180px;
    background: white;
    cursor: pointer;
}

.btn-view-all {
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 58, 58, 0.3);
}

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */
.notifications-dropdown {
    position: absolute;
    top: calc(var(--header-height) + 8px);
    right: 32px;
    width: 400px;
    max-height: 500px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--border-light);
}

.notifications-dropdown.show {
    display: flex;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.notifications-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.notifications-header button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.notifications-list {
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.unread {
    background: rgba(139, 58, 58, 0.05);
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 58, 58, 0.3);
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-outline {
    padding: 12px 24px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
}

.form-group {
    padding: 16px 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.1);
}

.form-group input:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
    color: var(--text-muted);
}

/* ============================================
   CHAT MODAL
   ============================================ */
.modal-chat {
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.chat-user-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-light);
}

.chat-message {
    display: flex;
    margin-bottom: 16px;
}

.chat-message.sent {
    justify-content: flex-end;
}

.chat-message.received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
}

.chat-message.sent .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .message-bubble {
    background: white;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.message-bubble p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.message-timestamp {
    font-size: 11px;
    opacity: 0.7;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    background: white;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-medium);
    border-radius: 24px;
    font-size: 14px;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-send {
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-send:hover {
    transform: scale(1.05);
}

/* ============================================
   SERVICE DETAIL MODAL
   ============================================ */
.modal-large {
    max-width: 800px;
}

.service-detail-gallery {
    margin-bottom: 24px;
}

.gallery-main {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-light);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.gallery-thumbnails img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    border-color: var(--primary);
}

.gallery-placeholder {
    width: 100%;
    height: 250px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    border-radius: var(--radius-lg);
    opacity: 0.5;
}

.service-detail-info {
    padding: 0 24px 24px;
}

.service-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 20px;
}

.service-detail-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.service-detail-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    background: transparent;
    padding: 0;
}

.service-detail-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.price-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.price-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
}

.freelancer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.freelancer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.freelancer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.freelancer-info {
    flex: 1;
}

.freelancer-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.freelancer-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.freelancer-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.service-detail-section {
    margin-bottom: 24px;
}

.service-detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
}

.delivery-time {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.service-detail-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    margin: 0 -24px -24px;
}

.btn-order {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 58, 58, 0.3);
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

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

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.review-user h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.review-rating {
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 600;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-comment {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .header-search {
        width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: var(--sidebar-collapsed);
    }
    
    .sidebar {
        width: var(--sidebar-collapsed);
    }

    .sidebar-header {
        padding: 16px 8px;
    }

    .sidebar-header .logo {
        width: 50px;
        height: 50px;
    }

    .nav-item span:not(.icon),
    .logout-btn span:not(.icon),
    .sidebar-section-label {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 14px;
    }
    
    .nav-item.active::before {
        display: none;
    }

    .logout-btn {
        justify-content: center;
        padding: 14px;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed);
    }

    .dashboard-header {
        padding: 0 20px;
    }

    .dashboard-header h1 {
        font-size: 18px;
    }
    
    .header-search {
        display: none;
    }

    .user-info {
        display: none;
    }

    .content-area {
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .welcome-card {
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }

    .welcome-card h2 {
        font-size: 22px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .order-card {
        padding: 16px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input,
    .search-bar select {
        width: 100%;
    }
    
    .notifications-dropdown {
        right: 16px;
        width: calc(100vw - 32px);
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .action-card {
        padding: 16px 12px;
    }
    
    .action-icon {
        font-size: 26px;
    }
    
    .modal-content {
        width: 95%;
        margin: 16px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--primary); }
.text-success { color: var(--accent-green); }
.text-warning { color: var(--accent-orange); }
.text-danger { color: var(--accent-red); }
.text-muted { color: var(--text-muted); }

.bg-primary { background: var(--primary); }
.bg-success { background: var(--accent-green); }
.bg-warning { background: var(--accent-orange); }
.bg-danger { background: var(--accent-red); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    font-size: 48px;
    opacity: 0.3;
}

.service-info {
    padding: 20px;
}

.service-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.service-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.service-status.active {
    background: #D1FAE5;
    color: #065F46;
}

.service-status.inactive {
    background: #FEE2E2;
    color: #991B1B;
}

/* Section Header with Button */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header > div {
    flex: 1;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.section-header .btn-primary {
    white-space: nowrap;
}

/* ============================================
   CHAT / MESSAGING SYSTEM
   ============================================ */
.chat-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    height: calc(100vh - 250px);
    min-height: 600px;
}

/* Chat List */
.chat-list {
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
}

.chat-list-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.chat-search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
}

.chat-search:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-list-items {
    flex: 1;
    overflow-y: auto;
}

.loading-chats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.spinner-small {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

.chat-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-white);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-item:hover {
    background: var(--bg-hover);
}

.chat-item.active {
    background: rgba(139, 58, 58, 0.05);
    border-left: 3px solid var(--primary);
}

.chat-item.unread {
    background: rgba(139, 58, 58, 0.02);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.chat-item-content {
    flex: 1;
    min-width: 0;
}

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

.chat-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.chat-item-time {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-item-message {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item.unread .chat-item-message {
    font-weight: 600;
    color: var(--text-primary);
}

.chat-unread-badge {
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

/* Chat Detail */
.chat-detail {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    height: 100%;
    min-height: 0;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
}

.chat-empty-state .empty-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.chat-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.chat-empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Chat Header */
.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    flex-shrink: 0;
}

.chat-header-info {
    flex: 1;
}

.chat-header-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.chat-header-status {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-header-status.online {
    color: var(--accent-green);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #F8F9FA;
    min-height: 0;
}

.message-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-group.sent {
    align-items: flex-end;
}

.message-group.received {
    align-items: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-group.sent .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-group.received .message-bubble {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 8px;
}

/* Message File Styles */
.message-image {
    max-width: 70%;
}

.message-image img {
    display: block;
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.message-file {
    max-width: 70%;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-group.sent .message-file {
    background: rgba(255, 255, 255, 0.95);
}

.message-file .file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.message-file .file-info {
    flex: 1;
    min-width: 0;
}

.message-file .file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-file .file-size {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.message-file .file-download-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.message-file .file-download-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.message-date-divider {
    text-align: center;
    margin: 16px 0;
}

.message-date-divider span {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Chat Input */
.chat-input-container {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
    flex-shrink: 0;
    position: relative;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    min-height: 38px;
    line-height: 1.4;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 58, 58, 0.1);
}

.chat-attach-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-attach-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
    border-color: var(--primary);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: var(--border-medium);
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 150px);
        min-height: 500px;
    }
    
    .chat-list {
        display: none;
    }
    
    .chat-list.mobile-show {
        display: flex;
    }
    
    .chat-detail.mobile-hide {
        display: none;
    }
    
    .chat-input-container {
        padding: 12px 16px;
    }
    
    .chat-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .chat-send-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}


/* Service Management Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.service-card.inactive-service {
    opacity: 0.6;
}

.service-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: #4CAF50;
    color: white;
}

.status-badge.inactive {
    background: #FF9800;
    color: white;
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-category {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

.service-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.service-price {
    font-size: 24px;
    font-weight: 700;
    color: #8B3A3A;
}

.service-delivery {
    font-size: 13px;
    color: #666;
}

.service-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-action {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-view {
    background: #2196F3;
    color: white;
}

.btn-view:hover {
    background: #1976D2;
}

.btn-edit {
    background: #FF9800;
    color: white;
}

.btn-edit:hover {
    background: #F57C00;
}

.btn-toggle {
    background: #9C27B0;
    color: white;
}

.btn-toggle:hover {
    background: #7B1FA2;
}

.btn-delete {
    background: #F44336;
    color: white;
}

.btn-delete:hover {
    background: #D32F2F;
}

.large-modal .modal-content {
    max-width: 800px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-remove-btn:hover {
    background: rgba(244, 67, 54, 0.9);
}

/* ============================================
   RIGHT DRAWER SYSTEM - DISABLED
   ============================================ */
.right-drawer {
    display: none !important;
}

.drawer-overlay {
    display: none !important;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.drawer-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.drawer-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.drawer-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.drawer-body::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Drawer content sections */
.drawer-section {
    margin-bottom: 32px;
}

.drawer-section:last-child {
    margin-bottom: 0;
}

.drawer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .right-drawer {
        width: 100%;
        max-width: 100%;
    }
    
    .drawer-overlay {
        left: 0;
        width: 100%;
    }
}


/* ============================================
   EXPLORE SECTION STYLES
   ============================================ */

.explore-search {
    margin-bottom: 24px;
}

.explore-search input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
}

.explore-search input:focus {
    outline: none;
    border-color: #8B3A3A;
    box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.1);
}

.explore-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.explore-category-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.explore-category-card:hover {
    border-color: #8B3A3A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 58, 58, 0.1);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8B3A3A, #6d2e2e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.category-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.category-arrow {
    font-size: 20px;
    color: #9ca3af;
    transition: transform 0.3s;
}

.explore-category-card:hover .category-arrow {
    transform: translateX(4px);
    color: #8B3A3A;
}

.back-to-categories {
    background: #f3f4f6;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.back-to-categories:hover {
    background: #e5e7eb;
    color: #8B3A3A;
}

.explore-services {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Service Card Improvements */
.service-card {
    position: relative;
}

.service-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.service-freelancer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.freelancer-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8B3A3A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.freelancer-name {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-category {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rating-stars {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

.rating-count {
    font-size: 13px;
    color: #9ca3af;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #8B3A3A;
}

.service-delivery {
    font-size: 13px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .explore-categories {
        grid-template-columns: 1fr;
    }
    
    .explore-category-card {
        padding: 16px;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}


/* Services Carousel for Featured Services */
.services-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px 0;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
}

.services-carousel::-webkit-scrollbar {
    height: 8px;
}

.services-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.services-carousel::-webkit-scrollbar-thumb {
    background: #8B3A3A;
    border-radius: 10px;
}

.services-carousel::-webkit-scrollbar-thumb:hover {
    background: #6d2e2e;
}

.services-carousel .service-card {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
}

.services-carousel .service-image {
    height: 160px;
}

.btn-view-all-inline {
    background: transparent;
    border: 2px solid #8B3A3A;
    color: #8B3A3A;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-all-inline:hover {
    background: #8B3A3A;
    color: white;
}


/* Chat Detail Fix - Full Height */
#messages-section .chat-container {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 600px;
}

#messages-section .chat-list {
    width: 320px;
    flex-shrink: 0;
}

#messages-section .chat-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#messages-section .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 400px;
}

#messages-section .chat-input-container {
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: white;
}

/* Message Date Divider */
.message-date-divider {
    text-align: center;
    margin: 12px 0;
}

.message-date-divider span {
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* Message Bubbles */
.message-group {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
}

.message-group.sent {
    align-items: flex-end;
}

.message-group.received {
    align-items: flex-start;
}

.message-bubble {
    max-width: 65%;
    padding: 8px 12px;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.4;
}

.message-group.sent .message-bubble {
    background: #8B3A3A;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-group.received .message-bubble {
    background: #f3f4f6;
    color: #1f2937;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
    padding: 0 4px;
}

/* ============================================
   DRAWER CHAT FIX
   ============================================ */

/* Chat container in drawer should take full height */
.drawer-body .chat-container {
    height: calc(100vh - 100px); /* Full height minus drawer header */
    max-height: calc(100vh - 100px);
    min-height: 500px;
}

/* Chat detail in drawer should be flex column */
.drawer-body .chat-detail {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

/* Chat messages should scroll */
.drawer-body .chat-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Important for flex scrolling */
}

/* Chat input should stay at bottom */
.drawer-body .chat-input-container {
    flex-shrink: 0 !important;
    position: relative;
    bottom: 0;
    padding: 16px;
    background: white;
    border-top: 1px solid var(--border-light);
}

/* Input wrapper in drawer */
.drawer-body .chat-input-wrapper {
    display: flex !important;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
}

/* Input in drawer */
.drawer-body .chat-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    display: block !important;
    visibility: visible !important;
}

/* Send button in drawer */
.drawer-body .chat-send-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    display: flex !important;
    visibility: visible !important;
}

/* Remove padding from drawer body when showing chat */
.drawer-body:has(.chat-container) {
    padding: 0;
}

/* Chat container in drawer should have no border radius */
.drawer-body .chat-container {
    border-radius: 0;
    border: none;
}


/* ============================================
   CHAT MENU & DIALOGS
   ============================================ */

/* Chat menu button */
.chat-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: auto;
}

.chat-menu-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

/* Chat menu overlay */
.chat-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s;
}

.chat-menu-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s;
}

.chat-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.chat-menu-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chat-menu-header button {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.chat-menu-header button:hover {
    background: var(--bg-hover);
}

.chat-menu-items {
    padding: 8px;
}

.chat-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.chat-menu-item:hover {
    background: var(--bg-hover);
}

.chat-menu-item.danger {
    color: var(--accent-red);
}

.chat-menu-item.danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

.chat-menu-item svg {
    flex-shrink: 0;
}

/* Confirm dialog */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s;
}

.confirm-dialog {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s;
}

.confirm-dialog h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.confirm-dialog p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-dialog-buttons button {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.btn-cancel:hover {
    background: var(--bg-hover);
}

.btn-confirm {
    background: var(--accent-red);
    color: white;
}

.btn-confirm:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    z-index: 10002;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    max-width: 400px;
}

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

.toast-success {
    border-left: 4px solid var(--accent-green);
    color: var(--accent-green);
}

.toast-error {
    border-left: 4px solid var(--accent-red);
    color: var(--accent-red);
}

.toast-info {
    border-left: 4px solid var(--accent-blue);
    color: var(--accent-blue);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-menu-content,
    .confirm-dialog {
        width: 95%;
        margin: 0 auto;
    }
    
    .toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }
}


/* Chat tabs */
.chat-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.chat-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-tab:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.chat-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}


/* Hide section header when in drawer */
.drawer-body .section-header {
    display: none;
}

/* Fix chat container in drawer */
.drawer-body .chat-container {
    height: 100%;
    border-radius: 0;
}

/* Fix text overflow in drawer header */
.drawer-header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 60px);
}


/* ============================================
   ORDER MANAGEMENT STYLES
   ============================================ */

.status-card {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.status-card h3 {
    margin: 0;
    font-size: 20px;
}

.status-card p {
    margin: 0;
}

.btn-cancel {
    background: #EF4444;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #DC2626;
}

.cancellation-request-card {
    background: #FFF7ED;
    border: 1px solid #FDBA74;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.cancellation-request-card h4 {
    margin: 0 0 12px 0;
    color: #EA580C;
}

.cancellation-request-card p {
    margin: 0 0 12px 0;
    color: #666;
}

.cancellation-info-card {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.cancellation-info-card h4 {
    margin: 0 0 12px 0;
    color: #DC2626;
}

.cancellation-info-card p {
    margin: 8px 0;
    color: #666;
}

.order-info-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.order-info-card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #111;
}

.package-badge {
    display: inline-block;
    background: rgba(139, 58, 58, 0.1);
    color: #8B3A3A;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.order-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6B7280;
    font-size: 14px;
}

.info-value {
    color: #111;
    font-weight: 600;
    font-size: 14px;
}

.requirements-card,
.delivery-card,
.review-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.requirements-card h4,
.delivery-card h4,
.review-card h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #111;
}

.requirements-text,
.delivery-note {
    background: #F9FAFB;
    padding: 12px;
    border-radius: 8px;
    color: #374151;
    line-height: 1.6;
    margin: 12px 0;
}

.files-section {
    margin-top: 16px;
}

.files-section p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #374151;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-item:hover {
    background: #F3F4F6;
    border-color: #8B3A3A;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
}

.rating-number {
    font-size: 36px;
    font-weight: bold;
    color: #8B3A3A;
}

.rating-stars {
    font-size: 20px;
}

.review-text {
    background: #F9FAFB;
    padding: 12px;
    border-radius: 8px;
    color: #374151;
    line-height: 1.6;
    margin: 12px 0;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 100%;
}

.btn-primary {
    background: #8B3A3A;
    color: white;
}

.btn-primary:hover {
    background: #7A2E2E;
}

.btn-secondary {
    background: white;
    color: #8B3A3A;
    border: 1px solid #8B3A3A;
}

.btn-secondary:hover {
    background: #F9FAFB;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #8B3A3A;
    box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #6B7280;
    font-size: 12px;
}

.rating-input {
    display: flex;
    gap: 8px;
    font-size: 32px;
}

.rating-input .star {
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s;
}

.rating-input .star:hover {
    transform: scale(1.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   MODERN ORDER & PAYMENT MODALS
   ============================================ */

/* Modal Base Styles - Modern & Compact */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #8B3A3A 0%, #7A2E2E 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #8B3A3A;
    border-radius: 3px;
}

/* Form Groups - Compact & Modern */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B3A3A;
    box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8B3A3A;
}

/* File Upload Styling */
.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    transition: all 0.2s;
}

.file-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.file-item button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.file-item button:hover {
    background: #fee2e2;
}

/* Order Summary Card - Compact */
.order-summary-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
}

.order-summary-card h3 {
    margin: 0 0 14px 0;
    font-size: 15px;
    color: #374151;
    font-weight: 700;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.order-summary-row span:first-child {
    color: #6b7280;
}

.order-summary-row span:last-child {
    font-weight: 600;
    color: #111827;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 2px solid #d1d5db;
}

.order-summary-total span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.order-summary-total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: #8B3A3A;
}

/* Saved Cards - Modern Design */
.saved-card-item {
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.saved-card-item:hover {
    border-color: #8B3A3A;
    background: #fef2f2;
    transform: translateX(4px);
}

.saved-card-item input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #8B3A3A;
}

/* Status Cards - Compact */
.status-card {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.status-card h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.status-card p {
    margin: 0;
    font-size: 13px;
}

/* Order Info Card - Compact */
.order-info-card {
    background: #f9fafb;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

.order-info-card h3 {
    margin: 0 0 10px 0;
    font-size: 17px;
    color: #111827;
}

.package-badge {
    display: inline-block;
    background: #8B3A3A;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.order-info-grid {
    display: grid;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    font-weight: 500;
}

.info-value {
    font-weight: 600;
    color: #111827;
}

/* Requirements & Delivery Cards - Compact */
.requirements-card,
.delivery-card,
.review-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.requirements-card h4,
.delivery-card h4,
.review-card h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #111827;
}

.requirements-text,
.delivery-note {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 12px;
}

.files-section {
    margin-top: 12px;
}

.files-section p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

/* Rating Display - Compact */
.rating-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-number {
    font-size: 32px;
    font-weight: 800;
    color: #8B3A3A;
}

.rating-stars {
    font-size: 20px;
}

.review-text {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* Rating Input - Interactive */
.rating-input {
    display: flex;
    gap: 8px;
    font-size: 32px;
    margin: 8px 0;
}

.rating-input .star {
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.2s;
}

.rating-input .star:hover {
    color: #FFA500;
    transform: scale(1.2);
}

/* Action Buttons - Modern & Compact */
.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    width: 100%;
    padding: 12px;
    background: #fee2e2;
    color: #dc2626;
    border: 2px solid #fecaca;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #fecaca;
    border-color: #fca5a5;
    transform: translateY(-2px);
}

/* Cancellation Cards */
.cancellation-request-card,
.cancellation-info-card {
    background: #fef3c7;
    border: 2px solid #fde047;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.cancellation-info-card {
    background: #fee2e2;
    border-color: #fecaca;
}

.cancellation-request-card h4,
.cancellation-info-card h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #92400e;
}

.cancellation-info-card h4 {
    color: #991b1b;
}

.cancellation-request-card p,
.cancellation-info-card p {
    margin: 6px 0;
    font-size: 13px;
    color: #78350f;
}

.cancellation-info-card p {
    color: #7f1d1d;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Responsive - Compact */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 16px 18px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .order-summary-card {
        padding: 14px;
    }
    
    .order-summary-total span:last-child {
        font-size: 20px;
    }
    
    .order-info-card,
    .requirements-card,
    .delivery-card,
    .review-card {
        padding: 14px;
    }
    
    .rating-input {
        font-size: 28px;
    }
    
    .rating-number {
        font-size: 28px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-content {
        max-width: 600px;
    }
}

/* Print Styles */
@media print {
    .modal-close,
    .order-actions,
    .btn-cancel {
        display: none;
    }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #374151;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    }


/* ============================================
   COMPACT HOME - RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .compact-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compact-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .compact-welcome {
        padding: 20px;
        gap: 12px;
    }
    
    .compact-welcome .welcome-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .compact-welcome h2 {
        font-size: 18px;
    }
    
    .compact-welcome p {
        font-size: 13px;
    }
    
    .compact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .compact-stat {
        padding: 12px;
    }
    
    .compact-stat .stat-value {
        font-size: 24px;
    }
    
    .compact-stat .stat-label {
        font-size: 11px;
    }
    
    .compact-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .compact-action-btn {
        padding: 14px 10px;
        font-size: 12px;
    }
    
    .compact-action-btn span:first-child {
        font-size: 20px;
    }
    
    .compact-section {
        padding: 16px;
    }
    
    .compact-section-header h3 {
        font-size: 15px;
    }
}
