/* Custom Styles - Alumni System */

/* ============================================
   PAGINAÇÃO EM TONS DE VERDE
   ============================================ */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-item .page-link,
.pagination-success .page-item .page-link {
    color: #4caf50;
    border-color: #81c784;
    background-color: #fff;
    transition: all 0.3s ease;
    margin: 0 2px;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
}

.pagination .page-item .page-link:hover,
.pagination-success .page-item .page-link:hover {
    background-color: #c8e6c9;
    border-color: #66bb6a;
    color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.pagination .page-item.active .page-link,
.pagination-success .page-item.active .page-link {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-color: #4caf50;
    color: #fff;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link,
.pagination-success .page-item.disabled .page-link {
    color: #a5d6a7;
    border-color: #c8e6c9;
    background-color: #f1f8f4;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   FOOTER FIXO
   ============================================ */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   RESPONSIVIDADE MELHORADA
   ============================================ */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
        margin: 0;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .page-item .page-link {
        padding: 6px 10px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-header h6 {
        font-size: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .pagination .page-item .page-link {
        padding: 5px 8px;
        font-size: 0.75rem;
        margin: 0 1px;
    }
}

/* ============================================
   DESIGN MODERNO
   ============================================ */
.card {
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
}

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

.btn-success,
.bg-gradient-success {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border: none;
}

.btn-success:hover,
.bg-gradient-success:hover {
    background: linear-gradient(135deg, #43a047 0%, #5cb660 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary,
.bg-gradient-primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border: none;
    color: #fff;
}

.btn-primary:hover,
.bg-gradient-primary:hover {
    background: linear-gradient(135deg, #43a047 0%, #5cb660 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    color: #fff;
}

.btn-danger,
.bg-gradient-danger {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    border: none;
}

.btn-danger:hover,
.bg-gradient-danger:hover {
    background: linear-gradient(135deg, #e53935 0%, #e57373 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-info,
.bg-gradient-info {
    background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
    border: none;
    color: #fff;
}

.btn-info:hover,
.bg-gradient-info:hover {
    background: linear-gradient(135deg, #5cb660 0%, #66bb6a 100%);
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
    color: #fff;
}

/* Badges modernos */
.badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-success,
.badge.bg-primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%) !important;
}

/* Form inputs modernos */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

/* Modal moderno */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 16px 16px;
    padding: 1.25rem 1.5rem;
}

/* Tabelas responsivas */
.table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
}

/* Correção para tela de relatórios - evitar corte de conteúdo */
.report-container {
    overflow-x: visible !important;
    max-width: 100% !important;
    width: 100% !important;
}

.report-container .container-fluid {
    overflow-x: visible !important;
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.report-container .card {
    overflow: visible !important;
    margin-bottom: 2rem;
}

.report-container .card-body {
    overflow: visible !important;
    padding: 1.5rem !important;
    min-height: auto !important;
}

.report-container .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 1rem;
}

.report-container .table {
    width: 100% !important;
    margin-bottom: 0 !important;
    table-layout: auto !important;
    white-space: nowrap;
}

.report-container .table td,
.report-container .table th {
    white-space: normal !important;
    word-wrap: break-word;
    max-width: 200px;
}

@media (max-width: 768px) {
    .report-container .table-responsive {
        overflow-x: scroll !important;
        display: block !important;
    }
    
    .report-container .table {
        min-width: 800px !important;
        display: table !important;
    }
    
    .report-container .table td,
    .report-container .table th {
        white-space: nowrap !important;
        max-width: none !important;
    }
    
    .report-container .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

.table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f9f9f9;
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

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

.card,
.modal-content {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #43a047 0%, #5cb660 100%);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Alertas modernos */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
}

.alert-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

/* ============================================
   PALETA DE CORES VERDE - PADRONIZAÇÃO COMPLETA
   ============================================ */

/* Sidebar - Links ativos em verde */
.nav-link.active,
.nav-link.active.bg-gradient-primary,
.nav-link.active.bg-gradient-success {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%) !important;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.nav-link:hover:not(.active) {
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

/* Card headers com gradiente verde */
.card-header .bg-gradient-primary,
.card-header .bg-gradient-success,
.bg-gradient-primary.shadow-primary,
.bg-gradient-success.shadow-primary {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%) !important;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3) !important;
}

/* Links e elementos interativos */
a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #4caf50;
    transition: color 0.3s ease;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #2e7d32;
}

/* Botões de ação principais */
.btn-primary,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-color: #4caf50;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #43a047 0%, #5cb660 100%);
    border-color: #43a047;
    color: #fff;
}

/* Inputs e selects com foco verde */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Checkboxes e radios */
.form-check-input:checked {
    background-color: #4caf50;
    border-color: #4caf50;
}

/* Tabelas - cabeçalho com tom verde suave */
.table thead th {
    background-color: #f1f8f4;
    color: #2e7d32;
    border-bottom: 2px solid #c8e6c9;
}

.table tbody tr:hover {
    background-color: #f1f8f4;
}

/* Dropdown menus */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

.dropdown-item.active {
    background-color: #4caf50;
    color: #fff;
}

/* Progress bars */
.progress-bar {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
}

/* Tooltips */
.tooltip-inner {
    background-color: #2e7d32;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #2e7d32;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #2e7d32;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #2e7d32;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #2e7d32;
}

/* Breadcrumbs */
.breadcrumb-item.active {
    color: #2e7d32;
}

.breadcrumb-item a {
    color: #4caf50;
}

.breadcrumb-item a:hover {
    color: #2e7d32;
}

/* Navbar */
.navbar-brand {
    color: #2e7d32 !important;
}

.navbar-brand:hover {
    color: #1b5e20 !important;
}

/* Text colors */
.text-primary {
    color: #4caf50 !important;
}

.text-success {
    color: #2e7d32 !important;
}

/* Background colors */
.bg-primary {
    background-color: #4caf50 !important;
}

.bg-success {
    background-color: #66bb6a !important;
}

/* Border colors */
.border-primary {
    border-color: #4caf50 !important;
}

.border-success {
    border-color: #66bb6a !important;
}
