:root {
    --primary-color: #a50c13;
    --primary-hover: #8a0a0f;
    --primary-light: rgba(165, 12, 19, 0.1);
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

header {
    width: 100%;
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    width: 13em;
    height: 3em;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.sidebar {
    border-radius: 12px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    margin-top: 90px !important;
    position: fixed;
    top: 0;
    left: 1rem;
    bottom: 1rem;
    transition: var(--transition);
    z-index: 999;
    display: block;
    width: 250px;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    margin: 0.25rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    position: relative;
    transition: var(--transition);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.sidebar .nav-link:hover {
    background: linear-gradient(
        135deg,
        var(--primary-light) 0%,
        rgba(220, 53, 69, 0.05) 100%
    );
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar .nav-link:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.sidebar .nav-link.selected {
    background: linear-gradient(135deg, var(--primary-color) 0%, #dc3545 100%);
    color: var(--bg-white);
    border-left-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(165, 12, 19, 0.3);
    font-weight: 600;
}

.sidebar .nav-link.selected i {
    color: var(--bg-white);
}

.sidebar .nav-link.selected::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--bg-white);
    border-radius: 2px 0 0 2px;
}

.sidebar .nav-link:last-child {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.sidebar .nav-link:last-child:hover {
    background: linear-gradient(
        135deg,
        rgba(220, 53, 69, 0.1) 0%,
        rgba(220, 53, 69, 0.05) 100%
    );
    color: #dc3545;
}

.hamburger {
    display: none;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.main-content {
    margin-left: 280px;
    padding: 100px 0 2rem;
    transition: var(--transition);
    min-height: calc(100vh - 100px);
}

.breadcrumb {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 1rem 0;
    margin-bottom: 1rem;
    background: transparent;
    border-radius: 8px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@media screen and (max-width: 1199px) {
    .sidebar {
        left: 0.5rem;
        width: 220px;
    }

    .main-content {
        margin-left: 240px;
        padding: 100px 0 1.5rem;
    }
}

@media (max-width: 992px) {
    header {
        padding: 0 1.5rem;
        height: 70px;
    }

    .sidebar {
        margin-top: 80px !important;
        left: 0.5rem;
        width: 200px;
        border-radius: 8px;
    }

    .main-content {
        margin-left: 220px;
        padding: 90px 0 1.5rem;
    }

    .logo {
        width: 11em;
        height: 2.5em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
        height: 65px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 80px);
        position: fixed;
        left: 0;
        right: 0;
        top: 65px;
        bottom: auto;
        margin-top: 0 !important;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 12px 12px;
        display: none;
        z-index: 999;
        overflow-y: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 85px 0 1rem;
    }

    .hamburger {
        display: block;
    }

    .sidebar.show {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

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

    .logo {
        width: 10em;
        height: 2.2em;
    }
}

@media (max-width: 576px) {
    header {
        padding: 0 0.75rem;
        height: 60px;
    }

    .sidebar {
        top: 60px;
        border-radius: 0;
    }

    .main-content {
        padding: 75px 2rem 0.75rem;
    }

    .breadcrumb {
        font-size: 0.875rem;
        padding: 0.75rem 0;
    }
}

/* Card Styles */
.card {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card .bank-name {
    font-size: 1.125rem;
    font-weight: 700;
    text-align: right;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.card .chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    position: absolute;
    top: 50px;
    left: 20px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.card .card-number {
    font-size: 1.125rem;
    letter-spacing: 3px;
    margin-top: 60px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-family: "Courier New", monospace;
}

.card .card-details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.card .expiry {
    text-align: right;
    font-weight: 500;
}

.fa-bars {
    color: var(--primary-color);
    transition: var(--transition);
}

/* Modal Styles */
/* .modal {
    position: fixed;
    width: 28rem;
    height: 28rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: start;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    padding: 2rem;
} */

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0 0 16px 16px;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    transition: var(--transition);
    border-radius: 8px;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 12, 19, 0.3);
}

@media (max-width: 576px) {
    /* .modal {
        width: 95%;
        max-width: 95%;
        height: auto;
        max-height: 90vh;
        padding: 1.5rem;
    }

    .modal-dialog {
        margin: 0.5rem;
        width: 100%;
        max-width: 100%;
    } */

    .card .card-number {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .card .bank-name {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .container,
    .container-fluid {
        --bs-gutter-x: 0 !important;
        --bs-gutter-y: 0 !important;
        width: 100% !important;
        padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    }
}
.rounded-5 {
    border-radius:1rem;
}
