/* ========================================
   UTILITIES - Helper Classes, User Controls
   ======================================== */

/* Legend */
.legend {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 20px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.legend:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.legend-header h3 {
    margin: 0;
    padding: 0;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.legend-header h3::before {
    content: '📋';
    font-size: 1.1em;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.5));
}

.legend h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend h3::before {
    content: '🎨';
    font-size: 1.2em;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.5));
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-item:hover {
    background: rgb(35, 35, 55);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 3px rgba(0, 0, 0, 0.2);
}

.legend-item span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.2px;
}

.legend-box {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-box.available {
    background: rgba(72, 187, 120, 0.4);
}

.legend-box.unavailable {
    background: rgba(252, 129, 129, 0.4);
}

.legend-box.blocked {
    background: rgba(203, 213, 224, 0.2);
}

.legend-box.all-available {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* User Controls */
.user-controls {
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.user-controls .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 27%;
    max-width: 27%;
    height: var(--control-height);
    padding: 0 32px;
}

.user-controls-two-btn {
    justify-content: center;
    gap: 40px;
}

.user-controls-two-btn .btn {
    flex: 0 0 auto;
    max-width: none;
    min-width: 280px;
}

.participants-status {
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.participants-status:hover {
    background: rgb(35, 35, 55);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.participants-status h3 {
    color: var(--text-primary);
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.participants-status h3::before {
    content: '👥';
    font-size: 1.2em;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.5));
}

.participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.participants-header h3 {
    margin: 0;
    padding: 0;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.participants-header h3::before {
    content: '👥';
    font-size: 1.1em;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.5));
}


/* Hidden utility class */
.hidden {
    display: none !important;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 20px;
    flex: 1;
    min-height: 400px;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
}

.empty-text-stylized {
    color: var(--accent-purple);
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    text-shadow: none;
}

.empty-state .btn {
    min-width: 250px;
}

