/* Custom styles for Bank Dashboard */

/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background: #0d6efd;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.2rem;
    text-align: center;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Button Styles */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .table-responsive {
        border: none;
    }
}

/* Custom Utilities */
.cursor-pointer {
    cursor: pointer;
}

.text-underline-hover {
    text-decoration: none;
}

.text-underline-hover:hover {
    text-decoration: underline;
}

/* Animation for alerts */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: fadeIn 0.3s ease-in-out;
}

/* Custom checkbox */
.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Custom radio */
.custom-radio .custom-control-input:checked~.custom-control-label::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Custom switch */
.custom-switch .custom-control-input:checked~.custom-control-label::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Navbar brand refinements */
.navbar .brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: inline-block;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.25);
}

.navbar .brand-text {
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.navbar .navbar-brand:hover .brand-logo {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 576px) {
    .navbar .brand-logo {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        padding: 2px;
    }
}

.cc-summary-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96));
    border-radius: 14px;
    box-shadow:
        0 12px 30px rgba(16, 24, 40, 0.08),
        0 1px 2px rgba(16, 24, 40, 0.08);
    overflow: hidden;
}

.cc-summary-card .card-header {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.cc-summary-table-wrap {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.cc-summary-table {
    min-width: 1100px;
}

.cc-summary-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #fbfdff, #f3f6fb);
    color: #475569;
    border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.cc-summary-table th,
.cc-summary-table td {
    padding: 0.9rem 0.85rem;
    vertical-align: middle;
}

.cc-summary-table tbody tr:nth-child(even) {
    background: rgba(2, 6, 23, 0.015);
}

.cc-summary-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.06);
}

.cc-summary-table td.text-end {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cc-col-bank {
    min-width: 180px;
    font-weight: 600;
    color: #0f172a;
}

.cc-col-period {
    min-width: 210px;
    white-space: nowrap;
    color: #334155;
}

.cc-col-acct {
    min-width: 140px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cc-col-amt {
    min-width: 180px;
}

.cc-col-created-by {
    min-width: 140px;
    white-space: nowrap;
}

.cc-col-created-at {
    min-width: 160px;
    white-space: nowrap;
}
