/* Driver Portal Styles */

.driver-portal-container {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.login-section {
    max-width: 500px;
    margin: 2rem auto;
}

.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.login-card h1 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid var(--divider);
    border-radius: 5px;
    font-size: 1rem;
}

.login-help {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--primary-blue);
}

.jobs-section {
    margin-bottom: 3rem;
}

.jobs-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jobs-list {
    display: grid;
    gap: 1.5rem;
}

.job-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--divider);
}

.job-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.job-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-status.pending {
    background: #FFF3CD;
    color: #856404;
}

.job-status.bidding-open {
    background: #D1ECF1;
    color: #0C5460;
}

.job-status.assigned {
    background: #D4EDDA;
    color: #155724;
}

.job-body {
    margin-bottom: 1rem;
}

.job-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.job-info i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.job-description {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 5px;
    color: var(--text-primary);
}

.job-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.job-footer button {
    flex: 1;
}

.loading, .no-jobs, .error {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-primary);
}

.job-details-content {
    margin-top: 1rem;
}

.detail-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--divider);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .job-footer {
        flex-direction: column;
    }
}

