* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.overlay-container {
    width: 100%;
    height: 100vh;
    background: transparent;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    position: relative;
}

/* ============ ALERTS ============ */
.alerts-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 350px;
}

.alert {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alert-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.alert-error {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ff9800, #e68900);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
    color: white;
}

.alert-fade-out {
    animation: slideOut 0.5s ease-out forwards;
}

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

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

/* ============ TIMER ============ */
.timer-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
    border: 3px solid #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

#timer-label {
    font-size: 14px;
    color: #ff6b6b;
    text-transform: uppercase;
    margin-bottom: 5px;
}

#timer-time {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

.timer-container.hidden {
    display: none;
}

/* ============ SCOREBOARD ============ */
.scoreboard-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 900;
}

.scoreboard {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    border: 2px solid #4CAF50;
}

.score-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-label {
    font-size: 14px;
    color: #4CAF50;
    text-transform: uppercase;
    font-weight: bold;
}

.team-score {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    font-family: 'Courier New', monospace;
    min-width: 60px;
    text-align: center;
}

.score-vs {
    font-size: 20px;
    color: #999;
    font-weight: bold;
    text-transform: uppercase;
}

.scoreboard-container.hidden {
    display: none;
}

/* ============ CHAT ============ */
.chat-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 300px;
    height: 350px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    border-left: 4px solid #2196F3;
    display: flex;
    flex-direction: column;
    z-index: 800;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.chat-header {
    padding: 10px 15px;
    background: rgba(33, 150, 243, 0.3);
    font-size: 12px;
    font-weight: bold;
    color: #2196F3;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(33, 150, 243, 0.5);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-message {
    font-size: 12px;
    margin-bottom: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-user {
    color: #2196F3;
    font-weight: bold;
}

.chat-text {
    color: #ddd;
}

.chat-container.hidden {
    display: none;
}

/* ============ TICKER ============ */
.ticker-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    height: 50px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #ff9800;
    border-radius: 5px;
    overflow: hidden;
    z-index: 800;
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.3);
}

.ticker-items {
    height: 100%;
    position: relative;
}

.ticker-item {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    white-space: nowrap;
    font-size: 18px;
    font-weight: bold;
    animation: tickerScroll 5s linear infinite;
}

@keyframes tickerScroll {
    from {
        left: 100%;
    }
    to {
        left: -100%;
    }
}

.ticker-container.hidden {
    display: none;
}

/* ============ NOTIFICATIONS ============ */
.notifications-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1100;
    pointer-events: none;
}

/* ============ DONATIONS ============ */
.donations-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    height: 350px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    border-right: 4px solid #9c27b0;
    display: flex;
    flex-direction: column;
    z-index: 800;
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.3);
}

.donations-header {
    padding: 10px 15px;
    background: rgba(156, 39, 176, 0.3);
    font-size: 12px;
    font-weight: bold;
    color: #9c27b0;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(156, 39, 176, 0.5);
}

.donations-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.donation-item {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(156, 39, 176, 0.2);
    border-left: 3px solid #9c27b0;
    border-radius: 3px;
    font-size: 12px;
}

.donation-user {
    color: #9c27b0;
    font-weight: bold;
    margin-bottom: 3px;
}

.donation-amount {
    color: #ffc107;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 3px;
}

.donation-message {
    color: #ddd;
    font-size: 11px;
    font-style: italic;
    margin-top: 5px;
}

.donations-container.hidden {
    display: none;
}

/* ============ FOLLOWERS ============ */
.followers-container {
    position: fixed;
    left: 20px;
    top: 400px;
    width: 250px;
    max-height: 250px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    display: flex;
    flex-direction: column;
    z-index: 800;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.followers-header {
    padding: 10px 15px;
    background: rgba(76, 175, 80, 0.3);
    font-size: 12px;
    font-weight: bold;
    color: #4CAF50;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(76, 175, 80, 0.5);
}

.followers-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.follower-item {
    padding: 8px;
    margin-bottom: 5px;
    background: rgba(76, 175, 80, 0.2);
    border-left: 2px solid #4CAF50;
    border-radius: 3px;
    font-size: 12px;
    color: #4CAF50;
    font-weight: bold;
}

.followers-container.hidden {
    display: none;
}

/* ============ RAID ============ */
.raid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: raidIn 0.5s ease-out;
}

.raid-content {
    text-align: center;
    animation: raidPulse 1s ease-in-out infinite;
}

.raid-title {
    font-size: 80px;
    font-weight: bold;
    color: #ff1744;
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.8);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.raid-user {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.raid-viewers {
    font-size: 32px;
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

@keyframes raidIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes raidPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.raid-container.hidden {
    display: none;
}

/* ============ SCROLLBAR STYLING ============ */
.chat-messages::-webkit-scrollbar,
.followers-list::-webkit-scrollbar,
.donations-list::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.followers-list::-webkit-scrollbar-track,
.donations-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb,
.followers-list::-webkit-scrollbar-thumb,
.donations-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.followers-list::-webkit-scrollbar-thumb:hover,
.donations-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}
