/* sedveral-ui.css - Styles unifiés pour SedVeral */

/* ===== BOUTONS ===== */
.sedveral-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.5;
}

.sedveral-btn-primary {
    background: #1a237e;
    color: white;
}

.sedveral-btn-primary:hover {
    background: #0f1b5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sedveral-btn-success {
    background: #28a745;
    color: white;
}

.sedveral-btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sedveral-btn-danger {
    background: #dc3545;
    color: white;
}

.sedveral-btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sedveral-btn-warning {
    background: #ffc107;
    color: #1a237e;
}

.sedveral-btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sedveral-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== CARTES ===== */
.sedveral-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sedveral-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* ===== FORMULAIRES ===== */
.sedveral-form-group {
    margin-bottom: 20px;
}

.sedveral-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.sedveral-form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sedveral-form-control:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.sedveral-form-control.error {
    border-color: #dc3545;
}

.sedveral-form-control.success {
    border-color: #28a745;
}

/* ===== NOTIFICATIONS ===== */
.sedveral-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    padding: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow: hidden;
}

.sedveral-notification.show {
    transform: translateX(0);
}

.sedveral-notification.success {
    border-left: 4px solid #28a745;
}

.sedveral-notification.error {
    border-left: 4px solid #dc3545;
}

.sedveral-notification.warning {
    border-left: 4px solid #ffc107;
}

.sedveral-notification.info {
    border-left: 4px solid #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.notification-message {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #333;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sedveral-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sedveral-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #1a237e;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

/* ===== FORCE DU MOT DE PASSE ===== */
.sedveral-password-strength {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    height: 5px;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

/* ===== UTILITAIRES ===== */
.sedveral-text-center { text-align: center; }
.sedveral-mt-20 { margin-top: 20px; }
.sedveral-mb-20 { margin-bottom: 20px; }
.sedveral-p-20 { padding: 20px; }

/* ===== STYLE POUR BOUTONS EN COURS DE TRAITEMENT ===== */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    padding-left: 35px !important;
}

button[type="submit"]:disabled::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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