/* Dashboard Styles */

.dashboard-body {
    display: flex;
    min-height: 100vh;
    background: var(--primary-black);
    overflow-x: hidden;
}

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

.sidebar {
    width: 280px;
    background: rgba(26, 13, 46, 0.95);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(233, 30, 140, 0.3);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(233, 30, 140, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-pink);
}

.sidebar-brand i {
    font-size: 1.75rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--gray-300);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(233, 30, 140, 0.1);
    color: var(--primary-pink);
    border-left-color: var(--primary-pink);
}

.nav-item.active {
    background: rgba(233, 30, 140, 0.15);
    color: var(--primary-pink);
    border-left-color: var(--primary-pink);
}

.nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(233, 30, 140, 0.2);
}

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

.main-content {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.topbar {
    background: rgba(26, 13, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(233, 30, 140, 0.3);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-left h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: #ffffff;
    margin: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-pink);
    font-size: 1.5rem;
    cursor: pointer;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-pink);
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(45, 27, 78, 0.6);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 50px;
    color: var(--gray-100);
    width: 300px;
    transition: var(--transition-normal);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: var(--glow-pink);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--gray-300);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.notification-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-pink);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(45, 27, 78, 0.6);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-menu:hover {
    border-color: var(--primary-pink);
}

.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-menu span {
    color: var(--gray-100);
    font-weight: 500;
}

.user-menu i {
    color: var(--gray-400);
}

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

.dashboard-content {
    flex: 1;
    padding: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 13, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--primary-pink);
    box-shadow: var(--glow-pink);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-icon.sales {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-icon.orders {
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
    color: white;
}

.stat-icon.customers {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.stat-icon.reservations {
    background: linear-gradient(135deg, var(--secondary-purple), #9b4dca);
    color: white;
}

.stat-info h3 {
    color: var(--gray-400);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: rgba(26, 13, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: #ffffff;
}

.period-select {
    padding: 0.5rem 1rem;
    background: rgba(45, 27, 78, 0.6);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 50px;
    color: var(--gray-100);
    cursor: pointer;
}

.view-all {
    color: var(--primary-pink);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.view-all:hover {
    text-decoration: underline;
}

.chart-container {
    height: 300px;
}

/* Tables Row */
.tables-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.table-card,
.activity-card {
    background: rgba(26, 13, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(233, 30, 140, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(233, 30, 140, 0.1);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    color: var(--primary-pink);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    color: var(--gray-200);
    border-bottom: 1px solid rgba(233, 30, 140, 0.1);
}

.data-table tbody tr:hover {
    background: rgba(233, 30, 140, 0.05);
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.action-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.action-btn:hover {
    color: var(--primary-pink);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(45, 27, 78, 0.3);
    border-radius: 10px;
    border-left: 3px solid var(--primary-pink);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-icon.order {
    background: rgba(233, 30, 140, 0.2);
    color: var(--primary-pink);
}

.activity-icon.customer {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.activity-icon.reservation {
    background: rgba(155, 77, 202, 0.2);
    color: var(--secondary-purple);
}

.activity-info h4 {
    color: #ffffff;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.activity-info p {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.activity-time {
    color: var(--gray-500);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

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

@media (max-width: 1024px) {
    .charts-row,
    .tables-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar {
        padding: 1rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
}
