/* Dashboard Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    color: #4d2f2f;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #6f9487;
    padding-bottom: 10px;
}

/* User Profile Section */
.user-profile {
    grid-column: 1;
    grid-row: 1 / 3;
}

.profile-photo {
    text-align: center;
    margin-bottom: 20px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #6f9487;
    margin-bottom: 15px;
}

.btn-upload {
    background-color: #6f9487;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-upload:hover {
    background-color: #5a7d72;
}

.user-info p {
    margin: 12px 0;
    font-size: 16px;
    color: #333;
}

.user-info strong {
    color: #4d2f2f;
}

/* Map Section */
.map-section {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
}

.france-map {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f5f3;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
}

/* Create Trip Section */
.create-trip {
    grid-column: 3;
    grid-row: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #4d2f2f;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6f9487;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #45a049;
}

.btn-cancel {
    background-color: #999;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.btn-cancel:hover {
    background-color: #777;
}

/* My Vehicles Section */
.my-vehicles {
    grid-column: 3;
    grid-row: 2;
}

.vehicle-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.vehicle-card h4 {
    color: #4d2f2f;
    margin-bottom: 10px;
}

.vehicle-card p {
    margin: 5px 0;
    font-size: 14px;
}

.btn-add {
    background-color: #6f9487;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.btn-add:hover {
    background-color: #5a7d72;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .user-profile,
    .map-section,
    .create-trip,
    .my-vehicles {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}
