/**
 * Estilos para o Sistema de Cadastro de Comissões - ASSEGO
 */

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #06218c;
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* User menu */
.user-menu {
    position: relative;
}

.user-button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.user-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 30px;
    height: 30px;
    background-color: #fff;
    color: #06218c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-info {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.user-name {
    font-weight: bold;
}

.user-role {
    font-size: 0.8rem;
    color: #666;
}

.user-dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
}

.logout-link {
    border-top: 1px solid #eee;
}

/* Card */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f5f6f8;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #06218c;
    display: flex;
    align-items: center;
}

.card-header h2 i {
    margin-right: 10px;
}

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

.card-body {
    padding: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.tab-btn i {
    margin-right: 5px;
}

.tab-btn:hover {
    color: #06218c;
}

.tab-btn.active {
    border-bottom-color: #06218c;
    color: #06218c;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Layout de formulários */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    min-width: 300px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06218c;
    box-shadow: 0 0 0 3px rgba(13, 109, 253, 0.1);
}

.form-group .help-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Slide animation for forms */
.slide-up {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Endereco container para busca de CEP */
.endereco-container {
    position: relative;
    margin-bottom: 15px;
}

.cep-loader {
    position: absolute;
    right: 45px;
    top: 35px;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #06218c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #06218c;
    font-size: 0.9rem;
}

.form-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
    font-weight: 500;
    text-decoration: none;
    min-width: 36px;
    min-height: 36px;
}

.btn i {
    margin-right: 8px;
    font-size: 14px;
}

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

.btn-primary {
    background-color: #06218c;
    color: white;
}

.btn-primary:hover {
    background-color: #051a6e;
}

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

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

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

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

.btn-danger {
    background-color: #dc3545;
    color: white;
}

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

.btn-light {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #ddd;
}

.btn-light:hover {
    background-color: #e2e6ea;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 30px;
    min-height: 30px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.btn-icon.btn-sm {
    width: 30px;
    height: 30px;
}

.btn-icon i {
    margin: 0;
    font-size: 14px;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table th, 
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table thead th {
    background-color: #f5f6f8;
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

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

.table .actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10rem;
}

.badge-primary {
    background-color: #06218c;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #17a2b8;
}

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

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

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

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

/* Modals */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s;
    margin: auto;
    position: relative;
}

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

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.modal-header h2 i {
    margin-right: 8px;
    color: #06218c;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 10;
}

.close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #333;
}

/* Loading spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
}

.loading-spinner.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #06218c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.loading-text {
    color: #06218c;
    font-weight: 500;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

/* Foto modal */
.foto-modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
}

.foto-modal.show {
    display: flex;
}

.foto-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.foto-container {
    position: relative;
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    border: 1px dashed #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    margin-top: 10px;
}

.foto-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.foto-container:hover .foto-overlay {
    opacity: 1;
}

/* Member details styling */
.member-details-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.member-photo {
    width: 150px;
    height: 150px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    flex-shrink: 0;
}

.member-photo i {
    font-size: 48px;
}

.member-info {
    flex-grow: 1;
}

.member-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #06218c;
}

/* Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    z-index: 2000;
    max-width: 350px;
    display: flex;
    align-items: flex-start;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-icon {
    margin-right: 15px;
    font-size: 24px;
}

.notification-success .notification-icon {
    color: #28a745;
}

.notification-warning .notification-icon {
    color: #ffc107;
}

.notification-danger .notification-icon {
    color: #dc3545;
}

.notification-info .notification-icon {
    color: #17a2b8;
}

.notification-content {
    flex-grow: 1;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-message {
    margin: 0;
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #aaa;
    margin-left: 10px;
    align-self: flex-start;
}

/* Confirm dialog */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.confirm-dialog.show {
    display: flex;
}

.confirm-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    animation: modalFadeIn 0.3s;
    overflow: hidden;
}

.confirm-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirm-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.confirm-body {
    padding: 20px;
}

.confirm-footer {
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Dashboard cards */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    flex: 1;
    min-width: 250px;
    transition: all 0.3s;
}

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

.dashboard-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dashboard-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    color: white;
}

.dashboard-card-primary .dashboard-card-icon {
    background-color: #06218c;
}

.dashboard-card-success .dashboard-card-icon {
    background-color: #28a745;
}

.dashboard-card-warning .dashboard-card-icon {
    background-color: #ffc107;
}

.dashboard-card-danger .dashboard-card-icon {
    background-color: #dc3545;
}

.dashboard-card-title {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.dashboard-card-count {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.dashboard-card-primary .dashboard-card-count {
    color: #06218c;
}

.dashboard-card-success .dashboard-card-count {
    color: #28a745;
}

.dashboard-card-warning .dashboard-card-count {
    color: #ffc107;
}

.dashboard-card-danger .dashboard-card-count {
    color: #dc3545;
}

.dashboard-card-link {
    display: block;
    text-align: right;
    color: #06218c;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Página de cadastro de membro */
.cadastro-page {
    background-color: #f4f5f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cadastro-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container .logo {
    height: 80px;
    margin-bottom: 15px;
}

.logo-container h1 {
    font-size: 2rem;
    color: #06218c;
}

.comissao-info {
    background-color: #e9f5ff;
    border-left: 4px solid #06218c;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Mensagens de sucesso e erro */
.success-message, .error-message {
    text-align: center;
    padding: 30px;
}

.success-icon, .error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

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

.error-icon {
    background-color: #dc3545;
    color: white;
}

.actions {
    text-align: center;
    margin-top: 30px;
}

/* Helpers */
.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-15 {
    padding: 15px;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 8px;
}

/* Responsividade */
@media (max-width: 992px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-col {
        min-width: 100%;
    }
    
    .member-details-container {
        flex-direction: column;
        align-items: center;
    }
    
    .member-info {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #06218c;
        width: 100%;
        max-width: 250px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 100;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .user-menu {
        position: static;
    }
    
    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }
    
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        flex-shrink: 0;
    }
    
    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-header-actions {
        margin-top: 10px;
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    [data-tooltip]::after {
        display: none;
    }
}

/* Estilos para detalhes e tooltips */
.detalhes-grid {
    display: flex;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.detalhes-grid > div {
    flex: 1;
    line-height: 1.8;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.tooltip {
    position: fixed;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1000;
    pointer-events: none;
}

/* Estilos para o modal de detalhes completos */
#modalDetalhesCompletos .modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#modalDetalhesCompletos .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

#modalDetalhesCompletos .modal-body {
    padding: 20px;
}

#modalDetalhesCompletos .card {
    margin-bottom: 20px;
}

#modalDetalhesCompletos .card-header {
    background-color: #f1f3f5;
    padding: 10px 15px;
}

#modalDetalhesCompletos .card-body {
    padding: 15px;
}

#modalDetalhesCompletos .row {
    margin-bottom: 10px;
}

#modalDetalhesCompletos p {
    margin: 0 0 8px;
}

#modalDetalhesCompletos strong {
    color: #495057;
}

#modalDetalhesCompletos .table {
    margin-bottom: 0;
}

#modalDetalhesCompletos .modal-footer {
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

/* Efeito de hover no card clicável */
.card.clickable:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

/* Responsividade dos botões */
@media (max-width: 768px) {
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
    }
    
    .btn-icon.btn-sm {
        width: 28px;
        height: 28px;
    }
    
    .btn i {
        font-size: 13px;
    }
    
    .actions {
        display: flex;
        gap: 4px;
    }
}

@media (max-width: 576px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .actions {
        flex-wrap: nowrap;
    }
    
    .table .actions {
        min-width: 100px;
    }
}

/* Melhorias na responsividade da tabela */
@media (max-width: 992px) {
    .table-container {
        margin: 0 -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
    
    .table th,
    .table td {
        padding: 10px;
    }
    
    .table {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .table th,
    .table td {
        padding: 8px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .badge {
        font-size: 11px;
        padding: 0.2em 0.5em;
    }
}

/* Melhorias na tabela */
.table td {
    vertical-align: middle;
}

.d-flex {
    display: flex !important;
}

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

.ml-2 {
    margin-left: 0.5rem !important;
}

.font-weight-bold {
    font-weight: 600 !important;
}

/* Responsividade da tabela */
@media (max-width: 992px) {
    .table-container {
        margin: 0 -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
    
    .table thead th {
        position: sticky;
        top: 0;
        background-color: #f5f6f8;
        z-index: 10;
    }
    
    .table td {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table td, 
    .table th {
        min-width: 120px;
    }
    
    .table td:last-child {
        min-width: 100px;
    }
    
    .table .actions {
        position: sticky;
        right: 0;
        background-color: #fff;
        box-shadow: -4px 0 6px rgba(0, 0, 0, 0.05);
    }
    
    .table tr:hover .actions {
        background-color: #f5f5f5;
    }
}

@media (max-width: 576px) {
    .table td, 
    .table th {
        min-width: 100px;
    }
    
    .table .actions {
        min-width: 90px;
    }
    
    .table .badge {
        white-space: normal;
        text-align: left;
        line-height: 1.2;
    }
}

/* Melhorias nos cards e containers */
.card {
    margin-bottom: 20px;
}

.card-header {
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

@media (max-width: 576px) {
    .card-header {
        padding: 12px 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Utilitários de espaçamento */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.mb-2 { margin-bottom: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.mr-2 { margin-right: 0.5rem !important; }

.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-3 { margin-right: 1rem !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }

/* Melhorias nos badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    line-height: 1.2;
    padding: 0.25em 0.6em;
}