/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #0dcaf0;
    --dark-bg: #1a1d21;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f4f7f6;
}

/* Hide browser default password reveal button and clear button */
input::-ms-reveal,
input::-ms-clear,
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button,
input::-webkit-caps-lock-indicator,
input::-webkit-password-toggle {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Specifically for Edge and Chrome password reveal */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}


/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--dark-bg) !important;
}

.top-bar {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.top-bar .badge {
    font-weight: 500;
    font-size: 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Fix for anchor links being covered by sticky navbar */
#rates,
#reserves {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Exchange Widget */
.exchange-widget {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: #333;
}

.exchange-header {
    background: #f1f1f1;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.exchange-body {
    padding: 30px;
}

.currency-select-box {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background: #fff;
    transition: all 0.3s;
}

.currency-select-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.currency-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

/* Rates Marquee */
.rates-ticker {
    background: #000;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9rem;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-item {
    display: inline-block;
    padding-right: 50px;
}

.ticker-item span {
    color: #0dcaf0;
    font-weight: bold;
}

/* Stats / Reserves */
.stats-section {
    padding: 60px 0;
    background-color: white;
}

.reserve-item {
    padding: 15px;
    border-right: 1px solid #eee;
    text-align: center;
}

.reserve-item:last-child {
    border-right: none;
}

.reserve-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* New Footer Design */
.footer-section {
    background-color: #120921;
    /* Dark purple/black from image */
    color: #b0b0b0;
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.footer-desc {
    line-height: 1.6;
    color: #ccc;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.youtube {
    background-color: #FF0000;
}

.footer-bottom {
    background-color: #0b0514;
    /* Slightly darker */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding: 50px 0;
    }

    .hero-content {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .exchange-widget {
        margin-top: 20px;
        border-radius: 10px;
    }

    .ticker-item {
        font-size: 0.8rem;
    }

    /* Table Responsiveness */
    .table-responsive {
        border: 0;
    }

    .table thead {
        display: none;
        /* Hide headers on very small if needed, but standard responsive scroll is better */
    }

    /* Footer Stack */
    .footer-section {
        text-align: center;
        padding-top: 40px;
    }

    .footer-heading {
        margin-top: 30px;
        position: relative;
        display: inline-block;
    }

    .footer-heading::after {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--primary-color);
        margin: 5px auto 0;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    /* Sidebar Spacing */
    .col-md-4,
    .col-md-3 {
        margin-bottom: 30px;
    }

    /* Chat Widget tweaks for mobile */
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .chat-badge {
        bottom: 60px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .exchange-body {
        padding: 15px;
    }

    .currency-select-box {
        padding: 10px;
    }

    .reserve-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
    }

    .reserve-item:last-child {
        border-bottom: none;
    }

    .card-header h4 {
        font-size: 1.1rem;
    }
}

/* Custom Table Scrollbar for better UI */
.table-responsive::-webkit-scrollbar {
    height: 5px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-wa 2s infinite;
}