/* ========================================
   FEUT FEUT - ADMIN INTERFACE STYLES
   ======================================== */

/* ========== ADMIN DASHBOARD ========== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
}

/* ========== ADMIN STATS ========== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.admin-stat-card .stat-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.admin-stat-card .stat-details {
    flex: 1;
}

.admin-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.admin-stat-card .stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== CHARTS ========== */
.admin-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

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

.chart-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.chart-card canvas {
    max-height: 300px;
}

/* ========== ADMIN MAP ========== */
.admin-map-section {
    padding: 20px;
}

.admin-map-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    padding: 0 5px;
}

#adminMapView {
    height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ========== ADMIN SIDEBAR ========== */
.admin-menu-sidebar {
    position: fixed;
    top: 70px;
    right: -350px;
    width: 350px;
    height: calc(100vh - 70px);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
}

.admin-menu-sidebar.active {
    right: 0;
}

/* ========== FILTERS BAR ========== */
.filters-bar {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--background-color);
    border: none;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-color);
}

.filter-btn:hover {
    background: #E0E0E0;
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ========== DATA TABLES ========== */
.table-container {
    padding: 20px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
    overflow: hidden;
}

.data-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--background-color);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--background-color);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 15px 20px;
    font-size: 14px;
}

.courier-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.courier-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.courier-info-sm {
    flex: 1;
}

.courier-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.courier-phone-sm {
    font-size: 12px;
    color: var(--text-light);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.status-badge.active {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.status-badge.pending {
    background: rgba(255, 171, 0, 0.1);
    color: var(--warning-color);
}

.status-badge.blocked {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
}

.status-badge.completed {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.status-badge.problem {
    background: rgba(255, 59, 48, 0.1);
    color: var(--danger-color);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-display i {
    color: var(--warning-color);
    font-size: 14px;
}

.rating-display span {
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-table-action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background-color);
    color: var(--text-color);
}

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

.btn-table-action.danger:hover {
    background: var(--danger-color);
}

/* ========== DISPUTES ========== */
.disputes-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dispute-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.dispute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--background-color);
}

.dispute-id {
    font-size: 14px;
    color: var(--text-light);
}

.dispute-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 171, 0, 0.1);
    color: var(--warning-color);
}

.dispute-status.resolved {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.dispute-parties {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.dispute-party {
    flex: 1;
}

.party-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.party-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.party-phone {
    font-size: 14px;
    color: var(--text-light);
}

.dispute-reason {
    background: var(--background-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.dispute-reason h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.dispute-reason p {
    line-height: 1.6;
}

.dispute-actions {
    display: flex;
    gap: 10px;
}

.dispute-actions .btn {
    flex: 1;
}

/* ========== FINANCIAL MANAGEMENT ========== */
.financial-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.finance-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.finance-card h3 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.finance-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.financial-transactions {
    padding: 20px;
}

.transaction-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-info {
    flex: 1;
}

.transaction-description {
    font-weight: 600;
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 14px;
    color: var(--text-light);
}

.transaction-amount {
    font-size: 24px;
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--success-color);
}

.transaction-amount.negative {
    color: var(--danger-color);
}

/* ========== SETTINGS ========== */
.settings-content {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.settings-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.payment-toggle {
    margin-bottom: 15px;
}

.payment-toggle label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

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

.payment-toggle span {
    font-weight: 500;
    font-size: 16px;
}

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

.empty-state i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
}
