/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base ===== */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f4;
    color: #333333;
    line-height: 1.6;
}

/* ===== Navbar ===== */
.navbar {
    background: #8B0000 !important; /* dark red */
    border-bottom: 3px solid #2e2e2e; /* dark gray */
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar-brand:hover,
.navbar-nav .nav-link:hover {
    color: #e6e6e6 !important;
}

/* ===== Containers & Headings ===== */
/* Removed a global .container top margin to avoid double spacing when
   _Layout and pages both use .container. Use .page-content on pages if
   you want a consistent top margin. */
.page-content {
    margin-top: 2rem;
}

h1, h2, h3, h4 {
    color: #8B0000;
}

/* ===== Banner (moved here so it applies site-wide) ===== */
.banner-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    margin-bottom: 1rem;
}
.banner-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    z-index: 1;
}
.squashed-image {
    position: absolute;
    right: 380px; /* Closer to the banner */
    top: 50%;
    transform: translateY(-50%);
    max-width: 140px;
    width: 100%;
    height: auto;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ===== Links & small helpers ===== */
.gray-link {
    color: #6c757d !important; /* Bootstrap's text-secondary gray */
    text-decoration: none;
    transition: color 0.2s;
}
.gray-link:hover {
    color: #343a40 !important; /* Darker gray on hover */
    text-decoration: underline;
}
/* ===== Portal Balance & Minutes Animations ===== */
.balance-animating {
    transition: background-color .3s ease;
    background-color: rgba(255, 255, 0, .15); /* soft yellow highlight */
    border-radius: .25rem;
    padding: .1rem .25rem;
}

.minutes-animating {
    transition: color .3s ease;
    color: #0d6efd; /* Bootstrap primary blue during pulse */
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .balance-animating {
        transition: none;
    }

    .minutes-animating {
        transition: none;
    }
}
/* Hide marketing banner when we're in the portal layout */
body.portal .banner-container {
    display: none !important;
}
/* Row hover highlight */
.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
    transition: background-color 0.12s ease-in-out;
}
