/* Arquivo: assets/css/style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #217dbb;
}

/* Layout principal */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

/* Navegação */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-menu a i {
    margin-right: 5px;
}

.nav-menu a:hover {
    color: white;
}

.nav-menu li.active a {
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.user-info {
    margin-left: auto;
}

.user-info a {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.logout {
    color: rgba(255, 255, 255, 0.7);
}

.logout:hover {
    color: #e74c3c;
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.card-header h2, .card-header h3, .card-header h4 {
    margin-bottom: 0;
    color: white;
}

.card-header.bg-primary {
    background-color: var(--primary-color);
}

.card-header.bg-success {
    background-color: var(--success-color);
}

.card-header.bg-danger {
    background-color: var(--danger-color);
}

.card-header.bg-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.card-header.bg-warning h2, .card-header.bg-warning h3, .card-header.bg-warning h4 {
    color: #212529;
}

.card-header.bg-info {
    background-color: var(--info-color);
}

.card-header.bg-secondary {
    background-color: #6c757d;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Botões */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-success {
    color: #fff;
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-danger {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-warning {
    color: #212529;
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
}

.btn-info {
    color: #fff;
    background-color: var(--info-color);
    border-color: var(--info-color);
}

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

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Tabelas */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-sm th,
.table-sm td {
    padding: 0.3rem;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-detail th {
    width: 30%;
    text-align: right;
    padding-right: 15px;
}

.actions {
    white-space: nowrap;
}

/* Alertas */
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
    background: none;
    border: 0;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    cursor: pointer;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary {
    color: #fff;
    background-color: var(--primary-color);
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

.badge-success {
    color: #fff;
    background-color: var(--success-color);
}

.badge-danger {
    color: #fff;
    background-color: var(--danger-color);
}

.badge-warning {
    color: #212529;
    background-color: var(--warning-color);
}

.badge-info {
    color: #fff;
    background-color: var(--info-color);
}

/* Layout em grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Header actions */
.form-header-actions,
.list-header-actions,
.view-header-actions,
.search-header-actions,
.reports-header-actions,
.report-header-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.form-header-actions .btn,
.list-header-actions .btn,
.view-header-actions .btn,
.search-header-actions .btn,
.reports-header-actions .btn,
.report-header-actions .btn {
    margin-left: 0.5rem;
}

/* Dashboard */
.dashboard-container {
    margin-bottom: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.statistics-section {
    margin-bottom: 2rem;
}

.stat-card {
    padding: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.stat-card-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    color: white;
}

.stat-card-icon {
    margin-right: 1rem;
}

.stat-card-info {
    flex-grow: 1;
}

.stat-card-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.stat-card-link {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    transition: background-color 0.3s;
}

.stat-card-link:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
}

.quick-access-section {
    margin-bottom: 2rem;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--secondary-color);
}

.quick-access-card i {
    margin-bottom: 0.5rem;
}

/* View member */
.member-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-matricula {
    font-size: 1.1rem;
    color: #666;
}

.member-details {
    margin-top: 1rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.member-actions {
    display: flex;
    gap: 10px;
}

/* Forms section */
.form-section {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background-color: #fafafa;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 10px;
}

/* Member info box */
.member-info-box {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.member-avatar {
    margin-right: 2rem;
    color: var(--primary-color);
}

.member-details-preview h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.member-details-preview p {
    margin-bottom: 0.25rem;
}

/* Reports */
.report-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1rem;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stat-percent {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.progress {
    display: flex;
    height: 1.5rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #007bff;
    transition: width 0.6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
}

.report-tips {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.report-tips h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.report-tips ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.report-info p {
    margin-bottom: 0;
}

/* Utilities */
.info-item {
    margin-bottom: 1rem;
}

.maintenance-item {
    margin-bottom: 2rem;
}

.maintenance-item h4 {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.maintenance-item h4 i {
    margin-right: 0.5rem;
}

/* Password requirements */
.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1rem;
}

.requirement {
    display: flex;
    align-items: flex-start;
}

.requirement-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.requirement-text h5 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.requirement-text p {
    margin-bottom: 0;
    color: #666;
}

.security-tips {
    list-style: none;
    padding-left: 0;
}

.security-tips li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.security-tips li i {
    margin-right: 0.5rem;
}

/* 404 Page */
.error-container {
    text-align: center;
    padding: 3rem 0;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-actions {
    margin-top: 2rem;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-right, .text-end {
    text-align: right;
}

.text-left, .text-start {
    text-align: left;
}

.text-muted {
    color: #6c757d;
}

/* Background utilities */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: #6c757d;
}

.bg-success {
    background-color: var(--success-color);
}

.bg-danger {
    background-color: var(--danger-color);
}

.bg-warning {
    background-color: var(--warning-color);
}

.bg-info {
    background-color: var(--info-color);
}

/* Spacing utilities */
.mt-1, .my-1 {
    margin-top: 0.25rem;
}

.mb-1, .my-1 {
    margin-bottom: 0.25rem;
}

.mt-2, .my-2 {
    margin-top: 0.5rem;
}

.mb-2, .my-2 {
    margin-bottom: 0.5rem;
}

.mt-3, .my-3 {
    margin-top: 1rem;
}

.mb-3, .my-3 {
    margin-bottom: 1rem;
}

.mt-4, .my-4 {
    margin-top: 1.5rem;
}

.mb-4, .my-4 {
    margin-bottom: 1.5rem;
}

.mt-5, .my-5 {
    margin-top: 3rem;
}

.mb-5, .my-5 {
    margin-bottom: 3rem;
}

/* Flexbox utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

.align-items-center {
    align-items: center;
}

/* Responsive utilities */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
    
    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    
    .col-md-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 767.98px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        background-color: var(--primary-color);
        transition: height 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        height: auto;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        padding: 1rem;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .form-header-actions,
    .list-header-actions,
    .view-header-actions,
    .search-header-actions,
    .reports-header-actions,
    .report-header-actions {
        flex-direction: column;
    }
    
    .form-header-actions .btn,
    .list-header-actions .btn,
    .view-header-actions .btn,
    .search-header-actions .btn,
    .reports-header-actions .btn,
    .report-header-actions .btn {
        margin-left: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .card-header .row {
        flex-direction: column;
    }
    
    .search-form .input-group {
        flex-direction: column;
    }
    
    .search-form .input-group > * {
        margin-bottom: 0.5rem;
    }
    
    .member-info-box {
        flex-direction: column;
        text-align: center;
	.member-info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .member-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    header, footer, .btn, .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        color: #333 !important;
        border-bottom: 1px solid #ddd;
    }
    
    .card-header h2, .card-header h3, .card-header h4 {
        color: #333 !important;
    }
    
    .badge-success {
        border: 1px solid #2ecc71;
        color: #2ecc71 !important;
        background-color: white !important;
    }
    
    .badge-danger {
        border: 1px solid #e74c3c;
        color: #e74c3c !important;
        background-color: white !important;
    }
    
    .badge-warning {
        border: 1px solid #f39c12;
        color: #f39c12 !important;
        background-color: white !important;
    }
    
    .badge-info {
        border: 1px solid #3498db;
        color: #3498db !important;
        background-color: white !important;
    }
    
    .badge-secondary {
        border: 1px solid #6c757d;
        color: #6c757d !important;
        background-color: white !important;
    }
    
    .table {
        width: 100% !important;
    }
}

/* ===== DATATABLES CUSTOMIZATION ===== */
/* Adicionar ao final do arquivo assets/css/style.css */

.dataTables_wrapper {
    margin-top: 1rem;
}

.dataTables_filter {
    margin-bottom: 1rem;
    text-align: right;
}

.dataTables_filter label {
    font-weight: normal;
}

.dataTables_filter input {
    margin-left: 0.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.dataTables_length {
    margin-bottom: 1rem;
}

.dataTables_length label {
    font-weight: normal;
}

.dataTables_length select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.dataTables_info {
    padding-top: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.dataTables_paginate {
    padding-top: 0.75rem;
    text-align: right;
}

.dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    text-decoration: none;
    background-color: #fff;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.875rem;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.dataTables_paginate .paginate_button.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.dataTables_paginate .paginate_button.disabled {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Fallback DataTable styles para quando jQuery não estiver disponível */
.table-search {
    margin-bottom: 1rem;
}

.table-search input {
    width: 100%;
    max-width: 300px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
}

.table-pagination {
    margin-top: 1rem;
    text-align: center;
}

.table-pagination ul {
    list-style: none;
    display: inline-flex;
    padding: 0;
    margin: 0;
}

.table-pagination li {
    margin-right: 5px;
}

.sort-icon {
    font-size: 0.8em;
    margin-left: 5px;
    color: #6c757d;
    cursor: pointer;
}

/* Melhorias para ações na tabela */
.actions .btn {
    margin-right: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.actions .btn:last-child {
    margin-right: 0;
}

/* Responsive para DataTables */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
        margin-top: 1rem;
    }
    
    .dataTables_filter input {
        width: 100%;
        max-width: 200px;
    }
    
    .actions .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
        margin-right: 0.15rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Esconder colunas menos importantes no mobile */
    .table-responsive .d-none-mobile {
        display: none;
    }
}

/* Compatibilidade com tema escuro (futuro) */
@media (prefers-color-scheme: dark) {
    .dataTables_filter input,
    .dataTables_length select {
        background-color: #fff;
        color: #212529;
    }
}

/* ===== FORMS & INPUT GROUPS ===== */
/* Adicionar ao final do arquivo assets/css/style.css */

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    display: block;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
}

.input-group > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Form Text */
.form-text {
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

/* Search Form */
.search-form {
    margin-bottom: 1rem;
}

.search-form .input-group > select {
    flex: 0 0 auto;
    width: auto;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-form .input-group > input {
    border-radius: 0;
}

.search-form .input-group > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Search Count */
.search-count {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Password Strength */
.password-strength {
    height: 4px;
    margin-top: 0.5rem;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
}

.password-strength-weak .password-strength-bar {
    width: 33%;
    background-color: var(--danger-color);
}

.password-strength-medium .password-strength-bar {
    width: 66%;
    background-color: var(--warning-color);
}

.password-strength-strong .password-strength-bar {
    width: 100%;
    background-color: var(--success-color);
}

.password-strength-text {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.password-strength-text.password-strength-weak {
    color: var(--danger-color);
}

.password-strength-text.password-strength-medium {
    color: var(--warning-color);
}

.password-strength-text.password-strength-strong {
    color: var(--success-color);
}

/* Invalid Feedback */
.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--danger-color);
    display: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Responsive Forms */
@media (max-width: 767.98px) {
    .search-form .input-group {
        flex-direction: column;
    }
    
    .search-form .input-group > * {
        margin-bottom: 0.5rem;
        border-radius: var(--border-radius) !important;
    }
    
    .search-form .input-group > *:last-child {
        margin-bottom: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .form-actions .btn:last-child {
        margin-bottom: 0;
    }
}