/* Driver-specific styles */

/* Override default body styles for driver dashboard */
body.driver-dashboard-page {
    padding-top: 0;
}

body.driver-dashboard-page main {
    padding-top: 0;
}

body.driver-dashboard-page .driver-profile {
    padding-top: 0.5rem;
}

.logout-button {
    top: 1rem;
    right: 1rem;
    background-color: #ffd600;
    color: #000;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #ffbf00;
}

.error-message {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Driver Profile Styles */
.driver-profile {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 2rem 2rem 2rem;
    min-height: calc(100vh - 200px);
    color: #fff;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-content {
    display: flex;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: flex-start;
}

.profile-photo-container {
    position: relative;
    width: 150px;
    height: 150px;
}

#driver-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffd600;
}


.profile-info h2 {
    color: #ffd600;
    margin-bottom: 0.5rem;
}

.driver-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.license-info, .company-info, .company-ytunnus {
    margin: 0.3rem 0;
    color: #ccc;
}

.profile-details {
    margin-bottom: 2rem;
}

.profile-details h3 {
    color: #ffd600;
    margin-bottom: 1rem;
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 1.5rem;
}

/* Booking Section */
.booking-section {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-section h3 {
    color: #ffd600;
    margin-bottom: 2rem;
}

.booking-options {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.booking-option {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.booking-option h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

.phone-number {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.phone-number a {
    color: #ffd600;
    text-decoration: none;
    font-weight: 700;
}

.phone-number a:hover {
    color: #ffbf00;
}

.qr-container {
    margin: 1rem auto;
    display: block;
    padding: 0.75rem;
    background-color: #fff;
    border-radius: 8px;
    width: fit-content;
    line-height: 0;
}

.booking-link {
    display: inline-block;
    margin-top: 1rem;
    background-color: #000;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.booking-link:hover {
    background-color: #333;
}

.uber-logo-link {
    display: inline-block;
    margin-top: 1rem;
    background-color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.uber-logo-link:hover {
    background-color: #f5f5f5;
}

.uber-logo {
    height: 30px;
    width: auto;
    display: block;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
}

header img {
    height: 50px;
}

/* Share Section */
.share-section {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
}

.share-section h3 {
    color: #ffd600;
    margin-bottom: 1rem;
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.share-link-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-button {
    background-color: #ffd600;
    color: #000;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #ffbf00;
}

.copy-message {
    margin-top: 0.5rem;
    color: #4CAF50;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-content {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-container {
        margin-top: 1rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .booking-options {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .booking-option {
        max-width: 250px;
    }
}