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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    flex: 1;
}

.refresh-btn,
.show-all-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.refresh-btn:hover,
.show-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.auth-section,
.loading-section,
.events-section,
.error-section {
    padding: 30px 20px;
}

.auth-section {
    text-align: center;
}

.auth-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.auth-btn:hover {
    transform: scale(1.05);
}

.loading-section {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-section p {
    color: #666;
    font-size: 16px;
}

.events-list {
    max-height: 70vh;
    overflow-y: auto;
}

.month-group {
    margin-bottom: 30px;
}

.month-header {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.event-item {
    background: #fff;
    border-left: 3px solid #667eea;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.event-item.holiday {
    border-left-color: #e74c3c;
}

.event-date-inline {
    color: #1a1a1a;
    font-weight: 600;
    min-width: 85px;
    flex-shrink: 0;
}

.event-separator {
    color: #333;
    margin: 0 8px;
    flex-shrink: 0;
}

.event-title-inline {
    color: #1a1a1a;
    flex: 1;
    font-weight: 500;
}

.event-calendar-name {
    color: #333;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

.error-section {
    text-align: center;
}

.error-section p {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 16px;
}

.retry-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.retry-btn:hover {
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Scrollbar styling for webkit browsers */
.events-list::-webkit-scrollbar {
    width: 8px;
}

.events-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.events-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
