/* Style pour la page profil */

.profile-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.profile-avatar {
    font-size: 80px;
    color: #4b7bec;
    margin-bottom: 15px;
}

.profile-role {
    background-color: #4b7bec;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 10px;
}

.profile-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group small {
    display: block;
    color: #777;
    font-size: 0.85em;
    margin-top: 5px;
}

.form-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    color: #777;
}

.input-with-icon input,
.input-with-icon select {
    padding: 12px 12px 12px 35px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: #4b7bec;
    outline: none;
}

.input-with-icon input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #4b7bec;
    color: white;
}

.btn-primary:hover {
    background-color: #3867d6;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e9e9e9;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.hidden {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Ajoutez ceci à profile.css ou créez un fichier theme.css */
body.dark-theme {
    background-color: #222;
    color: #f5f5f5;
}

body.dark-theme .profile-container,
body.dark-theme .status-card,
body.dark-theme .summary-card {
    background-color: #333;
    color: #f5f5f5;
}

body.dark-theme .input-with-icon input,
body.dark-theme .input-with-icon select {
    background-color: #444;
    color: #f5f5f5;
    border-color: #555;
}

body.dark-theme .btn-secondary {
    background-color: #444;
    color: #f5f5f5;
}

body.dark-theme .btn-secondary:hover {
    background-color: #555;
}

body.dark-theme header,
body.dark-theme footer {
    background-color: #2c3e50;
    color: #f5f5f5;
}

body.dark-theme .main-nav {
    background-color: #34495e;
}

body.dark-theme .nav-item {
    color: #f5f5f5;
}

body.dark-theme .nav-item.active {
    background-color: #4b7bec;
}

body.dark-theme .form-section {
    border-color: #444;
}