/* MPM Event Performers Plugin Styles */

.mpm-performers-container {
    max-width: 900px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.mpm-performers-title {
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding: 20px 20px 0 20px;
    font-size: 24px;
    font-weight: 700;
}

.mpm-event-info {
    background: linear-gradient(135deg, #ce5959 0%, #b50000 100%);
    padding: 20px;
    color: white;
    margin: 0;
}

.mpm-event-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

.mpm-event-date {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.mpm-performers-table-container {
    overflow-x: auto;
}

.mpm-performers-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 18px;
}

.mpm-performers-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.mpm-performers-table th {
    padding: 18px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #dee2e6;
}
.mpm-performers-table th.mpm-header-status {
    width: 140px;
    text-align: center;
}
.mpm-header-checkbox {
    width: 40px;
    text-align: center;
}

.mpm-header-position {
    width: 80px;
    text-align: center;
}

.mpm-header-performer {
    width: auto;
}

.mpm-header-wants-perform {
    width: 120px;
    text-align: center;
}

.mpm-header-actions {
    width: 80px;
    text-align: center;
}

.mpm-performer-row {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.mpm-performer-row:hover {
    background-color: #f8f9fa;
}

.mpm-performer-row:last-child {
    border-bottom: none;
}

.mpm-performer-row.mpm-reserved {
    background-color: #fff8e1 !important;
    border-left: 4px solid #ffc70f !important
}

.mpm-performer-row.mpm-reserved:hover {
    background-color: #fff3c4 !important;
}

.mpm-performers-table td {
    padding: 16px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.mpm-checkbox-cell {
    text-align: center;
}

.mpm-checkbox {
    margin: 0;
    transform: scale(1.1);
}

.mpm-position {
    text-align: center;
    position: relative;
}

.mpm-position-number {
    font-weight: 600;
    color: #495057;
    font-size: 15px;
}

.mpm-name {
    padding-left: 16px;
}

.mpm-performer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpm-user-icon {
    font-size: 16px;
    opacity: 0.7;
}

.mpm-performer-name {
    color: #212529;
    font-weight: 500;
}

.mpm-status {
    text-align: center;
}

.mpm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.3px;
    min-width: 80px;
    text-align: center;
    justify-content: center;
}

.mpm-status-icon {
    font-size: 14px;
}

.mpm-wants-perform {
    text-align: center;
}

.mpm-wants-perform-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
}

.mpm-wants-perform-indicator.mpm-wants-yes {
    color: #059669;
    font-weight: 500;
}

.mpm-wants-perform-indicator.mpm-wants-no {
    color: #6b7280;
}

.mpm-actions {
    text-align: center;
}

.mpm-action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.mpm-action-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mpm-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.mpm-no-performers {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-style: italic;
    font-size: 16px;
}

.mpm-no-event {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    margin: 20px;
}

.mpm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 20px;
    font-weight: 500;
}

.mpm-version {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.mpm-version small {
    color: #6c757d;
    font-size: 11px;
    font-weight: 500;
}

/* Status badge styles for new status values */
.mpm-status-confirmed {
    background-color: #10b981;
    color: white;
}

.mpm-status-pending {
    background-color: #f59e0b;
    color: white;
}

.mpm-status-waitlist-confirmed {
    background-color: #3b82f6;
    color: white;
}

.mpm-status-waitlist-pending {
    background-color: #6366f1;
    color: white;
}

.mpm-status-unconfirmed {
    background-color: #6b7280;
    color: white;
}

.mpm-status-not-attending {
    background-color: #ef4444;
    color: white;
}

.mpm-status-not-playing {
    background-color: #8b5cf6;
    color: white;
}

.mpm-status-confirmed-guest {
    background-color: #059669;
    color: white;
    border: 2px dashed #34d399;
}

.mpm-status-pending-guest {
    background-color: #d97706;
    color: white;
    border: 2px dashed #fbbf24;
}

.mpm-status-unknown {
    background-color: #374151;
    color: white;
}

.mpm-status-waitlisted-non-confirmation {
    background-color: #3741518b;
    color: white;
}

.mpm-status-reserved {
    background-color: #ffc70f;
    color: #1a1a1a;
    font-weight: 700;
}
/* Guest performer styling */
.mpm-performer-row.mpm-performing {
    background-color: rgba(249, 250, 251, 0.5);
    border-left: 4px solid #059669;
}
.mpm-performer-row.mpm-waitlist {
    background-color: rgba(249, 250, 251, 0.5);
    border-left: 4px solid #f59e0b;
}

.mpm-guest-badge {
    display: inline-block;
    background-color: #f59e0b;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
}

/* Status Legend Styles */
.mpm-status-legend {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 0;
}

.mpm-legend-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.mpm-legend-items {
    display: flex;
    flex-direction: column;
}

.mpm-legend-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 2px 0;
}

.mpm-legend-badge-container {
    flex-shrink: 0;
    min-width: 140px;
}

.mpm-legend-item .mpm-status-badge {
    margin: 0;
    font-size: 11px;
    padding: 6px 10px;
    min-width: auto;
    white-space: nowrap;
    justify-content: flex-start;
    display: inline-flex;
    align-items: center;
}

.mpm-legend-explanation {
    flex: 1;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .mpm-performers-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .mpm-performers-title {
        font-size: 20px;
        padding: 15px 15px 0 15px;
    }
    
    .mpm-event-info {
        padding: 15px;
    }
    
    .mpm-performers-table th,
    .mpm-performers-table td {
        padding: 18px 8px;
    }
    
    .mpm-performers-table th {
        font-size: 18px;
    }
    
    .mpm-performer-info {
        gap: 8px;
    }
    
    .mpm-user-icon {
        font-size: 14px;
    }
    
    .mpm-status-badge {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .mpm-status-legend {
        padding: 15px;
    }
    
    .mpm-legend-item {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .mpm-legend-badge-container {
        min-width: auto;
        width: 100%;
    }
    
    .mpm-legend-explanation {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .mpm-performers-table-container {
        overflow-x: scroll;
    }
    
    .mpm-performers-table {
        min-width: 600px;
    }
    
    .mpm-performers-title {
        font-size: 18px;
    }
    
    .mpm-event-info h4 {
        font-size: 18px;
    }
    
    .mpm-performers-table th,
    .mpm-performers-table td {
        padding: 10px 6px;
    }
    
    .mpm-legend-title {
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mpm-performers-container {
        background: #1a1a1a;
        color: #e9ecef;
    }
    
    .mpm-performers-table {
        background: #1a1a1a;
    }
    
    .mpm-performers-table thead {
        background: #2d3748;
    }
    
    .mpm-performers-table th {
        color: #e9ecef;
        border-bottom-color: #4a5568;
    }
    
    .mpm-performer-row {
        border-bottom-color: #4a5568;
    }
    
    .mpm-performer-row:hover {
        background-color: #2d3748;
    }
    
    .mpm-performers-table td {
        border-bottom-color: #4a5568;
    }
    
    .mpm-performer-name {
        color: #e9ecef;
    }
    
    .mpm-position-number {
        color: #e9ecef;
    }
    
    .mpm-performer-row.mpm-unregistered {
        background-color: rgba(31, 41, 55, 0.5);
    }
    
    .mpm-action-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .mpm-status-legend {
        background: #2d3748;
        border-top-color: #4a5568;
    }
    
    .mpm-legend-title {
        color: #e9ecef;
    }
    
    .mpm-legend-explanation {
        color: #a0aec0;
    }


}

.mpm-plugin-version {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.mpm-version-text {
    color: #666;
    font-size: 0.85em;
    font-style: italic;
}   