button {
    padding: 0px;
}

/*
|--------------------------------------------------------------------------
| FORM PAGE
|--------------------------------------------------------------------------
*/

.lv-form-page {
    max-width: 1000px;
    margin: 40px auto;
}

.lv-page-header {
    margin-bottom: 30px;
}

.lv-page-header h1 {
    margin-bottom: 8px;
}

.lv-page-header p {
    color: #666;
}

/*
| FORM GRID
*/

.lv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lv-col-full {
    grid-column: 1 / -1;
}

.lv-form-grid input,
.lv-form-grid textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

.lv-form-grid textarea {
    min-height: 120px;
    resize: vertical;
}

.lv-form-actions {
    margin-top: 30px;
}

/*
|--------------------------------------------------------------------------
| ALERTS
|--------------------------------------------------------------------------
*/

.lv-alert {
    position: relative;
    padding: 16px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    animation: lvFadeIn .25s ease;
}

.lv-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.lv-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.lv-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

@keyframes lvFadeIn {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
|--------------------------------------------------------------------------
| SECTION HEADER
|--------------------------------------------------------------------------
*/

.lv-section-header {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/*
|--------------------------------------------------------------------------
| DASHBOARD
|--------------------------------------------------------------------------
*/

.lv-dashboard {
    margin-top: 30px;
}

.lv-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/*
| FILTERS
*/

.lv-filters {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.lv-filters input,
.lv-filters select,
.lv-filters button,
.lv-filters a {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    box-sizing: border-box;
}

.lv-filters input,
.lv-filters select {
    border: 1px solid #dcdcdc;
    background: #fff;
}

.lv-filters .lv-btn,
.lv-filters .lv-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}



/*
| FILTER ACTIONS
*/

.lv-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.lv-filter-actions .lv-btn,
.lv-filter-actions .lv-btn-secondary {
    width: auto;
    min-width: 140px;
}

/*
| TABLE
*/

.lv-table {
    width: 100%;
    border-collapse: collapse;
}

.lv-table th,
.lv-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.lv-table th {
    background: #f7f7f7;
    font-weight: 600;
}

/*
| STATUS
*/

.lv-status {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.lv-status-aguardando {
    background: #fff3cd;
}

.lv-status-iniciado {
    background: #d1ecf1;
}

.lv-status-respondida {
    background: #d4edda;
}

.lv-status-editando {
    background: #FEC7C7;
}

.lv-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.lv-disabled:hover {
    transform: none !important;
    opacity: 1 !important;
}

/*
| PAGINATION
*/

.lv-pagination {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.lv-page-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.lv-page-btn:hover {
    background: #e5e7eb;
}

.lv-page-btn.active {
    background: #111827;
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.lv-btn {
    width: 180px;
    background: #111827;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.lv-btn-sm, .lv-btn-secondary {
    background: #111827;
    color: #fff;
    border: none;
    padding: 9.5px 25px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    text-align: center;
}

.lv-btn-secondary:hover {
    background: #045cb4;
    color: white;
}

.lv-auth-btn {
    width: 100%;
}

.lv-auth-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.lv-btn-solicitacao {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
}

/*
| BACK BUTTON
*/

.lv-back-wrapper {
    margin-bottom: 20px;
}

.lv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
}

/*
| ICON BUTTONS
*/

.lv-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lv-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.lv-icon-btn:hover {
    color: white;
    transform: translateY(-1px);
    opacity: 0.9;
}

.lv-delete, .lv-delete-file, .lv-delete-response, .lv-delete-admin {
    background: #fee2e2;
    color: #dc2626;
}

.lv-delete:hover, .lv-delete-file:hover, .lv-delete-response:hover, .lv-delete-admin:hover {
    background: #dc2626;
}

.lv-view, .lv-answer, .lv-edit, .lv-share {
    background: #e0f2fe;
    color: #0284c7;
}

.lv-view:hover, .lv-answer:hover, .lv-edit:hover, .lv-share:hover{
    background: #0284c7;
}

/*
|--------------------------------------------------------------------------
| EMPTY
|--------------------------------------------------------------------------
*/

.lv-empty {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
}

/*
|--------------------------------------------------------------------------
| VIEW PAGE
|--------------------------------------------------------------------------
*/

.lv-view-page {
    max-width: 1100px;
    margin: 40px auto;
}

.lv-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.lv-view-header h1 {
    margin: 0;
    font-size: 32px;
}

.lv-view-header p {
    margin-top: 6px;
    color: #666;
}

/*
| CARDS
*/

.lv-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.lv-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/*
| FILES
*/

.lv-files-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lv-file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 18px;
}

.lv-file-data {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
}

.lv-file-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.lv-file-info p {
    margin: 4px 0 0;
    color: #666;
    font-size: 14px;
}

.lv-file-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.lv-response-box {
    padding: 10px;
}

.lv-icon-crud {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
}

.lv-audit-container {
    margin-top: 30px;
}

/*
|--------------------------------------------------------------------------
| PÁGINA: COMPARTILHAR RESPOSTA
|--------------------------------------------------------------------------
*/

.lv-shared-response {
    display: none;
}

/*
|--------------------------------------------------------------------------
| MODAL
|--------------------------------------------------------------------------
*/

.lv-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lv-modal-content {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
}

.lv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lv-grid {
    display: grid;
    gap: 16px;
}

.lv-grid input,
.lv-grid textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.lv-modal-footer {
    margin-top: 20px;
}

/*
|--------------------------------------------------------------------------
| PDF MODAL
|--------------------------------------------------------------------------
*/

.lv-pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.lv-pdf-content {
    width: 95%;
    height: 95%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.lv-pdf-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lv-pdf-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: 0.2s ease;
    backdrop-filter: blur(6px);
}

.lv-pdf-close:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.95);
}

/*
|--------------------------------------------------------------------------
| AUTH PAGES
|--------------------------------------------------------------------------
*/

.lv-auth-page {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv-auth-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}

.lv-auth-header {
    margin-bottom: 30px;
    text-align: center;
}

.lv-auth-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.lv-auth-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

/*
| FORM
*/

.lv-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lv-auth-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lv-auth-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.lv-auth-group input {
    width: 100%;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    background: #fff;
}

.lv-auth-group input:focus {
    outline: none;
    border-color: #111827;
    box-shadow:
        0 0 0 4px rgba(17, 24, 39, 0.08);
}

/*
| AUTH LINKS
*/

.lv-auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.lv-auth-links a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lv-auth-links a:hover {
    color: #111827;
}

/*
|--------------------------------------------------------------------------
| UPDATE
|--------------------------------------------------------------------------
*/

.lv-upload-section {
    margin-top: 30px;
}