body {
    font-family: "Poppins", sans-serif;
    color: #1e293b;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
}

.banner-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 80px;
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
}

.logo-half {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 24px;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 16px;
}

.slogan {
    font-size: 14px;
    color: #172a88;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.logo-half::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: translateY(-50%);
    z-index: 0;
}

.rates-half {
    width: 50%;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    z-index: 1;
}

/* Mobile and tablet media queries */
@media (max-width: 768px) {
    .banner-container {
        flex-direction: column;
        min-height: 100px;
        width: 100%;
        max-width: 100%;
    }

    .logo-half {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }

    .logo-half::after {
        display: none;
    }

    .logo-container {
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .logo-container svg {
        max-height: 32px;
        width: auto;
    }

    .slogan {
        font-size: 11px;
        text-align: center;
        white-space: nowrap;
    }

    .rates-half {
        width: 100%;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        border-left: none;
        position: relative;
        padding: 8px 12px;
    }

    .rates-half::before {
        content: "";
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    }

    .rate-item {
        flex-direction: row;
        gap: 8px;
        font-size: 0.9em;
        padding: 0 8px;
    }

    .currency-pair {
        margin-right: 8px;
        padding: 3px 6px;
        font-size: 0.85em;
    }

    .rate-values {
        gap: 6px;
    }

    .rate-value {
        padding: 3px 6px;
        font-size: 0.85em;
    }

    .fi {
        margin-right: 3px;
        font-size: 0.8em;
    }
}

/* Additional media query for narrower mobile devices */
@media (max-width: 480px) {
    .banner-container {
        min-height: 90px;
        width: 100%;
        max-width: 100%;
    }

    .logo-half {
        padding: 6px 10px;
        height: 45px;
        min-height: 45px;
        max-height: 45px;
    }

    .logo-container {
        gap: 8px;
    }

    .logo-container svg {
        max-height: 28px;
        width: auto;
    }

    .slogan {
        font-size: 10px;
    }

    .rates-half {
        padding: 6px 10px;
        height: 45px;
        min-height: 45px;
        max-height: 45px;
    }

    .currency-pair, .rate-value {
        padding: 3px 6px;
        font-size: 0.85em;
    }

    .rate-values {
        gap: 6px;
    }

    .rate-item {
        gap: 6px;
        font-size: 0.85em;
        padding: 0 6px;
    }

    .currency-pair {
        margin-right: 6px;
        padding: 2px 4px;
        font-size: 0.8em;
    }

    .rate-values {
        gap: 4px;
    }

    .rate-value {
        padding: 2px 4px;
        font-size: 0.8em;
    }

    .fi {
        margin-right: 2px;
        font-size: 0.75em;
    }
}

.rate-item {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1em;
    text-align: center;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform: translateY(100%);
    opacity: 0;
    color: #1e293b;
    padding: 0 15px;
}

.rate-item.active {
    transform: translateY(0);
    opacity: 1;
}

.rate-item.previous {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.logo-img {
    max-width: 100%;
    max-height: 56px;
    height: auto;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
    display: block; /* Ensures proper display of SVG */
    object-fit: contain; /* Ensures SVG maintains aspect ratio */
}

.logo-img:hover {
    transform: scale(1.02);
}

.currency-pair {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 10px;
    border-radius: 10px;
    margin-right: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.currency-pair:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.rate-values {
    display: inline-flex;
    gap: 12px;
}

.rate-value {
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rate-value:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.fi {
    margin-right: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.fi:hover {
    transform: scale(1.1);
}

.error-container {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 15px 25px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    max-width: 90%;
    width: auto;
}

.error-icon {
    margin-right: 12px;
    font-size: 1.5rem;
}
