/* ============================================
   SIMPLE ADMIN DASHBOARD CSS
   Brand Color: #6BDF89 (Green)
   ============================================ */

/* Dashboard Container */
.dashboard-container {
    margin: 0;
    background: #f9fafb;
    min-height: 100vh;
    color: #374151;
}

/* ============================================
   WELCOME SECTION - SIMPLIFIED
   ============================================ */
.dashboard-welcome {
    margin-bottom: 20px;
}

.dashboard-welcome h1 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

/* ============================================
   STATS CARDS - COMPACT DESIGN
   ============================================ */
.CardBox {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    margin-bottom: 25px;
}

.Card {
    position: relative;
    background: white;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 160px;
    gap: 15px;
}

.Card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(107, 223, 137, 0.1);
    border-color: #6BDF89;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6BDF89 0%, #5BC978 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon ion-icon {
    font-size: 26px;
    color: white;
}

.card-info {
    flex: 1;
}

.Card .CardName {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.Card .numbers {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.trend-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: auto;
}

.trend-badge.trend-up {
    background: #dcfce7;
    color: #16a34a;
}

.trend-badge.trend-down {
    background: #fee2e2;
    color: #dc2626;
}

.trend-badge ion-icon {
    font-size: 14px;
}

/* ============================================
   ANALYTICS GRID & CHARTS - SIMPLIFIED
   ============================================ */
.statistics-container {
    margin-bottom: 0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.2s ease;
}

.chart-card:hover {
    box-shadow: 0 4px 12px rgba(107, 223, 137, 0.1);
    border-color: #6BDF89;
}

.chart-card-large {
    grid-column: 1 / -1;
}

.chart-header {
    background: #fff;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.chart-header-content h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 17px;
    display: flex;
    align-items: center;
    font-weight: 700;
    gap: 8px;
}

.chart-header-content h3 ion-icon {
    font-size: 20px;
    color: #6BDF89;
}

.chart-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

.chart-body {
    padding: 20px;
    min-height: 280px;
}

/* ============================================
   RESTAURANT LIST - SIMPLIFIED
   ============================================ */
.restaurant-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.restaurant-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.2s ease;
}

.restaurant-item:hover {
    background-color: rgba(107, 223, 137, 0.03);
}

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

.restaurant-rank {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6BDF89, #5BC978);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
    font-size: 16px;
}

.restaurant-rank.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.restaurant-rank.rank-1 ion-icon {
    font-size: 20px;
}

.restaurant-info {
    flex: 1;
}

.restaurant-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.restaurant-stats {
    font-size: 13px;
    color: #6b7280;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(107, 223, 137, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.stat-badge ion-icon {
    font-size: 14px;
    color: #6BDF89;
}

/* ============================================
   ATTENTION/ALERT CARD
   ============================================ */
.attention-card {
    background: #f0fdf4;
    border-left: 3px solid #6BDF89;
}

.attention-card .chart-header h3 {
    color: #6BDF89;
}

.attention-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 15px;
}

.attention-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pulse-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6BDF89, #5BC978);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-icon ion-icon {
    font-size: 24px;
    color: white;
}

.attention-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #111827;
    font-weight: 700;
}

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

.attention-count {
    font-size: 36px;
    font-weight: 800;
    color: #6BDF89;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6BDF89 0%, #5BC978 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 223, 137, 0.3);
    background: linear-gradient(135deg, #5BC978 0%, #3AB869 100%);
}

.btn-action ion-icon {
    font-size: 16px;
}

/* ============================================
   RECENT ACTIVITY SECTION - SIMPLIFIED
   ============================================ */
.recent-activity {
    margin-top: 25px;
}

.activity-header {
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 20px;
    display: flex;
    align-items: center;
    font-weight: 700;
    gap: 8px;
}

.section-title h2 ion-icon {
    font-size: 24px;
    color: #6BDF89;
}

.section-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

.activity-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.recent-orders,
.new-customers {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 20px;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.section-header h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 ion-icon {
    font-size: 18px;
    color: #6BDF89;
}

.badge-count {
    background: linear-gradient(135deg, #6BDF89, #5BC978);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   ACTIVITY TABLE
   ============================================ */
.table-container {
    overflow-x: auto;
}

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

.activity-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.activity-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    font-size: 13px;
    color: #4b5563;
}

.activity-table tr.table-row-hover:hover td {
    background-color: rgba(107, 223, 137, 0.03);
}

.order-id {
    font-weight: 700;
    color: #6BDF89;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-cell ion-icon {
    font-size: 20px;
    color: #6b7280;
}

.amount {
    font-weight: 700;
    color: #111827;
}

.date-cell {
    color: #9ca3af;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
}

.status-delivered {
    background: #dcfce7;
    color: #16a34a;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-inprogress,
.status-accepted {
    background: #dbeafe;
    color: #2563eb;
}

.view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6BDF89;
    margin-top: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(107, 223, 137, 0.3);
}

.view-all:hover {
    background-color: rgba(107, 223, 137, 0.05);
    border-color: #6BDF89;
}

.view-all ion-icon {
    font-size: 16px;
}

/* ============================================
   CUSTOMER LIST
   ============================================ */
.customer-list {
    display: grid;
    gap: 12px;
}

.customer-card {
    display: flex;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.2s ease;
}

.customer-card:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(107, 223, 137, 0.08);
}

.customer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6BDF89, #5BC978);
    flex-shrink: 0;
}

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

.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6BDF89, #5BC978);
}

.avatar-fallback ion-icon {
    font-size: 24px;
    color: white;
}

.customer-info {
    flex: 1;
}

.customer-info h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.customer-info p {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 12px;
}

.customer-info small {
    color: #9ca3af;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.customer-info small ion-icon {
    font-size: 12px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .activity-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 992px) {


    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .activity-content {
        grid-template-columns: 1fr;
    }

    .CardBox {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {


    .dashboard-welcome h1 {
        font-size: 20px;
    }

    .CardBox {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .Card {
        padding: 16px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
    }

    .card-icon ion-icon {
        font-size: 22px;
    }

    .Card .numbers {
        font-size: 20px;
    }

    .chart-header {
        padding: 15px 18px;
    }

    .chart-body {
        padding: 18px;
        min-height: 240px;
    }

    .recent-orders,
    .new-customers {
        padding: 16px;
    }

    .activity-table th,
    .activity-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .activity-table th:nth-child(5),
    .activity-table td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 576px) {
    .CardBox {
        grid-template-columns: 1fr;
    }

    .activity-table th:nth-child(2),
    .activity-table td:nth-child(2) {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}