
/* Global Styles */
:root {
    /* Primary color palette */
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #6ea8fe;
    --primary-bg-subtle: #cfe2ff;
    
    /* Secondary colors */
    --secondary-color: #6c757d;
    --secondary-dark: #5c636a;
    --secondary-light: #a7acb1;
    
    /* Functional colors */
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    
    /* Neutral colors */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #f5f7fa;
    --body-color: #333;
    
    /* UI elements */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 1rem;
    --spacing-4: 1.5rem;
    --spacing-5: 3rem;
}

/* Base Elements */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed navbar */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--body-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* Button Enhancements */
.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* Navigation */
.navbar {
    padding: 0.75rem 0;
    transition: var(--transition-base);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: var(--transition-base);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero-image {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition-base);
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0);
}

.hero-shape {
    position: absolute;
    z-index: 0;
    opacity: 0.1;
}

.hero-shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
}

.hero-shape-2 {
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--warning-color), var(--danger-color));
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    background-color: var(--primary-bg-subtle);
    color: var(--primary-color);
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
    background-color: var(--primary-color);
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--secondary-color);
}

/* Service Icons */
.service-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg) !important;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

/* Card variations */
.card-hover-primary:hover {
    border-color: var(--primary-color);
}

.card-hover-primary:hover .card-header {
    background-color: var(--primary-color);
    color: white;
}

.card-featured {
    border-top: 4px solid var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--light-color);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--success-color));
}

.footer h6 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: var(--secondary-color);
    transition: var(--transition-base);
}

.footer ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--secondary-color);
    transition: var(--transition-base);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* Payment methods image - ENHANCED */
.payment-methods-img {
    max-height: 80px;
    width: auto;
    margin-top: 10px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    transition: var(--transition-base);
}

.payment-methods-img:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
}

/* Admin Links */
.admin-links {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.admin-links h5 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.admin-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: var(--border-radius-sm);
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
}

.admin-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

/* Dashboard */
.account-card {
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
}

.account-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.account-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-balance {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 1rem 0;
}

.account-number {
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

/* Transactions */
.transaction-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    transition: var(--transition-base);
    border-left: 3px solid transparent;
}

.transaction-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

.transaction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.transaction-deposit .transaction-icon {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.transaction-withdrawal .transaction-icon {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.transaction-transfer .transaction-icon {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-deposit .transaction-amount {
    color: var(--success-color);
}

.transaction-withdrawal .transaction-amount {
    color: var(--danger-color);
}

.transaction-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.transaction-description {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

/* Notifications */
.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.notification-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.notification-time {
    font-size: 0.75rem;
}

.dropdown-item.unread {
    background-color: rgba(13, 110, 253, 0.05);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Custom Form Elements */
.custom-checkbox {
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: var(--transition-base);
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(13, 110, 253, 0.05);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 30px;
}

.badge-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.badge-outline-success {
    color: var(--success-color);
    border: 1px solid var(--success-color);
    background-color: rgba(25, 135, 84, 0.05);
}

.badge-outline-danger {
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    background-color: rgba(220, 53, 69, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.rounded-xl {
    border-radius: var(--border-radius-xl) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-light-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.text-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 7rem 0 4rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .navbar-brand span {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 5rem 0 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 2rem;
        transform: none !important;
    }
    
    .hero-shape {
        opacity: 0.05;
    }
    
    .feature-card {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .service-card {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer h6::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Enhanced payment methods image for mobile */
    .payment-methods-img {
        max-height: 80px !important;
        width: auto;
        margin: 1.5rem auto 0.5rem;
        display: block;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .account-balance {
        font-size: 1.5rem;
    }
    
    /* Make payment methods image even larger on very small screens */
    .payment-methods-img {
        max-height: 90px !important;
        max-width: 100%;
        margin: 1.5rem auto 0.5rem;
    }
    
    /* Adjust admin links for very small screens */
    .admin-links ul {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .admin-links a {
        display: block;
        text-align: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --body-bg: #121212;
        --body-color: #e0e0e0;
        --light-color: #1e1e1e;
        --dark-color: #f8f9fa;
    }
    
    body {
        color: var(--body-color);
        background-color: var(--body-bg);
    }
    
    .navbar, .footer {
        background-color: rgba(30, 30, 30, 0.95) !important;
    }
    
    .card, .dropdown-menu {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    .text-muted {
        color: #adb5bd !important;
    }
    
    .form-control, .form-select {
        background-color: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .form-control:focus, .form-select:focus {
        background-color: #2a2a2a;
        color: #e0e0e0;
    }
    
    .dropdown-item {
        color: #e0e0e0;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-divider {
        border-color: #444;
    }
    
    /* Invert payment methods image in dark mode for better visibility */
    .payment-methods-img {
        filter: brightness(0.9) invert(1) drop-shadow(0 2px 5px rgba(255, 255, 255, 0.1));
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .hero-shape, .animated-bg, .animated-shape {
        display: none !important;
    }
    
    body {
        background: none !important;
        color: #000 !important;
    }
    
    body::before {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .account-card, .transaction-item {
        break-inside: avoid;
    }
    
    .account-balance {
        color: #000 !important;
    }
    
    .transaction-amount {
        color: #000 !important;
    }
    
    .transaction-deposit .transaction-amount::before {
        content: '+';
        color: #198754;
    }
    
    .transaction-withdrawal .transaction-amount::before {
        content: '-';
        color: #dc3545;
    }
}

/* Accessibility Enhancements */
:focus {
    outline: 3px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}


/* Payment methods image - EXTRA LARGE VERSION */
.payment-methods-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    width: 100%;
}

.payment-methods-img {
    max-height: 150px !important; /* Much larger height */
    min-height: 120px; /* Enforce minimum height */
    width: auto;
    max-width: 100%; /* Ensure it doesn't overflow container */
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: contrast(1.1); /* Slightly increase contrast for better visibility */
}

.payment-methods-img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for payment methods image */
@media (max-width: 991.98px) {
    .payment-methods-img {
        max-height: 130px !important;
        min-height: 100px;
    }
}

@media (max-width: 767.98px) {
    .payment-methods-container {
        margin: 2rem 0 1rem;
    }
    
    .payment-methods-img {
        max-height: 120px !important;
        min-height: 90px;
    }
}

@media (max-width: 575.98px) {
    .payment-methods-img {
        max-height: 110px !important;
        min-height: 80px;
    }
}

@media (prefers-color-scheme: dark) {
    .payment-methods-img {
        filter: brightness(0.9) contrast(1.2) invert(1) drop-shadow(0 2px 5px rgba(255, 255, 255, 0.1));
    }
}