/* Dynamic Theme CSS Variables */
/* These are overridden by tenant branding */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #a855f7;
    --text-color: #111827;
    --text-muted: #6b7280;
    --background-color: #f9fafb;
    --sidebar-color: #4f46e5;
    --header-color: #4f46e5;
    --border-color: #e5e7eb;
    --light-color: #f9fafb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
    background: var(--sidebar-color);
    color: white;
    width: 250px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 1.5rem 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-brand img {
    max-width: 150px;
    height: auto;
}

.sidebar-brand h1 {
    color: white;
    font-size: 1.5rem;
    margin: 0.5rem 0 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
}

.sidebar-menu a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu .badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Header Styles */
.header {
    background: var(--header-color);
    color: white;
    padding: 1rem 2rem;
    margin-left: 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-user-info {
    text-align: right;
}

.header-user-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.header-user-band {
    font-size: 0.75rem;
    opacity: 0.9;
}

.header-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.header-icon {
    position: relative;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.header-icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 250px;
    background: var(--background-color);
    min-height: 100vh;
}

.main-content {
    padding: 2rem;
    color: var(--text-color);
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.calendar-month {
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: var(--light-color);
}

.calendar-day.has-event {
    background: var(--primary-color);
    color: white;
}

.calendar-day.has-rehearsal {
    background: var(--secondary-color);
    color: white;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.event-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.event-card-content {
    padding: 1rem;
}

.event-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-card-badge.not-public {
    background: #f3f4f6;
    color: var(--text-color);
}

.event-card-badge.unconfirmed {
    background: #fef3c7;
    color: #92400e;
}

.event-card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.event-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.event-card-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Task List Styles */
.task-list {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.task-item:hover {
    background: var(--light-color);
}

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

.task-checkbox {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.task-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .header,
    .main-wrapper {
        margin-left: 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}

