/**
 * Styles pour l'interface expert IEB
 */

/* Variables CSS */
:root {
    --ieb-primary: #0074D9;
    --ieb-success: #2ECC40;
    --ieb-warning: #FF851B;
    --ieb-danger: #FF4136;
    --ieb-text: #333333;
    --ieb-border: #e5e5e5;
    --ieb-background: #ffffff;
    --ieb-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Formulaire */
.ieb-expert-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Champs de formulaire */
.ieb-expert-form input:not([type="file"]),
.ieb-expert-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.ieb-expert-form input:focus,
.ieb-expert-form textarea:focus {
    outline: none;
    border-color: #1e87f0;
    box-shadow: 0 0 0 2px rgba(30, 135, 240, 0.2);
}

/* Messages de validation */
.ieb-expert-form .uk-text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Zone de dépôt du logo */
#logo-drop-zone {
    border: 2px dashed #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f8f8;
    transition: all 0.2s ease;
    cursor: pointer;
}

#logo-drop-zone:hover,
#logo-drop-zone.uk-dragover {
    border-color: #1e87f0;
    background: #f0f8ff;
}

#logo-drop-zone .uk-text-muted {
    font-size: 0.875rem;
}

/* Prévisualisation du logo */
#logo-preview {
    margin: 1rem 0;
}

#logo-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

/* Barre de progression */
#js-progressbar {
    margin: 1rem 0;
}

/* Boutons */
.ieb-expert-form .uk-button {
    text-transform: none;
    font-weight: 500;
}

.ieb-expert-form .uk-button-primary {
    background: #1e87f0;
}

.ieb-expert-form .uk-button-primary:hover {
    background: #0f7ae5;
}

.ieb-expert-form .uk-button-danger {
    background: #f0506e;
}

.ieb-expert-form .uk-button-danger:hover {
    background: #ee395b;
}

/* États des champs */
.ieb-expert-form .uk-form-danger {
    border-color: #f0506e;
    color: #f0506e;
}

.ieb-expert-form .uk-form-success {
    border-color: #32d296;
    color: inherit;
}

/* Notifications */
.uk-notification-message {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 960px) {
    .ieb-expert-form {
        margin: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .ieb-expert-form {
        margin: 0.5rem;
        padding: 0.5rem;
    }

    #logo-drop-zone {
        padding: 1rem;
    }
}

/* Style général du dashboard expert */
.ieb-expert-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.ieb-expert-dashboard .uk-card {
    background: var(--ieb-background);
    border-radius: 8px;
    box-shadow: var(--ieb-card-shadow);
}

.ieb-expert-dashboard .uk-card-title {
    color: var(--ieb-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Champs du formulaire */
.ieb-expert-dashboard .uk-form-label {
    font-weight: 600;
    color: var(--ieb-text);
    margin-bottom: 0.5rem;
}

.ieb-expert-dashboard .uk-input,
.ieb-expert-dashboard .uk-textarea,
.ieb-expert-dashboard .uk-select {
    border: 1px solid var(--ieb-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.ieb-expert-dashboard .uk-input:focus,
.ieb-expert-dashboard .uk-textarea:focus,
.ieb-expert-dashboard .uk-select:focus {
    border-color: var(--ieb-primary);
    box-shadow: 0 0 0 2px rgba(0, 116, 217, 0.1);
}

/* États des champs */
.ieb-expert-dashboard .uk-form-danger {
    border-color: var(--ieb-danger);
    color: var(--ieb-danger);
}

.ieb-expert-dashboard .uk-form-success {
    border-color: var(--ieb-success);
}

.ieb-expert-dashboard .uk-text-danger {
    color: var(--ieb-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.uk-animation-fade {
    animation: fadeIn 0.3s ease-out;
}

/* Accessibilité */
.uk-input:focus,
.uk-textarea:focus,
.uk-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--ieb-primary);
}

/* Style pour les champs obligatoires */
.uk-form-label .uk-text-danger {
    margin-left: 0.25rem;
}

/* État de chargement */
.uk-form-controls.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--ieb-border);
    border-top-color: var(--ieb-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Notifications */
.uk-notification {
    border-radius: 8px;
    box-shadow: var(--ieb-card-shadow);
}

.uk-notification-message {
    border-radius: 6px;
    padding: 15px 20px;
}

.uk-notification-message-primary {
    background: var(--ieb-primary);
    color: white;
}

.uk-notification-message-success {
    background: var(--ieb-success);
    color: white;
}

.uk-notification-message-warning {
    background: var(--ieb-warning);
    color: white;
}

.uk-notification-message-danger {
    background: var(--ieb-danger);
    color: white;
}
