:root {
    --bg-dark: #090810;
    --bg-card: rgba(18, 16, 28, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(145, 71, 255, 0.6);
    
    --text-primary: #f3f1f6;
    --text-secondary: #a7a2b9;
    
    --twitch-purple: #9147ff;
    --twitch-purple-hover: #772ce8;
    --twitch-glow: rgba(145, 71, 255, 0.4);
    
    --youtube-red: #ff0000;
    --youtube-bg: rgba(255, 0, 0, 0.15);
    --youtube-text: #ff5555;
    
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --gradient-glow: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* Ambient Background Lights */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.15;
    z-index: -3;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.4;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: #5b21b6;
    top: -100px;
    right: -50px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: #1e3a8a;
    bottom: -150px;
    left: -100px;
}

/* Glassmorphism Styles */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Header */
.app-header {
    text-align: center;
    margin-top: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.logo i {
    font-size: 2rem;
    color: var(--twitch-purple);
    filter: drop-shadow(0 0 8px var(--twitch-glow));
}

.logo-text {
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Instructions */
.instructions-card {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.02);
}

.instructions-card h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.instruction-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.instruction-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Control Panel */
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    flex-wrap: wrap;
    gap: 1.25rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.bulk-actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-twitch {
    background: var(--twitch-purple);
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.btn-twitch:hover {
    background: var(--twitch-purple-hover);
    box-shadow: 0 0 10px var(--twitch-glow);
}

.btn-google {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* Schedule Grid */
.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.day-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.day-header {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

.day-header span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.events-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Event Card */
.event-card {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
    position: relative;
    cursor: pointer;
}

.event-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.event-card.selected {
    border-color: var(--border-active);
    box-shadow: 0 0 15px rgba(145, 71, 255, 0.15);
    background: rgba(145, 71, 255, 0.04);
}

/* Checkbox Style */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: transparent;
    font-size: 0.8rem;
}

.event-card.selected .custom-checkbox {
    background: var(--twitch-purple);
    border-color: var(--twitch-purple);
    color: white;
}

/* Event Details Layout */
.event-time {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 110px;
    color: var(--text-primary);
}

.event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.event-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.event-hosts {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.event-hosts i {
    color: var(--twitch-purple);
}

/* Badges */
.badge-container {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-twitch {
    background: rgba(145, 71, 255, 0.15);
    color: #c49eff;
    border: 1px solid rgba(145, 71, 255, 0.3);
}

.badge-youtube {
    background: var(--youtube-bg);
    color: var(--youtube-text);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Event Actions (Individual) */
.event-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-active);
    color: var(--text-primary);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast i {
    color: #10b981;
    font-size: 1.25rem;
}

.toast.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Footer */
.app-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 2rem 0;
}

/* Micro-animations */
.animate-pulse {
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 4px var(--twitch-glow)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 12px var(--twitch-purple)); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-actions {
        justify-content: space-between;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .event-time {
        min-width: auto;
    }
    
    .event-actions {
        width: 100%;
        margin-top: 0.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .btn-twitch, .btn-google {
        text-align: center;
        justify-content: center;
    }
    
    .checkbox-container {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }
}
