/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0f172a;
    font-size: 16px;
}

/* Navigation */
.navbar {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    position: static;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #22c55e;
}

.nav-logo h1 a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.nav-logo h1 a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #22c55e;
    background-color: #334155;
}

.nav-link.active {
    color: #22c55e;
    background-color: #064e3b;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #475569;
    border-radius: 8px;
    font-size: 1rem;
    background: #334155;
    color: #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.search-box input::placeholder {
    color: #94a3b8;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-controls select {
    padding: 0.75rem 1rem;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #334155;
    color: #e5e7eb;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-controls select:focus {
    outline: none;
    border-color: #22c55e;
}

/* Concert List */
.concert-list {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.concert-item {
    padding: 1rem;
    border-bottom: 1px solid #475569;
    transition: background-color 0.2s ease;
}

.concert-item:hover {
    background-color: #334155;
}

.concert-item:last-child {
    border-bottom: none;
}

.concert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.concert-show-number {
    background: #16a34a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: fit-content;
}

.concert-date {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
}

.concert-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.concert-performers {
    flex: 1;
    text-align: left;
}

.concert-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
    min-width: fit-content;
}

.performer-section {
    margin-bottom: 0.25rem;
}

.performer-label {
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.performer {
    display: inline-block;
    margin-right: 0.75rem;
    margin-bottom: 0.25rem;
}

.performer.headliner {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.performer.support {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
}

.venue-info,
.location-info {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Analytics Section */
.analytics-section {
    margin-top: 4rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.analytics-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #334155;
    border-radius: 8px;
}

.top-item-name {
    font-weight: 500;
    color: #f1f5f9;
}

.top-item-count {
    background: #16a34a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.year-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.year-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-label {
    min-width: 60px;
    font-weight: 500;
    color: #f1f5f9;
}

.year-bar-container {
    flex: 1;
    height: 24px;
    background: #475569;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.year-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 12px;
    transition: width 0.3s ease;
}

.year-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    min-width: 30px;
    text-align: right;
}

/* Upcoming Shows Styles */
.setup-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.setup-card h3 {
    color: #22c55e;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.setup-card ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #94a3b8;
}

.setup-card li {
    margin-bottom: 0.5rem;
}

.setup-card button {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.setup-card button:hover {
    background: #15803d;
}

.calendar-container {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.calendar-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.placeholder-content h3 {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.placeholder-note {
    font-size: 0.9rem;
    font-style: italic;
}

.calendar-frame {
    border: none;
    background: #1e293b;
}

/* Manual Upcoming Shows */
.upcoming-list {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid #334155;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.upcoming-list h3 {
    color: #f1f5f9;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.add-upcoming-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #334155;
    border-radius: 8px;
}

.add-upcoming-form input,
.add-upcoming-form textarea {
    padding: 0.75rem;
    border: 1px solid #475569;
    border-radius: 6px;
    font-size: 1rem;
    background: #1e293b;
    color: #e5e7eb;
}

.add-upcoming-form input::placeholder,
.add-upcoming-form textarea::placeholder {
    color: #94a3b8;
}

.add-upcoming-form input:focus,
.add-upcoming-form textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.add-upcoming-form textarea {
    grid-column: 1 / -1;
    resize: vertical;
    min-height: 80px;
}

.add-upcoming-form button {
    grid-column: 1 / -1;
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.add-upcoming-form button:hover {
    background: #15803d;
}

.upcoming-show-item {
    padding: 1.5rem;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #1e293b;
}

.upcoming-show-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.upcoming-artist {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.upcoming-date {
    color: #22c55e;
    font-weight: 500;
}

.upcoming-details {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.upcoming-notes {
    color: #cbd5e1;
    font-style: italic;
    font-size: 0.95rem;
}

/* Calendar Widget Styles */
.calendar-toggle-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-toggle-btn:hover {
    background: #15803d;
}

.calendar-toggle-btn.active {
    background: #15803d;
}

.calendar-widget {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: #475569;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #e5e7eb;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
}

.calendar-grid {
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #334155;
    border-bottom: 1px solid #475569;
}

.weekday {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #1e293b;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
    border-right: 1px solid #475569;
    border-bottom: 1px solid #475569;
    position: relative;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background: #064e3b;
    color: #22c55e;
}

.calendar-day.other-month {
    color: #64748b;
}

.calendar-day.other-month:hover {
    background: #334155;
    color: #94a3b8;
}

.calendar-day.today {
    background: #374151;
    color: #fbbf24;
    font-weight: 600;
}

.calendar-day.today:hover {
    background: #4b5563;
}

.calendar-day.selected {
    background: #16a34a;
    color: white;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: #15803d;
}

.calendar-day.has-concert {
    background: #052e16;
    color: #22c55e;
    font-weight: 600;
}

.calendar-day.has-concert:hover {
    background: #064e3b;
}

.calendar-day.has-concert.selected {
    background: #16a34a;
    color: white;
}

.calendar-day.has-concert::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.calendar-day.has-concert.selected::after {
    background: white;
}

/* Upcoming events styling - orange */
.calendar-day.has-upcoming-event {
    background: #fed7aa;
    color: #c2410c;
    font-weight: 600;
}

.calendar-day.has-upcoming-event:hover {
    background: #fdba74;
}

.calendar-day.has-upcoming-event.selected {
    background: #ea580c;
    color: white;
}

.calendar-day.has-upcoming-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ea580c;
    border-radius: 50%;
}

.calendar-day.has-upcoming-event.selected::after {
    background: white;
}

/* Days with both historical and upcoming events */
.calendar-day.has-concert.has-upcoming-event {
    background: linear-gradient(45deg, #dcfce7 50%, #fed7aa 50%);
    color: #111827;
    font-weight: 600;
}

.calendar-day.has-concert.has-upcoming-event:hover {
    background: linear-gradient(45deg, #bbf7d0 50%, #fdba74 50%);
}

.calendar-day.has-concert.has-upcoming-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 25%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #059669;
    border-radius: 50%;
}

.calendar-day.has-concert.has-upcoming-event::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 75%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #ea580c;
    border-radius: 50%;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.calendar-control-btn {
    background: #475569;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e5e7eb;
    transition: all 0.2s ease;
}

.calendar-control-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

.date-filter-indicator {
    background: #052e16;
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.date-filter-indicator .clear-btn {
    background: none;
    border: none;
    color: #22c55e;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 0.5rem;
}

.date-filter-indicator .clear-btn:hover {
    color: #16a34a;
}


/* Mobile Filter Toggle */
.mobile-filter-toggle {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-filter-toggle:hover {
    background: #15803d;
}

.mobile-filter-toggle.active {
    background: #15803d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }
    
    .search-box {
        min-width: auto;
        order: 1;
    }
    
    .mobile-filter-toggle {
        display: flex;
        order: 2;
        margin-bottom: 1rem;
    }
    
    .filter-controls {
        display: none;
        order: 3;
        flex-direction: column;
        gap: 1rem;
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        animation: slideDown 0.3s ease-out;
    }
    
    .filter-controls.show {
        display: flex;
    }
    
    .filter-controls select,
    .filter-controls button {
        width: 100%;
    }
    
    .concert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .concert-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .concert-details {
        text-align: left;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Ensure correct stacking order on mobile */
    .analytics-card.shows-by-year {
        order: 1;
    }
    
    .analytics-card.most-seen-artists {
        order: 2;
    }
    
    .analytics-card.most-visited-venues {
        order: 3;
    }
    
    .add-upcoming-form {
        grid-template-columns: 1fr;
    }
    
    .calendar-widget {
        padding: 1rem;
    }
    
    .calendar-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .calendar-title {
        font-size: 1.1rem;
    }
    
    .weekday {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .calendar-control-btn {
        width: 100%;
    }
}

/* Calendar Setup Styles */
.calendar-setup {
    margin-bottom: 2rem;
}

.setup-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.setup-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.setup-steps {
    margin: 1.5rem 0;
}

.setup-step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.setup-step strong {
    color: #1e40af;
    display: block;
    margin-bottom: 0.5rem;
}

.setup-step ul {
    margin: 0.5rem 0 0 1rem;
    color: #4b5563;
}

.setup-step li {
    margin-bottom: 0.25rem;
}

.ics-input-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.ics-input-container input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.ics-input-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.load-calendar-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.load-calendar-btn:hover {
    background: #15803d;
}

.hide-setup-btn {
    background: #475569;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hide-setup-btn:hover {
    background: #334155;
}

/* Calendar Events Styles */
.calendar-events {
    margin-bottom: 2rem;
}

.calendar-events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-events-header h3 {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 600;
}

.refresh-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.refresh-btn:hover {
    background: #15803d;
}

.calendar-events-list {
    display: grid;
    gap: 1rem;
}

.calendar-event-item {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    flex: 1;
}

.event-date {
    font-size: 0.9rem;
    color: #22c55e;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.event-location {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #334155;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #475569;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-style: italic;
}

.no-events {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    background: #334155;
    border-radius: 8px;
    border: 1px dashed #475569;
}

.error-message {
    background: #450a0a;
    border: 1px solid #7f1d1d;
    border-radius: 8px;
    padding: 1.5rem;
    color: #fca5a5;
}

.error-message h4 {
    margin-bottom: 0.5rem;
    color: #f87171;
}

.error-message ul {
    margin: 0.5rem 0 0 1rem;
}

.error-message li {
    margin-bottom: 0.25rem;
}

.setup-message {
    background: #0c4a6e;
    border: 1px solid #0369a1;
    border-radius: 8px;
    padding: 1.5rem;
    color: #bae6fd;
    text-align: center;
}

.setup-message h3 {
    margin-bottom: 0.5rem;
    color: #bae6fd;
}

.setup-message code {
    background: #075985;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #e0f2fe;
}

/* Manual Entry Section */
.manual-entry-section {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    margin-bottom: 2rem;
}

.manual-entry-section h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.manual-entry-section p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.add-show-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row input,
.form-row textarea {
    padding: 0.75rem;
    border: 2px solid #475569;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #334155;
    color: #e5e7eb;
    transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #94a3b8;
}

.form-row:last-child {
    grid-template-columns: 1fr;
}

.add-show-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    justify-self: start;
}

.add-show-btn:hover {
    background: #15803d;
}

/* Upcoming Shows List */
.upcoming-shows-list {
    display: grid;
    gap: 1rem;
}

.upcoming-show-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upcoming-show-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.upcoming-show-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.upcoming-artist {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.upcoming-date {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.upcoming-details {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.upcoming-notes {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #e5e7eb;
    margin-top: 0.75rem;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .page-header h2 {
        font-size: 1.75rem;
    }

    /* Mobile Calendar Styles */
    .ics-input-container {
        flex-direction: column;
    }

    .ics-input-container input {
        min-width: unset;
    }

    .event-header,
    .upcoming-show-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-date,
    .upcoming-date {
        text-align: left;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .calendar-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .setup-card,
    .manual-entry-section {
        padding: 1.5rem;
    }
}

/* Event Details Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1e293b;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #334155;
    background: #334155;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: #475569;
    color: #f1f5f9;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.event-section {
    margin-bottom: 2rem;
}

.event-section:last-child {
    margin-bottom: 0;
}

.event-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-section-title.historical {
    color: #22c55e;
}

.event-section-title.upcoming {
    color: #f97316;
}

.event-item {
    background: #334155;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #475569;
}

.event-item.historical {
    border-left-color: #22c55e;
    background: #052e16;
}

.event-item.upcoming {
    border-left-color: #f97316;
    background: #431407;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-name {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.event-venue {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.event-location {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.modal-date-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
}

.modal-date-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.no-events-message {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 2rem;
}

/* Mobile responsiveness for modal */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

/* Two Column Layout for Upcoming Shows */
.upcoming-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.upcoming-left-column {
    min-width: 0; /* Allows flex items to shrink below their content size */
}

.upcoming-right-column {
    position: static;
}

/* Adjust calendar widget for sidebar */
.upcoming-right-column .calendar-widget {
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure calendar events take full width of left column */
.upcoming-left-column .calendar-events {
    margin-bottom: 0;
}

/* Responsive adjustments for two-column layout */
@media (max-width: 1024px) {
    .upcoming-layout {
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .upcoming-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .upcoming-right-column {
        position: static;
        order: -1; /* Show calendar first on mobile */
    }
    
    .upcoming-right-column .calendar-widget {
        margin-bottom: 2rem;
    }
}

