/**
 * ScortRio - Sistema de Denúncias - Estilos
 * Version: 1.0.0
 */

/* Container do Botão de Denúncia */
.scortrio-report-container {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    text-align: center;
}

/* Botão de Denúncia */
.scortrio-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
}

.scortrio-report-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

.scortrio-report-btn:active {
    transform: translateY(0);
}

.scortrio-report-btn .icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modal */
.scortrio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.scortrio-modal.active {
    display: block;
}

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

/* Conteúdo do Modal */
.scortrio-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scortrio-modal-content h2 {
    margin: 0;
    padding: 25px 30px 10px;
    font-size: 26px;
    color: #212529;
    border-bottom: 3px solid #dc3545;
}

.modal-subtitle {
    padding: 0 30px 20px;
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Botão Fechar */
.scortrio-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #adb5bd;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.scortrio-close:hover,
.scortrio-close:focus {
    color: #dc3545;
    background: #f8f9fa;
}

/* Formulário */
#scortrio-report-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Aviso */
.form-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-notice p {
    margin: 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
}

/* Ações do Formulário */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-submit {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Mensagens */
.report-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.report-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

/* Loading */
.btn-submit.loading {
    position: relative;
    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 transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsivo */
@media (max-width: 768px) {
    .scortrio-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .scortrio-modal-content h2 {
        font-size: 22px;
        padding: 20px 20px 10px;
    }
    
    .modal-subtitle {
        padding: 0 20px 15px;
    }
    
    #scortrio-report-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .scortrio-report-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .scortrio-report-container {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .scortrio-modal {
        background-color: rgba(0, 0, 0, 0.85);
    }
    
    .scortrio-modal-content {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .scortrio-modal-content h2 {
        color: #e2e8f0;
    }
    
    .form-group label {
        color: #cbd5e0;
    }
    
    .form-group select,
    .form-group input,
    .form-group textarea {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .btn-cancel {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .btn-cancel:hover {
        background: #718096;
    }
}
