/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #144780 0%, #0d2f5a 100%);
    min-height: 100vh;
    color: #333;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    padding-left: 0;
}

.header h1 i {
    color: #144780;
    font-size: 1.8rem;
}

.header h1 img {
    border-radius: 8px;
}

/* Container Principal */
.container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-logo {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.sidebar-logo i {
    font-size: 2rem;
    color: #144780;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar-logo i:hover {
    transform: rotate(180deg);
}

.sidebar-logo img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.sidebar-logo img:hover {
    transform: scale(1.05);
}

/* Botão Dashboard */
.dashboard-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    margin: 0 15px 15px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #144780, #0d2f5a);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    justify-content: flex-start;
}

.accordion-header,
.sidebar-link {
    min-width: 220px;
    max-width: 100%;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    justify-content: flex-start;
}

.dashboard-button:hover,
.dashboard-button.active {
    background: linear-gradient(135deg, #0f3a6b, #0a2547);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(20, 71, 128, 0.4);
}

.dashboard-button i {
    font-size: 1.2rem;
}

/* Acordeão */
.accordion {
    margin: 0 15px 10px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(20, 71, 128, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #2c3e50;
}

.accordion-header:hover {
    background: rgba(20, 71, 128, 0.2);
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: #144780;
}

.accordion.active .accordion-header i {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion.active .accordion-content {
    max-height: 1000px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 50px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(20, 71, 128, 0.1);
    color: #144780;
    border-left-color: #144780;
    transform: translateX(5px);
}

.sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: calc(100vw - 280px);
}

.content-wrapper {
    width: 100%;
    margin: 0;
    max-width: none;
}

/* Welcome Card */
.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    width: 100%;
}

.welcome-card:hover {
    transform: translateY(-5px);
}

.welcome-card i {
    font-size: 4rem;
    color: #144780;
    margin-bottom: 20px;
    display: block;
}

.welcome-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Estilos para Formulários */
.page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-header-text {
    flex: 1;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    color: #144780;
    font-size: 2rem;
}

.page-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Estilos para Tabelas */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.table-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-header h3 i {
    color: #144780;
    font-size: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
}

.data-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.data-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.data-table tbody tr:hover {
    background: rgba(20, 71, 128, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table td {
    padding: 12px;
    font-size: 0.9rem;
    color: #333;
    vertical-align: middle;
}

.data-table td:first-child {
    font-weight: 600;
    color: #144780;
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ativo {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-inativo {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-pendente {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status-concluido {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-sem-status {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-activate {
    background: #27ae60;
    color: white;
}

.btn-activate:hover {
    background: #229954;
}

.btn-deactivate {
    background: #e74c3c;
    color: white;
}

.btn-deactivate:hover {
    background: #c0392b;
}

.btn-view {
    background: #3498db;
    color: white;
}

.btn-view:hover {
    background: #2980b9;
}

.btn-download {
    background: #27ae60;
    color: white;
}

.btn-download:hover {
    background: #229954;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.table-info {
    color: #666;
    font-size: 0.9rem;
}

/* Formulário */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.form-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header h3 i {
    color: #144780;
    font-size: 1.5rem;
}

.entidade-form {
    width: 100%;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e8ed;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section h3 i {
    color: #144780;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #144780;
    box-shadow: 0 0 0 3px rgba(20, 71, 128, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

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

/* Botões */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f3a6b, #0a2547);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2980b9;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        z-index: 999;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100vw;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .welcome-card {
        padding: 30px 20px;
    }
    
    .welcome-card h3 {
        font-size: 1.5rem;
    }
    
    .welcome-card i {
        font-size: 3rem;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-logo img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .welcome-card {
        padding: 25px 15px;
    }
    
    .welcome-card h3 {
        font-size: 1.3rem;
    }
    
    .welcome-card p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table-section-header {
        padding: 15px 20px;
    }
    
    .table-section-header h3 {
        font-size: 1.2rem;
    }
    
    .table-container {
        padding: 20px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-card,
.form-container,
.page-header,
.table-container {
    animation: fadeIn 0.6s ease-out;
}

/* Scrollbar personalizada */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(40, 129, 197, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 129, 197, 0.5);
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Efeitos de hover adicionais */
.accordion-header:active {
    transform: scale(0.98);
}

.sidebar-link:active {
    transform: scale(0.95);
}

.table-section-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #144780;
}

.table-section-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-section-header h3 i {
    color: #144780;
    font-size: 1.6rem;
}

/* Filtros do dashboard */
.filtros-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-end;
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(20,71,128,0.08);
    padding: 18px 24px 10px 24px;
}
.filtros-bar input.form-control,
.filtros-bar select.form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(20,71,128,0.04);
    outline: none;
}
.filtros-bar input.form-control:focus,
.filtros-bar select.form-control:focus {
    border-color: #144780;
    box-shadow: 0 0 0 2px #14478033;
    background: #fff;
}
.filtros-bar select.form-control {
    cursor: pointer;
}
@media (max-width: 900px) {
    .filtros-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 10px 8px 10px;
    }
    .filtros-bar input.form-control,
    .filtros-bar select.form-control {
        width: 100% !important;
    }
}

/* Ajuste para containers de modal e formulário */
.modal-container,
.form-container {
    /* Removido ajuste de width/max-width/margin feito para o formulário de lançamento de item */
}

/* Classes para status coloridos */
.status-vermelho {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
    border: 1px solid rgba(231, 76, 60, 0.2) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

.status-verde {
    background: rgba(39, 174, 96, 0.1) !important;
    color: #27ae60 !important;
    border: 1px solid rgba(39, 174, 96, 0.2) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

.status-amarelo {
    background: rgba(243, 156, 18, 0.1) !important;
    color: #f39c12 !important;
    border: 1px solid rgba(243, 156, 18, 0.2) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

/* Estilos para o Importador de Processos */
.import-section {
    padding: 20px;
}

.upload-area {
    border: 3px dashed #144780;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(20, 71, 128, 0.05);
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #0d2f5a;
    background: rgba(20, 71, 128, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 71, 128, 0.2);
}

.upload-content i {
    font-size: 3rem;
    color: #144780;
    margin-bottom: 15px;
    display: block;
}

.upload-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.upload-content p {
    color: #666;
    margin-bottom: 5px;
}

.file-types {
    color: #144780 !important;
    font-weight: 500;
    font-size: 0.9rem;
}

.file-info {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-details i {
    font-size: 2rem;
    color: #28a745;
}

.file-text h5 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.file-text p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.preview-container {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preview-container h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-container h4 i {
    color: #144780;
}

.preview-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
}

.preview-info span {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.import-settings {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.import-settings h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.import-settings h4 i {
    color: #144780;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Responsividade para o importador */
@media (max-width: 768px) {
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-content i {
        font-size: 2.5rem;
    }
    
    .upload-content h4 {
        font-size: 1.1rem;
    }
    
    .file-details {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .preview-container,
    .import-settings {
        padding: 15px;
    }
}

/* Estilos para o Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    width: 1000px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-actions .btn {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-success {
    background-color: #28a745;
    color: white;
}

.modal-actions .btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

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

/* Responsividade do modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 70vh;
    }
} 

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.25);
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid;
}

.notification-success .notification-content {
    border-left-color: #27ae60;
}

.notification-error .notification-content {
    border-left-color: #e74c3c;
}

.notification-info .notification-content {
    border-left-color: #3498db;
}

.notification-content i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.notification-success .notification-content i {
    color: #27ae60;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-info .notification-content i {
    color: #3498db;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
}

.notification-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #666;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para botões de ação na tabela */
.btn-action {
    padding: 6px 12px;
    margin: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-action.btn-info:hover {
    background-color: #138496;
}

.btn-action.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-action.btn-success:hover {
    background-color: #218838;
}

/* Estilos para modal de documentos */
#modal-documentos .modal-content {
    max-width: 900px;
}

#documentos-modal-table {
    width: 100%;
    border-collapse: collapse;
}

#documentos-modal-table th,
#documentos-modal-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

#documentos-modal-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

#documentos-modal-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Responsividade para botões de ação */
@media (max-width: 768px) {
    .btn-action {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    #modal-documentos .modal-content {
        max-width: 95%;
        margin: 20px auto;
    }
} 