:root {
    --primary-bg: #1a1d23;
    --secondary-bg: #242831;
    --card-bg: #2d3139;
    --accent-blue: #4fc3f7;
    --accent-green: #66bb6a;
    --accent-orange: #ffb74d;
    --accent-red: #ef5350;
    --accent-gold: #ffd700;
    --accent-purple: #ab47bc;
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --text-muted: #78909c;
    --border-subtle: #37414b;
    --today-glow: rgba(79, 195, 247, 0.2);
    --shiny-glow: rgba(255, 215, 0, 0.2);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lifted: 0 4px 16px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
.header {
    background: var(--card-bg);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 100%;
    text-align: center;
}

.title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Search Section */
.search-card {
    margin: 16px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
}

.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 14px 24px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:active {
    transform: scale(0.96);
}

/* Quick Actions */
.quick-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

.quick-btn {
    flex: 1;
    padding: 12px 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-btn:active {
    transform: scale(0.96);
}

.quick-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

/* Server Info Display */
.server-info {
    margin: 16px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
    display: none;
}

.server-info.shiny {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px var(--shiny-glow);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.server-info.shiny::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-orange));
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.server-id {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-blue);
}

.shiny-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shiny-true {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
    color: white;
    animation: glow 2s ease-in-out infinite alternate;
}

.shiny-false {
    background: var(--secondary-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--secondary-bg);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-section {
    margin-top: 24px;
}

.schedule-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.schedule-item {
    background: var(--secondary-bg);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    position: relative;
}

.schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
    border-color: var(--accent-blue);
}

.schedule-item.current {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(102, 187, 106, 0.3);
    background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(102, 187, 106, 0.1) 100%);
    animation: pulse-current 2s infinite;
}

.schedule-item.current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-green), var(--accent-blue));
    border-radius: 0 4px 4px 0;
}

.schedule-item.current .schedule-time {
    color: var(--accent-green);
}

.schedule-item.current .schedule-activity {
    color: var(--text-primary);
    font-weight: 600;
}

.schedule-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 6px;
}

.schedule-activity {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Server List */
.server-list {
    padding: 0 16px 24px;
    display: none;
}

.server-list.show {
    display: block;
}

.server-item {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.server-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lifted);
}

.server-item.shiny {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--shiny-glow);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.server-item.shiny::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-orange));
}

.server-content {
    padding: 16px 20px;
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.server-card-id {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
}

.server-card-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-card-details {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Error Message */
.error-message {
    background: var(--accent-red);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 16px;
    display: none;
    text-align: center;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-subtle);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .title {
        font-size: 32px;
    }
    
    .header {
        padding: 32px 24px;
    }
    
    .search-card, .server-info {
        margin: 24px;
        padding: 24px;
    }
    
    .quick-actions, .server-list {
        padding: 0 24px 24px;
    }
    
    .server-content {
        padding: 24px;
    }
    
    .server-item {
        margin-bottom: 16px;
    }

    .schedule-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Animations */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-gold); }
    100% { box-shadow: 0 0 15px var(--accent-gold); }
}

@keyframes pulse-current {
    0% { box-shadow: 0 0 15px rgba(102, 187, 106, 0.3); }
    50% { box-shadow: 0 0 25px rgba(102, 187, 106, 0.5); }
    100% { box-shadow: 0 0 15px rgba(102, 187, 106, 0.3); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode adjustments for OLED screens */
@media (prefers-contrast: high) {
    :root {
        --primary-bg: #000000;
        --secondary-bg: #111111;
        --card-bg: #1a1a1a;
    }
}

/* No Data Message Styles */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--secondary-bg);
    border-radius: 12px;
    border: 2px dashed var(--border-subtle);
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.no-data-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(79, 195, 247, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

.no-data-message .no-data-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
    display: block;
}

.no-data-message .no-data-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-data-message .no-data-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Different no-data states */
.no-data-message.coming-soon {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(255, 183, 77, 0.05) 100%);
}

.no-data-message.coming-soon .no-data-icon {
    color: var(--accent-orange);
}

.no-data-message.no-schedule {
    border-color: var(--accent-red);
    background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(239, 83, 80, 0.05) 100%);
}

.no-data-message.no-schedule .no-data-icon {
    color: var(--accent-red);
}

/* Server card no-data state */
.server-card-no-data {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 2px dashed var(--border-subtle);
    overflow: hidden;
    position: relative;
    opacity: 0.7;
    cursor: not-allowed;
}

.server-card-no-data .server-content {
    padding: 16px 20px;
    text-align: center;
}

.server-card-no-data .no-data-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--secondary-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

/* Enhanced empty state for server list */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    background: var(--secondary-bg);
    border-radius: 16px;
    border: 2px dashed var(--border-subtle);
    margin: 16px 0;
    position: relative;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(79, 195, 247, 0.05),
        transparent
    );
    animation: shimmer 3s infinite;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.4;
    display: block;
}

.empty-state .empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.empty-state .empty-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Data placeholder skeleton */
.data-skeleton {
    background: var(--secondary-bg);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin: 8px 0;
}

.data-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    margin: 8px 0;
}

.skeleton-text.large {
    height: 20px;
}

.skeleton-text.small {
    height: 12px;
    width: 60%;
}

/* Animations */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .no-data-message {
        padding: 60px 40px;
    }
    
    .empty-state {
        padding: 100px 40px;
    }
    
    .no-data-message .no-data-icon,
    .empty-icon {
        font-size: 72px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .no-data-message::before,
    .empty-state::before,
    .data-skeleton::before {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .no-data-message,
    .empty-state {
        border-width: 3px;
        border-style: solid;
    }
    
    .no-data-message .no-data-icon,
    .empty-icon {
        opacity: 1;
    }
}