/* Além da Mídia / Além do Audiovisual - UI Modern & Premium Theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.adm-app-wrapper {
    max-width: 960px;
    margin: 30px auto;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    background: transparent;
}

/* Modern Pill-Style Tabs */
.adm-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
    overflow-x: auto;
}

.adm-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-align: center;
}

.adm-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.adm-tab-btn.active {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12), 0 2px 4px rgba(0,0,0,0.04);
}

.adm-tab-btn.adm-tab-org {
    color: #4f46e5;
}
.adm-tab-btn.adm-tab-org.active {
    color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.adm-tab-content {
    display: none;
}

.adm-tab-content.active {
    display: block;
}

/* Glassmorphism Containers & Cards */
.adm-form-container, .adm-table-wrapper, .adm-login-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 0 1px 1px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

.adm-login-box {
    max-width: 420px;
    margin: 40px auto;
    text-align: center;
}

.adm-login-box h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.adm-login-box p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.adm-form-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #0f172a;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-form-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 4px;
}

/* Modern Inputs & Form Styling */
.adm-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.adm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.adm-form-group label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.adm-form-group input, 
.adm-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background-color: #f8fafc;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.adm-form-group input:focus, 
.adm-form-group select:focus {
    outline: none;
    border-color: #dc2626;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.adm-valor-box {
    background: #fef2f2;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adm-valor-box label {
    margin-bottom: 0;
    color: #991b1b;
}

.adm-valor-badge {
    padding: 8px 18px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Red & Centered Button for Confirmar Inscrição */
.adm-btn-submit {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 24px auto 0 auto;
    padding: 16px 28px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.4);
}

.adm-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(220, 38, 38, 0.5);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.adm-form-msg {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    text-align: center;
}
.adm-form-msg.success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.adm-form-msg.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Metrics Dashboard Cards */
.adm-metrics-summary {
    display: flex;
    gap: 12px;
    align-items: center;
}

.adm-stat-badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.adm-stat-total {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.adm-stat-confirmed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Styled Table with Hover & Pill Badges */
.adm-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.adm-table-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.adm-table-responsive {
    overflow-x: auto;
}

.adm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 14px;
}

.adm-table th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 700;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.adm-table th:first-child { border-top-left-radius: 10px; }
.adm-table th:last-child { border-top-right-radius: 10px; }

.adm-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.adm-table tbody tr {
    transition: background 0.2s ease;
}

.adm-table tbody tr:hover {
    background: #f8fafc;
}

.adm-chip {
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: inline-block;
}

.adm-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.adm-badge-pendente {
    background: #fffbe6;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.adm-badge-confirmado {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Action Buttons for Admin Panel */
.adm-btn-logout {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s ease;
}

.adm-btn-logout:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.adm-action-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 4px;
}

.adm-btn-confirm {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.adm-btn-confirm:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.adm-btn-pending {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}
.adm-btn-pending:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.adm-btn-delete {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}
.adm-btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    .adm-form-row {
        grid-template-columns: 1fr;
    }
    .adm-tabs {
        flex-direction: column;
    }
    .adm-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .adm-table thead {
        display: none;
    }
    
    .adm-table, .adm-table tbody, .adm-table tr, .adm-table td {
        display: block;
        width: 100%;
    }

    .adm-table tr {
        margin-bottom: 16px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }

    .adm-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 4px;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }
    .adm-table td:last-child {
        border-bottom: none;
    }

    .adm-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}


/* ===== Refinamento visual da tabela pública ===== */
.adm-public-table-section {
    display: block;
    margin-top: 24px;
}

.adm-public-table-section .adm-table-wrapper {
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 18px 45px -18px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.adm-public-table-section .adm-table-header {
    margin-bottom: 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e8edf3;
}

.adm-public-table-section .adm-table-header h4 {
    font-size: 21px;
    letter-spacing: -0.025em;
}

.adm-public-table-section .adm-table-responsive {
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    overflow-x: auto;
    background: #fff;
}

.adm-public-table-section .adm-table th {
    background: #f4f6f8;
    padding: 15px 17px;
    color: #475569;
    border-bottom: 1px solid #dfe5eb;
}

.adm-public-table-section .adm-table td {
    padding: 16px 17px;
    border-bottom: 1px solid #edf0f3;
}

.adm-public-table-section .adm-table tbody tr:last-child td {
    border-bottom: none;
}

.adm-public-table-section .adm-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.adm-public-table-section .adm-table tbody tr:hover {
    background: #f5f8fb;
}

.adm-public-table-section .adm-chip {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 7px 11px;
}

.adm-public-table-section .adm-badge {
    min-width: 82px;
    text-align: center;
    padding: 7px 12px;
}

@media (max-width: 768px) {
    .adm-public-table-section {
        margin-top: 18px;
    }
    .adm-public-table-section .adm-table-wrapper {
        padding: 20px 14px;
    }
    .adm-public-table-section .adm-table-responsive {
        border: none;
        overflow: visible;
        background: transparent;
    }
    .adm-public-table-section .adm-table tr {
        background: #fff !important;
    }
}
