/**
 * Dashboard Manager Styles - Rasin & Saveur
 * Estil espesifik pou manager dashboard
 */

/* ===== MANAGER DASHBOARD ===== */
.manager-dashboard {
    --manager-color: #B5502D;
}

/* Role Badge */
.role-badge {
    background: var(--gold);
    color: var(--board);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Manager Sidebar */
.manager-sidebar {
    background: linear-gradient(180deg, var(--board) 0%, #1a2619 100%);
}

.manager-avatar {
    background: var(--rust);
}

/* Manager Stats */
.manager-stats {
    grid-template-columns: repeat(4, 1fr);
}

.stat-icon.revenue {
    background: var(--gold);
}

.stat-icon.users {
    background: var(--green);
}

.stat-icon.restaurants {
    background: #6B4E9F;
}

/* ===== CHARTS SECTION ===== */
.charts-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--white-ghost);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.chart-card h3 {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--board);
    margin-bottom: 20px;
}

.chart-card canvas {
    width: 100%;
    height: 300px;
}

/* ===== ACTIVITY LIST ===== */
.recent-activity {
    background: var(--white-ghost);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--radius-sm);
}

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

.activity-icon.new-order {
    background: rgba(217, 164, 65, 0.2);
    color: var(--gold);
}

.activity-icon.new-user {
    background: rgba(71, 97, 74, 0.2);
    color: var(--green);
}

.activity-icon.payment {
    background: rgba(181, 80, 45, 0.2);
    color: var(--rust);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 600;
    color: var(--board);
    margin-bottom: 4px;
}

.activity-content p {
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-soft);
}

.activity-time {
    font-family: var(--body);
    font-size: 12px;
    color: var(--ink-soft);
}

/* ===== ORDERS FILTERS ===== */
.orders-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.filter-select {
    padding: 10px 16px;
    border: 2px solid rgba(43, 35, 32, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--body);
    font-size: 16px;
    background: var(--white-ghost);
    cursor: pointer;
}

/* ===== ORDERS FULL LIST ===== */
.orders-full-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--white-ghost);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(43, 35, 32, 0.1);
}

.order-card-header h3 {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--board);
}

.order-card-header p {
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-soft);
}

.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.order-item-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.order-item-line span:first-child {
    font-family: var(--body);
    font-size: 14px;
    color: var(--board);
}

.order-item-line span:last-child {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(43, 35, 32, 0.1);
}

.cancel-order-btn {
    padding: 8px 16px;
    background: var(--rust);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
}

/* ===== USERS TABLE ===== */
.users-table-wrapper {
    background: var(--white-ghost);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

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

.data-table th {
    text-align: left;
    padding: 16px;
    background: var(--board);
    color: var(--cream);
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(43, 35, 32, 0.05);
    font-family: var(--body);
    font-size: 14px;
    color: var(--board);
}

.data-table tr:hover td {
    background: rgba(217, 164, 65, 0.05);
}

.loading-cell {
    text-align: center !important;
    padding: 40px !important;
}

.role-badge-cell {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.role-badge-cell.MANAGER {
    background: var(--rust);
    color: var(--cream);
}

.role-badge-cell.RESTAURANT_STAFF {
    background: var(--gold);
    color: var(--board);
}

.role-badge-cell.CUSTOMER {
    background: var(--green);
    color: var(--cream);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

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

.edit-action {
    background: var(--gold);
    color: var(--board);
}

.delete-action {
    background: var(--rust);
    color: var(--cream);
}

/* ===== RESTAURANTS GRID ===== */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.restaurant-card {
    background: var(--white-ghost);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.restaurant-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.restaurant-content {
    padding: 20px;
}

.restaurant-name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--board);
    margin-bottom: 8px;
}

.restaurant-info {
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.restaurant-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--green);
    color: var(--cream);
}

/* ===== PAYMENTS STATS ===== */
.payments-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.payment-stat-card {
    background: var(--white-ghost);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.payment-stat-card h4 {
    font-family: var(--body);
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.payment-stat-card p {
    font-family: var(--display);
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
}

/* ===== REPORTS GRID ===== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.report-card {
    background: var(--white-ghost);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px rgba(43,35,32,0.4);
}

.report-card i {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 16px;
}

.report-card h3 {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--board);
    margin-bottom: 8px;
}

.report-card p {
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-soft);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--ink-soft);
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state p {
    font-family: var(--body);
    font-size: 16px;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.btn-browse {
    display: inline-block;
    padding: 12px 24px;
    background: var(--board);
    color: var(--cream);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .manager-stats,
    .charts-section,
    .payments-stats,
    .reports-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .orders-filters {
        flex-direction: column;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
}

/* Chwa kliyan an te fè — kuizin nan bezwen wè yo pou prepare bon plat la. */
.order-item-options {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #8F3D20;
    margin-top: 2px;
}
