/*========================================
  BOOTSTRAP COMPONENTS - MODERN STYLES
  Bootstrap 5.0.2 Compatible
  Banking & Professional Theme
==========================================*/

/*========================================
  1. ALERTS
==========================================*/

.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.alert-primary {
    background: linear-gradient(135deg, rgba(0, 156, 255, 0.15) 0%, rgba(13, 26, 61, 0.3) 100%);
    border-left-color: #009CFF;
    color: #fff;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(13, 26, 61, 0.3) 100%);
    border-left-color: #28a745;
    color: #fff;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(13, 26, 61, 0.3) 100%);
    border-left-color: #dc3545;
    color: #fff;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(13, 26, 61, 0.3) 100%);
    border-left-color: #ffc107;
    color: #fff;
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.15) 0%, rgba(13, 26, 61, 0.3) 100%);
    border-left-color: #17a2b8;
    color: #fff;
}

.alert i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/*========================================
  2. BREADCRUMB
==========================================*/

.breadcrumb {
    background: linear-gradient(90deg, rgba(0, 156, 255, 0.05) 0%, transparent 100%);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(0, 156, 255, 0.1);
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    color: #8a92a6;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c7a96;
    content: "›";
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.breadcrumb-item a {
    color: #009CFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #00b3ff;
    text-shadow: 0 0 10px rgba(0, 156, 255, 0.5);
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

/*========================================
  3. TEXT UTILITIES
==========================================*/

.text-primary {
    color: #009CFF !important;
}

.text-secondary {
    color: #8a92a6 !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-light {
    color: #b8c0d4 !important;
}

.text-dark {
    color: #0d1a3d !important;
}

.text-muted {
    color: #6c7a96 !important;
}

.text-white {
    color: #fff !important;
}

/* Background utilities */
.bg-primary {
    background-color: #009CFF !important;
}

.bg-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

.bg-dark {
    background: linear-gradient(135deg, #070f27 0%, #0d1a3d 100%) !important;
}

/*========================================
  4. TITLES (H1-H6)
==========================================*/

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
}

h1, .h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #b8c0d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2, .h2 {
    font-size: 1.75rem;
    color: #fff;
}

h3, .h3 {
    font-size: 1.5rem;
    color: #fff;
}

h4, .h4 {
    font-size: 1.25rem;
    color: #b8c0d4;
}

h5, .h5 {
    font-size: 1.1rem;
    color: #b8c0d4;
}

h6, .h6 {
    font-size: 1rem;
    color: #8a92a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*========================================
  5. TABLES
==========================================*/

.table {
    color: #8a92a6;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead th {
    background: linear-gradient(135deg, rgba(0, 156, 255, 0.15) 0%, rgba(13, 26, 61, 0.8) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid rgba(0, 156, 255, 0.3);
    white-space: nowrap;
}

.table tbody tr {
    background-color: rgba(13, 26, 61, 0.3);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover {
    background-color: rgba(0, 156, 255, 0.08);
    /* transform: scale(1.01); */
}


.table tbody tr:hover td {
    color: #b8c0d4;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #8a92a6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(13, 26, 61, 0.4);
}

.table-bordered {
    border: 1px solid rgba(0, 156, 255, 0.2);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Responsive table wrapper */
.table-responsive {
    background: rgba(7, 15, 39, 0.5);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(0, 156, 255, 0.1);
}

/*========================================
  6. BUTTONS
==========================================*/

.btn {
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 156, 255, 0.25);
}

/* Primary Button */
.btn-primary {
    background-color: #009CFF;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 156, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0088dd;
    box-shadow: 0 6px 20px rgba(0, 156, 255, 0.4);
    color: #fff;
}

/* Secondary Button */
.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #b8c0d4;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Success Button */
.btn-success {
    background-color: #28a745;
    color: #fff;
}

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

/* Danger Button */
.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

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

/* Warning Button */
.btn-warning {
    background-color: #ffc107;
    color: #000;
}

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

/* Info Button */
.btn-info {
    background-color: #17a2b8;
    color: #fff;
}

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

/* Light Button */
.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0d1a3d;
}

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

/* Dark Button */
.btn-dark {
    background-color: #009CFF;
    color: #fff;
}

.btn-dark:hover {
    background-color: #0088dd;
    color: #fff;
}

/* Outline Buttons */
.btn-outline-primary {
    border: 2px solid #009CFF;
    color: #009CFF;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #009CFF;
    color: #fff;
}

.btn-outline-secondary {
    border: 2px solid #8a92a6;
    color: #8a92a6;
    background: transparent;
}

.btn-outline-secondary:hover {
    background: #8a92a6;
    color: #fff;
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.btn-outline-success:hover {
    background: #28a745;
    color: #fff;
}

.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

.btn-outline-warning {
    border: 2px solid #ffc107;
    color: #ffc107;
    background: transparent;
}

.btn-outline-warning:hover {
    background: #ffc107;
    color: #000;
}

/* Button sizes */
.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/*========================================
  7. CARDS
==========================================*/

.card {
    background: linear-gradient(135deg, #070f27 0%, #0d1a3d 100%);
    border: 1px solid rgba(0, 156, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

/* Hover apenas para cards que não estão em modais */
.card:not(.modal-content):hover {
    box-shadow: 0 6px 30px rgba(0, 156, 255, 0.2);
    border-color: rgba(0, 156, 255, 0.3);
}

/* Remover efeitos de cards em modais */
.modal .card,
.modal-content {
    margin-bottom: 0 !important;
}

.modal .card:hover,
.modal-content:hover {
    transform: none !important;
}

.card-header {
    background: linear-gradient(90deg, rgba(0, 156, 255, 0.15) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 156, 255, 0.2);
    padding: 1rem 1.5rem;
    color: #fff;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 1.5rem;
    color: #b8c0d4;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
}

.card-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-subtitle {
    color: #8a92a6;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #b8c0d4;
    line-height: 1.6;
}

/*========================================
  8. FORMS
==========================================*/

.form-label {
    color: #b8c0d4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.form-control,
.form-select {
    background-color: rgba(13, 26, 61, 0.6);
    border: 1px solid rgba(0, 156, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(13, 26, 61, 0.8);
    border-color: #009CFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 156, 255, 0.25);
    color: #fff;
}

.form-control::placeholder {
    color: #6c7a96;
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: #6c7a96;
    cursor: not-allowed;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Form check (checkbox/radio) */
.form-check-input {
    background-color: rgba(13, 26, 61, 0.6);
    border: 2px solid rgba(0, 156, 255, 0.3);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #009CFF;
    border-color: #009CFF;
}

.form-check-input:focus {
    border-color: #009CFF;
    box-shadow: 0 0 0 0.2rem rgba(0, 156, 255, 0.25);
}

.form-check-label {
    color: #b8c0d4;
    cursor: pointer;
}

/* Form switch */
.form-switch .form-check-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

/* Input groups */
.input-group-text {
    background-color: rgba(13, 26, 61, 0.8);
    border: 1px solid rgba(0, 156, 255, 0.2);
    color: #009CFF;
}

/* Form validation */
.is-valid {
    border-color: #28a745 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.valid-feedback {
    color: #28a745;
}

.invalid-feedback {
    color: #dc3545;
}

/*========================================
  9. SUMMARY CARDS
==========================================*/

.summary-card {
    background: linear-gradient(135deg, rgba(0, 156, 255, 0.1) 0%, rgba(7, 15, 39, 0.8) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 156, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.summary-card:hover {
    box-shadow: 0 8px 30px rgba(0, 156, 255, 0.3);
    border-color: rgba(0, 156, 255, 0.4);
}

.summary-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #009CFF 0%, #0077cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 156, 255, 0.4);
}

.summary-card-title {
    color: #8a92a6;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.summary-card-value {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.summary-card-footer {
    color: #6c7a96;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card-footer i {
    margin-right: 0.5rem;
}

/* Variantes de cor para summary cards */
.summary-card.success .summary-card-icon {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.summary-card.danger .summary-card-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.summary-card.warning .summary-card-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.summary-card.info .summary-card-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/*========================================
  10. RESPONSIVE ADJUSTMENTS
==========================================*/

@media (max-width: 768px) {
    .card {
        border-radius: 10px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-card-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .alert {
        font-size: 0.85rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
}

/*========================================
  11. MODALS (Bootstrap)
==========================================*/

/* Garantir que modais não sejam afetados por estilos de card */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

.modal-dialog {
    transform: none !important;
}

.modal-content {
    background: linear-gradient(135deg, #070f27 0%, #0d1a3d 100%);
    border: 1px solid rgba(0, 156, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(90deg, rgba(0, 156, 255, 0.15) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 156, 255, 0.2);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.modal-body {
    padding: 1.5rem;
    color: #b8c0d4;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Modals em Light Mode */
body:not(.dark-mode) .modal-content {
    background: #ffffff;
    border: 1px solid #dee2e6;
}

body:not(.dark-mode) .modal-header {
    background: linear-gradient(90deg, rgba(0, 156, 255, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid #dee2e6;
}

body:not(.dark-mode) .modal-title {
    color: #212529;
}

body:not(.dark-mode) .modal-body {
    color: #495057;
}

body:not(.dark-mode) .modal-footer {
    border-top: 1px solid #dee2e6;
}

body:not(.dark-mode) .btn-close {
    filter: none;
}

