/**
 * BIDA Driver Earnings Styles
 * Version: 1.0.0
 * Description: Styles for the driver earnings dashboard
 */

.bida-earnings-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bida-earnings-header {
    background: linear-gradient(135deg, #92ff57 0%, #66b23c 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bida-earnings-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.bida-earnings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bida-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bida-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bida-stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.bida-stat-value {
    color: #1a202c;
    font-size: 32px;
    font-weight: 700;
}

.bida-earnings-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.bida-earnings-table {
    width: 100%;
    border-collapse: collapse;
}

.bida-earnings-table thead {
    background: #f7fafc;
}

.bida-earnings-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.bida-earnings-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.bida-earnings-table tbody tr:hover {
    background-color: #f7fafc;
}

.bida-earnings-table tbody tr:last-child td {
    border-bottom: none;
}

.bida-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bida-status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.bida-status-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.bida-status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.bida-no-earnings {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bida-no-earnings svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.bida-error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    margin: 20px 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .bida-earnings-table-wrapper {
        overflow-x: auto;
    }

    .bida-earnings-summary {
        grid-template-columns: 1fr;
    }

    .bida-stat-value {
        font-size: 24px;
    }

    .bida-earnings-container {
        padding: 10px;
    }

    .bida-earnings-header {
        padding: 20px;
    }

    .bida-earnings-header h2 {
        font-size: 22px;
    }

    .bida-earnings-table th,
    .bida-earnings-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bida-stat-card {
        padding: 20px;
    }

    .bida-stat-value {
        font-size: 20px;
    }

    .bida-earnings-table th,
    .bida-earnings-table td {
        padding: 10px 6px;
        font-size: 12px;
    }
}
