/* public/css/suggestions.css */

/* Bouton de suggestion sur la page de login */
.suggestion-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #009344 0%, #28246E 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 147, 68, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.suggestion-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 147, 68, 0.4);
    background: linear-gradient(135deg, #00a94f 0%, #2a2b7d 100%);
}

.suggestion-trigger i {
    font-size: 18px;
}

/* Pour mobile */
@media (max-width: 768px) {
    .suggestion-trigger {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Modal/Lightbox overlay */
.suggestion-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.suggestion-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container du modal */
.suggestion-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Header du modal */
.suggestion-header {
    background: linear-gradient(135deg, #28246E 0%, #009344 100%);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.suggestion-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Corps du modal */
.suggestion-body {
    padding: 30px;
}

/* Formulaire */
.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #28246E;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group label .required {
    color: #E91E63;
}

.form-select {
    padding: 6px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #009344;
    box-shadow: 0 0 0 3px rgba(0, 147, 68, 0.1);
}

.form-textarea {
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #009344;
    box-shadow: 0 0 0 3px rgba(0, 147, 68, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #718096;
    margin-top: -1px;
}

.char-counter.warning {
    color: #FF9500;
}

.char-counter.danger {
    color: #E91E63;
}

/* Captcha */
.captcha-group {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.captcha-question {
    color: #28246E;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.captcha-input {
    padding: 10px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.captcha-input:focus {
    outline: none;
    border-color: #009344;
    box-shadow: 0 0 0 3px rgba(0, 147, 68, 0.1);
}

/* Actions du formulaire */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: #f8fafc;
    color: #718096;
    border: 2px solid #E2E8F0;
}

.btn-cancel:hover {
    background: #E2E8F0;
    color: #2D3748;
}

.btn-submit {
    background: #009344;
    color: white;
    position: relative;
}

.btn-submit:hover:not(:disabled) {
    background: #007a3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 147, 68, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state */
.btn-submit.loading {
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

/* Messages d'alerte */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(0, 147, 68, 0.1);
    color: #009344;
    border: 1px solid rgba(0, 147, 68, 0.2);
}

.alert-error {
    background: rgba(233, 30, 99, 0.1);
    color: #E91E63;
    border: 1px solid rgba(233, 30, 99, 0.2);
}

.alert i {
    font-size: 18px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Responsive pour mobile */
@media (max-width: 480px) {
    .suggestion-container {
        width: 95%;
        margin: 20px;
    }
    
    .suggestion-header {
        padding: 20px;
    }
    
    .suggestion-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}