*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    /* Removed max-width and margin from main to allow full-width sections like stats/radio */
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Common container utility for centered content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ========================================
   SSE Toast Notifications
   ======================================== */
.sse-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sse-toast {
    background: linear-gradient(135deg, #024059, #04C4D9);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid #05F2F2;
}

.sse-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.sse-toast-icon {
    font-size: 2.2rem;
    color: #05F2F2;
    animation: ringBell 2s infinite ease-in-out;
}

@keyframes ringBell {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(15deg); }
    20%, 40%, 60%, 80% { transform: rotate(-15deg); }
}

.sse-toast-content {
    flex: 1;
}

.sse-toast-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #05F2F2;
}

.sse-toast-desc {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.sse-toast-action {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
}

.sse-toast-action:hover {
    background: #05F2F2;
    color: #024059;
}

.sse-toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
    margin-top: -5px;
}

.sse-toast-close:hover {
    color: #ffffff;
}