/* ==================== FONT ==================== */
@font-face {
    font-family: 'NimbusRomNo9L';
    src: url('../fonts/NimbusRomNo9L-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==================== ROOT ==================== */
:root {
    --primary: #330145;
    --primary-dark: #22012a;
    --secondary: #D2691E;
    --white: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --success: #10b981;
    --error: #ef4444;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== BODY ==================== */
body {
    font-family: 'NimbusRomNo9L','Times New Roman', serif;
    background: linear-gradient(135deg, #e6e9ee, #dfe3e8);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
}

/* ==================== FORMULÁRIO ==================== */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.form-card {
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.form-header {
    padding:  2rem 2rem 0;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.form-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--text-light);
    
}

.form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* INPUTS */
.form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border: 1px solid #000000;
    box-shadow: none;
}

.form-group input:valid:not(:focus) {
    background: var(--primary-dark);
    color: #ffffff;
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* FILE INPUT */
.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-input-label {
    background: #f3f4f6;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-input-wrapper:hover .file-input-label {
    border-color: #6d28d9;
    background: #faf5ff;
}

.file-input-label span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.file-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--error);
}
.form-card {
    position: relative;
}

.btn-close-top {
    position: absolute;
    top: 15px;
    right: 15px;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    color: #888;
    transition: 0.3s;
}

.btn-close-top:hover {
    color: #000;
}
/* BOTÃO */
.btn-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  background: #2d2d2d;
    color: #ffffff;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #330145, #22012a);
}

/* ALERTAS */
.alert {
    padding: 1rem 1.5rem;
    margin: 1rem 1.5rem 0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ==================== ADMIN ==================== */
.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem; /* <- adicione ou ajuste aqui */
}

.admin-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-secondary {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

/* TABELA */
.table-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 1.5rem; /* adiciona espaço interno */
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--secondary);
    padding: 1rem;
    font-size: 0.85rem;
    color: white;
    text-transform: uppercase;
}

.data-table td {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}
.form-consent {
 
    text-align: center;
}

.age-warning {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.age-warning strong {
    color: #000;
}

.privacy-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
 
}

.privacy-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-imagem {
    margin-bottom: 0 !important;
}

.form-imagem .file-hint {
    margin-top: 0 !important;
}



/* RESPONSIVO */
@media (max-width: 900px) {
    .table-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .form-card {
        border-radius: 0;
        box-shadow: none;
    }

    .container {
        padding: 0;
    }
}