/* Dashboard Layout */
.dashboard-section {
    padding: 6rem 0 4rem;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.dashboard-welcome h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Role Badges */
.dashboard-role {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin {
    background: #1a1a2e;
    color: white;
}

.role-member {
    background: #4a5568;
    color: white;
}

.role-sub {
    background: #718096;
    color: white;
}

/* Admin Action Buttons — Kachel-Layout */
.admin-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.admin-buttons__main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.admin-buttons__secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Basis */
.admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.admin-btn:hover {
    color: white;
}

/* Zeile 1: Große Hauptkacheln (vertikal) */
.admin-btn--primary {
    flex-direction: column;
    gap: 0.6rem;
    background: #111827;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.admin-btn--primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Zeile 2: Featured-Buttons (Booking + Gagenrechner) */
.admin-buttons__featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}

.admin-btn--featured {
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    border-left: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    justify-content: flex-start;
    gap: 0.75rem;
}

.admin-btn--featured span {
    flex: 1;
    text-align: left;
}

.admin-btn__arrow {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.admin-btn--featured:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.admin-btn--featured:hover .admin-btn__arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Zeile 4: Einstellungen */
.admin-buttons__settings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}

/* Zeile 2: Kompakte Nebenkacheln (horizontal) */
.admin-btn--compact {
    background: #1f2937;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.admin-btn--compact:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Klick-Animation: Press & Bounce */
@keyframes btn-bounce {
    0%   { transform: scale(1); }
    20%  { transform: scale(0.95); }
    50%  { transform: scale(1.03); }
    75%  { transform: scale(0.99); }
    100% { transform: scale(1); }
}

.admin-btn.is-clicked {
    animation: btn-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Highlight-Button behält border-left beim Bounce */
.admin-btn--highlight.is-clicked {
    animation: btn-bounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Item Action Buttons (Small) */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #4a5568;
    background: #f1f5f9;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: #e2e8f0;
    color: var(--color-black);
    transform: translateY(-1px);
}

.action-btn--delete:hover {
    background: #fee2e2;
    color: #991b1b;
}

/* Dashboard Grid & Cards */
.dashboard-grid {
    position: relative;
    width: 100%;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: absolute;
}

.dashboard-card.masonry-ready {
    transition: top 0.4s ease, left 0.4s ease;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    min-height: 4rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-heading);
}

.card-header h2 svg {
    color: #4a5568;
}

.card-action {
    font-size: 0.8rem;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.card-action:hover {
    text-decoration: underline;
    color: var(--color-black);
}

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

/* Gig Items */
.gig-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gig-item + .gig-item {
    margin-top: 0.35rem;
}

.gig-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.25rem;
    background: var(--color-black);
    color: white;
    border-radius: 10px;
}

.gig-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.gig-month {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gig-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gig-info strong {
    font-size: 0.95rem;
    color: var(--color-text);
}

.gig-info span {
    font-size: 0.85rem;
    color: #6c757d;
}

.gig-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    white-space: nowrap;
}

.status-confirmed {
    background: #c6f6d5;
    color: #22543d;
}

.status-planning {
    background: #fed7aa;
    color: #9a3412;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.gig-status-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.gig-inv-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
}
.gig-inv-badge--accepted {
    background: #d1fae5;
    color: #065f46;
}
.gig-inv-badge--tentative {
    background: #fef3c7;
    color: #92400e;
}
.gig-inv-badge--declined {
    background: #fee2e2;
    color: #991b1b;
}
.gig-inv-badge--pending {
    background: #dbeafe;
    color: #1e40af;
}

.gig-item--clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.gig-item--clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


/* Rehearsal date modifier (reuses .gig-item layout) */
.reh-date {
    background: #3b1f6e;
}

.rsvp-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
    color: #6b7280;
}

.rsvp-btn:hover {
    border-color: #d1d5db;
}

.rsvp-btn--confirm:hover,
.rsvp-btn--confirm.active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

.rsvp-btn--maybe:hover,
.rsvp-btn--maybe.active {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #d97706;
}

.rsvp-btn--decline:hover,
.rsvp-btn--decline.active {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.rsvp-btn--detail:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.empty-hint {
    padding: 1.5rem 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Setlist Items */
.setlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.setlist-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.setlist-info strong {
    font-size: 0.95rem;
    color: var(--color-text);
}

.setlist-info span {
    font-size: 0.85rem;
    color: #6c757d;
}

.setlist-view {
    font-size: 0.875rem;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
}

.setlist-view:hover {
    text-decoration: underline;
    color: var(--color-black);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-section {
        padding: 5rem 1rem 2rem;
    }

    .admin-buttons__main {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-buttons__featured {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .admin-buttons__secondary {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-buttons__secondary .admin-btn--compact:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .admin-buttons__settings {
        max-width: 100%;
    }

    .admin-btn--primary {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }

    .admin-btn--compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .dashboard-welcome h1 {
        font-size: 1.5rem;
    }

    .dashboard-grid .dashboard-card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    .dashboard-grid {
        height: auto !important;
    }

    .gig-item {
        flex-wrap: wrap;
    }

    .gig-status-area {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-top: 0.5rem;
    }
}