/* ===============================================
   iServe Banking - Custom Styles
   =============================================== */

/* Root Variables - BizEngine Brand Colors */
:root {
    --primary-color: #15a5da;
    --secondary-color: #1ac4f5;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #15a5da;
    --dark-color: #505251;
    --light-color: #f9fafb;
    --gray-color: #505251;
    --brand-blue: #15a5da;
    --brand-gray: #505251;
}

/* General Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image-container img {
    transition: transform 0.3s ease;
}

.hero-image-container img:hover {
    transform: scale(1.05);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #15a5da, #1ac4f5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-top-color: #15a5da;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Icon Box */
.icon-box {
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    transform: rotate(360deg);
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Stats Counter */
.counter {
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
}

/* Feature Items */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contact Cards */
.contact-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-card:hover {
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Account Cards */
.account-card {
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.account-card:hover {
    border-top-color: #15a5da;
}

/* Beneficiary Cards */
.beneficiary-card {
    transition: all 0.3s ease;
}

.beneficiary-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color) !important;
}

.avatar {
    font-size: 1.5rem;
}

/* Biller Cards */
.biller-card {
    transition: all 0.3s ease;
}

.biller-card:hover {
    border-color: #15a5da !important;
    box-shadow: 0 5px 15px rgba(21, 165, 218, 0.3) !important;
}

/* Credit Card Design */
.card-3d {
    perspective: 1000px;
}

.credit-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    min-height: 250px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.credit-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-number {
    letter-spacing: 3px;
}

.letter-spacing {
    letter-spacing: 4px;
}

.rotate-90 {
    transform: rotate(90deg);
}

/* Table Styles */
.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transform: scale(1.01);
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #15a5da, #1295c4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1295c4;
}

/* Modal Enhancements - BizEngine Awesome Popups */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(21, 165, 218, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-backdrop.show {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(80, 82, 81, 0.8), rgba(21, 165, 218, 0.8));
}

.modal-header {
    border-bottom: none;
    background: linear-gradient(135deg, #15a5da, #1ac4f5);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: white;
    border-radius: 2px;
    opacity: 0.5;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-header .modal-title i {
    margin-right: 12px;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    background: #ffffff;
}

.modal-footer {
    border-top: 1px solid rgba(21, 165, 218, 0.1);
    padding: 20px 30px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

/* Modal Form Styling */
.modal-body .form-label {
    font-weight: 600;
    color: #505251;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #15a5da;
    box-shadow: 0 0 0 4px rgba(21, 165, 218, 0.1);
    transform: translateY(-2px);
}

.modal-body .input-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.modal-body .input-group-text {
    background: linear-gradient(135deg, #15a5da, #1ac4f5);
    color: white;
    border: none;
    font-weight: 600;
}

/* Modal Buttons */
.modal-footer .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #15a5da, #1ac4f5);
    border: none;
    box-shadow: 0 4px 15px rgba(21, 165, 218, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 165, 218, 0.4);
}

.modal-footer .btn-secondary {
    background: #505251;
    border: none;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #3d3e3d;
    transform: translateY(-2px);
}

/* Modal with Image/Icon Header */
.modal-icon-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(135deg, #15a5da, #1ac4f5);
    position: relative;
}

.modal-icon-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #15a5da;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(21, 165, 218, 0.4);
    }
}

/* Success Modal */
.modal-success .modal-header {
    background: linear-gradient(135deg, #10b981, #059669);
}

.modal-success .modal-icon-circle {
    color: #10b981;
}

/* Error Modal */
.modal-error .modal-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.modal-error .modal-icon-circle {
    color: #ef4444;
}

/* Warning Modal */
.modal-warning .modal-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.modal-warning .modal-icon-circle {
    color: #f59e0b;
}

/* Info Alert in Modal */
.modal-body .alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.modal-body .alert-info {
    background: linear-gradient(135deg, rgba(21, 165, 218, 0.1), rgba(26, 196, 245, 0.1));
    color: #15a5da;
    border-left: 4px solid #15a5da;
}

.modal-body .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    color: #10b981;
    border-left: 4px solid #10b981;
}

/* Modal Loading State */
.modal-loading {
    pointer-events: none;
    opacity: 0.6;
}

.modal-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(21, 165, 218, 0.2);
    border-top-color: #15a5da;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .modal-header .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* Form Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #15a5da;
    box-shadow: 0 0 0 0.2rem rgba(21, 165, 218, 0.25);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

/* Navigation Enhancements */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Footer Enhancements */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--primary-color) !important;
}

/* Page Header */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Shadow Utilities */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    body {
        font-size: 14px;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0;
    }
    
    /* Hero section */
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    /* Service cards */
    .service-card {
        margin-bottom: 1rem;
    }
    
    .icon-box {
        width: 60px !important;
        height: 60px !important;
    }
    
    .icon-box i {
        font-size: 1.5rem !important;
    }
    
    /* Feature items */
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
    
    /* Tables */
    .table {
        font-size: 0.875rem;
    }
    
    .table thead th {
        font-size: 0.8rem;
    }
    
    /* Credit cards */
    .credit-card {
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .card-number {
        font-size: 1rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 576px) {
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Icon box smaller on mobile */
    .icon-box {
        width: 50px !important;
        height: 50px !important;
    }
    
    .icon-box i {
        font-size: 1.25rem !important;
    }
    
    /* Feature icons */
    .feature-icon {
        width: 45px !important;
        height: 45px !important;
    }
    
    .feature-icon i {
        font-size: 1.25rem !important;
    }
    
    /* Stats counter */
    .counter {
        font-size: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 14px;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Credit cards */
    .credit-card {
        min-height: 180px;
        padding: 1rem;
    }
    
    .card-number {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    /* Tables - responsive scroll */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* Badges */
    .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Social links */
    .social-links a {
        font-size: 1.25rem;
    }
    
    /* Footer */
    footer {
        font-size: 0.875rem;
    }
    
    footer h5,
    footer h6 {
        font-size: 1rem;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .service-card .icon-box {
        width: 65px !important;
        height: 65px !important;
    }
}

/* Desktop optimizations */
@media (min-width: 992px) {
    .service-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .hover-lift:hover {
        transform: translateY(-12px) scale(1.02);
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #15a5da;
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #f9fafb;
    }
}

/* Animation for Statistics Counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.6s ease-out;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #15a5da 0%, #1ac4f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card {
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Input Animation */
.form-control,
.form-select {
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    transform: translateY(-2px);
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }
    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

/* Toast Notification */
.toast {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.ripple:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* BizEngine Brand Color Utilities */
.bg-brand-blue {
    background-color: #15a5da !important;
}

.bg-brand-gray {
    background-color: #505251 !important;
}

.text-brand-blue {
    color: #15a5da !important;
}

.text-brand-gray {
    color: #505251 !important;
}

.border-brand-blue {
    border-color: #15a5da !important;
}

.border-brand-gray {
    border-color: #505251 !important;
}

.btn-brand-blue {
    background: linear-gradient(135deg, #15a5da, #1ac4f5);
    border: none;
    color: white;
}

.btn-brand-blue:hover {
    background: linear-gradient(135deg, #1295c4, #15a5da);
    color: white;
}

.btn-brand-gray {
    background-color: #505251;
    border: none;
    color: white;
}

.btn-brand-gray:hover {
    background-color: #3d3e3d;
    color: white;
}

/* Brand Gradients */
.bg-gradient-brand {
    background: linear-gradient(135deg, #15a5da 0%, #1ac4f5 100%) !important;
}

.bg-gradient-brand-dark {
    background: linear-gradient(135deg, #505251 0%, #15a5da 100%) !important;
}

.bg-gradient-brand-horizontal {
    background: linear-gradient(90deg, #15a5da 0%, #1ac4f5 100%) !important;
}



/* custom */

.disabled-link {
    pointer-events: none; /* disables all clicks */
    opacity: 0.6; /* optional, makes it look disabled */
    cursor: not-allowed;
}
