/* ============================================
   gigsync - Main Stylesheet
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Visually hidden but available to copy/AT (stays in DOM, not display:none) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    padding: 15px 0;
    margin-bottom: 30px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #6200ea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: inherit;
}

.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.nav a:hover {
    background: #f0f0f0;
}

.nav .btn {
    background: #6200ea;
    color: white;
}

.nav .btn:hover {
    background: #5000d0;
}

/* Header: user avatar (profile) + hamburger on mobile */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    padding: 4px 0;
}

.header-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: #6200ea;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.header-user-name {
    display: none; /* Profile link = avatar circle only (like attendee stack) */
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.header-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 1.25rem;
}

.header-hamburger:hover {
    background: #f5f5f5;
    color: #333;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Calendar feed bar (reusable partial) - green theme */
.calendar-feed-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #e8f5e9;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
    margin-bottom: 20px;
}
.calendar-feed-bar-icon {
    color: #2e7d32;
    font-size: 18px;
}
.calendar-feed-bar-text {
    flex: 1;
    min-width: 0;
}
.calendar-feed-bar-title {
    font-weight: 500;
    color: #333;
}
.calendar-feed-bar-subtitle {
    color: #666;
    font-size: 13px;
    margin-left: 6px;
}
.calendar-feed-bar-how {
    color: #2e7d32;
    font-size: 13px;
    margin-left: 6px;
    text-decoration: none;
    font-weight: 500;
}
.calendar-feed-bar-how:hover {
    text-decoration: underline;
}
.calendar-feed-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.calendar-feed-bar-input {
    padding: 8px 12px;
    font-family: monospace;
    font-size: 11px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.calendar-feed-bar-input.visually-hidden {
    flex: none;
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}
.calendar-feed-bar-copy {
    background: #2e7d32;
    color: white;
    padding: 8px 16px;
    min-height: 44px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.calendar-feed-bar-copy:hover {
    background: #1b5e20;
}
.calendar-feed-bar-copy.copy-success {
    background: #388e3c;
    color: #e8f5e9;
}

/* Invite link bar - same layout as calendar bar, purple theme */
.invite-link-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f8f5ff;
    border-radius: 4px;
    border: 1px solid #e8e0f0;
    margin-top: 20px;
    margin-bottom: 20px;
}
.invite-link-bar-icon {
    color: #6200ea;
    font-size: 18px;
}
.invite-link-bar-text {
    flex: 1;
    min-width: 0;
}
.invite-link-bar-title {
    font-weight: 500;
    color: #333;
}
.invite-link-bar-subtitle {
    color: #666;
    font-size: 13px;
    margin-left: 6px;
}
.invite-link-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.invite-link-bar-input.visually-hidden {
    flex: none;
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}
.invite-link-bar-copy {
    background: #6200ea;
    color: white;
    padding: 8px 16px;
    min-height: 44px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}
.invite-link-bar-copy:hover {
    background: #4a00b8;
}
.invite-link-bar-copy.copy-success,
.invite-placeholder-copy.copy-success {
    background: #4a00b8 !important;
    color: #e8e0f0 !important;
}

/* Compact bar layout: mobile */
@media (max-width: 600px) {
    .calendar-feed-bar,
    .invite-link-bar {
        padding: 8px 12px;
        gap: 8px;
    }
    .calendar-feed-bar-icon,
    .invite-link-bar-icon {
        font-size: 16px;
    }
    .calendar-feed-bar-text,
    .invite-link-bar-text {
        min-width: 0;
    }
    .calendar-feed-bar-title,
    .invite-link-bar-title {
        font-size: 14px;
    }
    .calendar-feed-bar-subtitle,
    .invite-link-bar-subtitle {
        font-size: 12px;
    }
    .calendar-feed-bar-copy,
    .invite-link-bar-copy {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Profile calendar group row - compact when input hidden */
.profile-calendar-row {
    padding: 12px 15px;
}
@media (max-width: 600px) {
    .profile-calendar-row {
        padding: 8px 12px;
    }
}

/* Attending Event Indicator */
.card.attending-event {
    border-top: 25px solid #4caf50;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 0;
}

.breadcrumb a {
    color: #6200ea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* User Attending Event Row */
.table tr.user-attending-event {
    border-left: 4px solid #4caf50;
}

.table tr.user-interested-event {
    border-left: 4px solid #2196F3;
}

/* Event table: two-column layout, matches card data (title, subtitle, date/time) */
.event-table .event-table-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-top: 2px;
}
.event-table .event-table-datetime {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    margin-top: 4px;
}
.event-table .event-table-event-link {
    font-weight: 600;
}
.event-table .event-table-attendees {
    white-space: nowrap;
}

/* Mobile: stack event row so attendees sit below event/venue/date (card-like) */
@media (max-width: 600px) {
    .event-table thead {
        display: none;
    }
    .event-table tbody tr {
        display: block;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .event-table tbody tr:last-child {
        margin-bottom: 0;
    }
    .event-table tbody td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 8px;
        font-size: 14px;
        border: none;
    }
    .event-table tbody td:first-child {
        padding-bottom: 4px;
    }
    .event-table .event-table-attendees {
        white-space: normal;
        padding-top: 10px;
        margin-top: 8px;
    }
    .event-table .event-table-attendees::before {
        content: "Attendees";
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #757575;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin-bottom: 6px;
    }
    .event-table .event-table-subtitle,
    .event-table .event-table-datetime {
        font-size: 0.8125rem;
    }
}

.attendee-pill:hover {
    background: #f0f1f3;
    border-color: #d0d1d3;
}

/* Event Header Layout */
.event-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.event-details {
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
}

.event-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-shrink: 0;
}

.event-actions .btn,
.event-actions a.btn,
.event-actions button.btn {
    min-width: 140px;
    min-height: 44px;
    text-align: center;
    line-height: 1.5;
}

.event-actions .event-delete-btn {
    margin-left: auto;
}

/* Twickets button: full text on desktop, short on mobile (see media query) */
.event-actions .event-action-twickets .event-action-text--mobile {
    display: none;
}



/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #6200ea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background: #5000d0;
}

.btn-secondary {
    background: #757575;
}

.btn-secondary:hover {
    background: #616161;
}

.btn-danger {
    background: #d32f2f;
}

.btn-danger:hover {
    background: #c62828;
}

/* Group actions - align delete button to right on desktop */
.group-actions {
    justify-content: flex-start;
}

.group-actions .btn,
.group-actions a.btn,
.group-actions button.btn {
    min-width: 140px;
    min-height: 44px;
    text-align: center;
    line-height: 1.5;
}

.group-actions .group-delete-btn,
.group-actions .group-leave-btn {
    margin-left: auto;
}

/* Group view: mobile = icon-only buttons, compact (override .group-actions .btn min-width) */
@media (max-width: 600px) {
    .group-actions .group-action-text {
        display: none;
    }
    .group-actions .btn,
    .group-actions a.btn,
    .group-actions button.btn {
        min-width: 32px;
        width: 32px;
        height: 32px;
        min-height: 32px;
        padding: 0 !important;
        font-size: 13px !important;
        justify-content: center;
        flex-shrink: 0;
    }
    .group-actions .group-action i {
        margin: 0;
        font-size: 0.8125rem;
    }
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select,
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6200ea;
}

/* ============================================
   Messages & Alerts
   ============================================ */
.error {
    color: #d32f2f;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ============================================
   Tables
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: #f5f5f5;
    font-weight: 600;
}

.table tr:hover {
    background: #fafafa;
}

/* View toggle (card vs table) */
.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #757575;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    font: inherit;
}
button.view-toggle-btn {
    -webkit-appearance: none;
    appearance: none;
}
.view-toggle-btn:hover {
    background: #f5f5f5;
    color: #424242;
}
.view-toggle-btn--active {
    background: #6200ea;
    border-color: #6200ea;
    color: #fff;
}
.view-toggle-btn--active:hover {
    background: #5300d1;
    border-color: #5300d1;
    color: #fff;
}

/* ============================================
   Dashboard – Groups card grid
   ============================================ */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.group-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.group-card:hover {
    border-color: #6200ea;
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.12);
}

.group-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #6200ea;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.group-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.group-card-desc:empty::before {
    content: "No description";
    color: #999;
    font-style: italic;
}

.group-card-meta {
    font-size: 12px;
    color: #999;
    margin: 10px 0 0 0;
}

.group-card-type {
    color: #7e57c2;
    font-weight: 500;
}

.group-card-meta-sep {
    color: #bbb;
}

/* Band group: subtle left accent only, no change to non-band cards */
.group-card--band {
    border-left: 3px solid #b39ddb;
}

.group-card-arrow {
    margin-left: auto;
    font-size: 14px;
    color: #999;
    transition: transform 0.2s;
}

.group-card:hover .group-card-arrow {
    color: #6200ea;
    transform: translateX(4px);
}

/* ============================================
   Group events – Event card grid
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    border-color: #6200ea;
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.12);
}

.event-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #6200ea;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.event-card-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.event-card-datetime {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
}

.event-card-meta {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.event-card-arrow {
    margin-left: auto;
    font-size: 14px;
    color: #999;
    transition: transform 0.2s;
}

.event-card:hover .event-card-arrow {
    color: #6200ea;
    transform: translateX(4px);
}

.event-card-attending {
    color: #2e7d32;
    font-weight: 500;
}

.event-card-interested {
    color: #2196F3;
    font-weight: 500;
}

.event-card-meta-sep {
    color: #bbb;
}

.event-card-past {
    color: #999;
    font-style: italic;
}

.event-card--attending {
    border-left: 4px solid #4caf50;
}

.event-card--interested {
    border-left: 4px solid #2196F3;
}

.event-card--past {
    opacity: 0.85;
}

/* Stacked attendee avatars (Google Docs style), current user first in stack */
.event-card-avatars {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    vertical-align: middle;
}

.event-card-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    margin-left: -8px;
    position: relative;
    box-sizing: content-box;
}

.event-card-avatar:first-child {
    margin-left: 0;
}

.event-card-avatar--more {
    background: #bdbdbd !important;
    font-size: 9px;
    font-weight: 600;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-admin {
    background: #6200ea;
    color: white;
}

.badge-banned {
    background: #d32f2f;
    color: white;
}

/* ============================================
   Empty States
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    margin-bottom: 10px;
}

/* ============================================
   Stats Page Specific Styles
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.stat-card-primary,
.stat-card-success,
.stat-card-warning {
    text-align: center;
    color: white;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.stat-card-primary {
    background: linear-gradient(135deg, #6200ea 0%, #7c4dff 100%);
}

.stat-card-success {
    background: linear-gradient(135deg, #00bfa5 0%, #00e676 100%);
}

.stat-card-warning {
    background: linear-gradient(135deg, #ff6f00 0%, #ff9100 100%);
}

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

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* Desktop: larger cards */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .stat-number {
        font-size: 48px;
        margin-bottom: 10px;
    }

    .stat-label {
        font-size: 16px;
    }
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.month-box {
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.month-box:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.month-count {
    font-size: 24px;
    font-weight: bold;
    color: #6200ea;
    margin-bottom: 5px;
}

.month-name {
    font-size: 12px;
    color: #666;
}

.shared-events-badge {
    background: #6200ea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.shared-events-badge:hover {
    background: #5000d0;
    transform: scale(1.05);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header .container {
        padding: 10px 15px;
        position: relative;
    }

    .logo {
        font-size: 20px;
    }

    /* Mobile: nav becomes dropdown, hamburger + profile avatar always visible */
    .header-hamburger {
        display: flex;
    }

    .header-user-name {
        display: none;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 15px;
        left: 15px;
        margin: 0;
        margin-top: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border: 1px solid #e0e0e0;
        padding: 8px 0;
        display: none;
        z-index: 100;
    }

    .header-nav-open .nav {
        display: flex;
    }

    .nav a {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 0;
        border: none;
    }

    .nav a:hover {
        background: #f5f5f5;
    }

    .nav .btn {
        margin: 8px 16px 0;
        text-align: center;
        border-radius: 4px;
    }

    .card {
        padding: 16px;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px;
    }

    /* Stack event header on mobile */
    .event-header-layout {
        flex-direction: column;
        gap: 15px;
    }

    .event-actions {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
    }

    /* Override .event-actions .btn min-width so mobile compact sizes apply (same fix as group-actions) */
    .event-actions .btn,
    .event-actions a.btn,
    .event-actions button.btn {
        min-width: 0;
        min-height: 44px;
    }

    /* Add Me / Remove Me - first (left), keep text for clarity */
    .event-add-btn {
        order: 1;
        margin-right: auto;
    }

    .event-remove-btn {
        order: 1;
        margin-right: auto;
    }

    /* Twickets - second (after Add/Remove Me), short label on mobile */
    .event-actions .event-action-twickets {
        order: 2;
    }
    .event-actions .event-action-twickets .event-action-text--desktop {
        display: none;
    }
    .event-actions .event-action-twickets .event-action-text--mobile {
        display: inline;
    }

    /* Edit - third, icon only on mobile */
    .event-actions .event-action-edit {
        order: 3;
    }
    .event-actions .event-action-edit .event-action-text {
        display: none;
    }
    .event-actions .event-action-edit,
    .event-actions .event-action-delete {
        min-width: 32px;
        width: 32px;
        height: 32px;
        min-height: 32px;
        padding: 0 !important;
        justify-content: center;
        flex-shrink: 0;
    }
    .event-actions .event-action-edit i,
    .event-actions .event-action-delete i {
        margin: 0;
        font-size: 0.8125rem;
    }

    /* Delete - fourth (right), icon only on mobile */
    .event-actions .event-action-delete .event-action-text {
        display: none;
    }
    .event-delete-btn {
        order: 4;
        margin-left: auto;
    }

    /* Group delete button - icon only on mobile, align to right */
    .group-delete-btn {
        min-width: 44px;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        border-radius: 50%;
        margin-left: auto;
        font-size: 0; /* Hide text */
        position: relative;
        overflow: hidden;
    }

    .group-delete-btn::after {
        content: "\f2ed"; /* Font Awesome trash icon */
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 18px;
        color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .nav {
        gap: 5px;
    }

    .nav a {
        padding: 6px 8px;
        font-size: 12px;
    }

    .header .container {
        gap: 10px;
    }
}

/* ============================================
   Setlist Builder - Notion-style Kanban
   ============================================ */
.setlist-builder-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.setlist-song-library {
    min-width: 240px;
    max-width: 240px;
    background: #f7f6f3;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.06);
}

.setlist-song-library label {
    font-size: 12px;
    font-weight: 500;
    color: #6b6b6b;
    display: block;
    margin-bottom: 8px;
}

.setlist-song-filter,
#setlist-song-filter {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

#setlist-song-filter:focus {
    outline: none;
    border-color: #6200ea;
    box-shadow: 0 0 0 2px rgba(98,0,234,0.1);
}

.setlist-draggable-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#setlist-song-list {
    max-height: 400px;
    overflow-y: auto;
}/* Song library items */
.setlist-song-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    cursor: grab;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.setlist-song-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1);
}

.setlist-song-item:active {
    cursor: grabbing;
}

/* Swimlane columns - Notion-style with gigsync color accents */
.setlist-swimlanes-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    flex: 1;
    min-width: 0;
}.setlist-swimlane {
    min-width: 220px;
    flex: 0 0 220px;
    background: #f7f6f3;
    border-radius: 6px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

.setlist-swimlane:nth-child(1) { border-top: 3px solid #2e7d32; }
.setlist-swimlane:nth-child(2) { border-top: 3px solid #1976d2; }
.setlist-swimlane:nth-child(3) { border-top: 3px solid #6200ea; }
.setlist-swimlane:nth-child(4) { border-top: 3px solid #7b1fa2; }
.setlist-swimlane:nth-child(n+5) { border-top: 3px solid #6b6b6b; }

.setlist-swimlane form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.setlist-swimlane-handle {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #37352f;
    cursor: grab;
    flex: 1;
}

.setlist-swimlane:nth-child(1) .setlist-swimlane-handle { color: #2e7d32; }
.setlist-swimlane:nth-child(2) .setlist-swimlane-handle { color: #1976d2; }
.setlist-swimlane:nth-child(3) .setlist-swimlane-handle { color: #6200ea; }
.setlist-swimlane:nth-child(4) .setlist-swimlane-handle { color: #7b1fa2; }.setlist-items-list {
    margin: 0;
    padding: 10px;
    list-style: none;
    min-height: 80px;
}/* Setlist item cards - Notion-style */
.setlist-item {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    cursor: grab;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.setlist-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1);
}

.setlist-item:active {
    cursor: grabbing;
}

.setlist-item > span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.setlist-item-remove {
    color: #d32f2f;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.setlist-item-remove:hover {
    opacity: 1;
}

/* Key badge - subtle gigsync purple */
.setlist-key-badge {
    background: #ede7f6;
    color: #5e35b1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.remove-set-btn {
    color: #d32f2f;
    font-size: 12px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 6px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}.remove-set-btn:hover {
    opacity: 1;
}