/* Sync Session Specific Styles */

/* Override body overflow for jam-together pages to allow scrolling */
body {
    overflow: auto !important;
    height: auto !important;
    min-height: 100vh;
}

html {
    overflow: auto !important;
}

.sync-session-form-container {
    display: flex;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.form-card, .info-card {
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-card {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
}

.info-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 3rem;
    color: #64c8ff;
    margin-bottom: 1rem;
    display: block;
}

.form-header h1 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.form-header p {
    color: #b0b8c8;
    font-size: 1.1rem;
}

.session-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input, .form-group textarea {
    background: rgba(30, 35, 50, 0.8);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #64c8ff;
    box-shadow: 0 0 0 3px rgba(100, 200, 255, 0.1);
}

.input-help {
    margin-top: 0.5rem;
    color: #8892a8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation; /* Improve touch responsiveness */
}

.btn-primary {
    background: linear-gradient(135deg, #64c8ff, #4a9eff);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5ab8ef, #3a8eef);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 200, 255, 0.3);
}

.btn-secondary {
    background: rgba(100, 200, 255, 0.2);
    color: #64c8ff;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(100, 200, 255, 0.3);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #64c8ff;
    border: 2px solid rgba(100, 200, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(100, 200, 255, 0.1);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #ffffff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff5757, #dd4a4a);
}

.btn-warning {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    color: #ffffff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.error-message {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    color: #64c8ff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    color: #b0b8c8;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.info-card li i {
    color: #64c8ff;
    width: 1.2rem;
    text-align: center;
}

.join-quick-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 200, 255, 0.2);
}

.join-quick-actions h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-sessions .no-recent {
    color: #8892a8;
    font-style: italic;
}

/* Session List Styles */
.sync-session-list-container {
    max-width: 1200px;
    margin: 1rem auto; /* Reduzierte Margin für mehr verfügbaren Platz */
    padding: 1.5rem; /* Reduziertes Padding */
    width: 100%;
    box-sizing: border-box;
    min-height: auto; /* Entfernt die feste min-height */
}

.list-header {
    text-align: center;
    margin-bottom: 2rem; /* Reduziert von 3rem */
}

.list-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.list-header p {
    color: #b0b8c8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sessions Container for Side-by-Side Layout */
.sessions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem; /* Reduziert von 3rem */
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.sessions-section {
    margin-bottom: 0; /* Remove bottom margin when in side-by-side layout */
    min-width: 0; /* Verhindert Overflow */
    max-width: 100%; /* Beschränkt jede Sektion auf ihre Spaltenbreite */
}

.sessions-section.left-section,
.sessions-section.right-section {
    min-height: 200px; /* Ensure minimum height for better layout */
    width: 100%; /* Nutzt die volle verfügbare Spaltenbreite */
}

.sessions-section {
    margin-bottom: 3rem;
}

.sessions-section h2 {
    color: #64c8ff;
    margin-bottom: 1rem; /* Reduziert von 1.5rem */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem; /* Reduziert von 1.8rem */
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Auf größeren Bildschirmen mehr Karten pro Zeile */
@media (min-width: 1200px) {
    .sessions-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 2rem;
        max-width: 100%;
    }
}

@media (min-width: 1600px) {
    .sessions-grid {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
        gap: 2.5rem;
        max-width: 100%;
    }
    
    .session-card {
        min-height: 320px;
        padding: 2rem;
    }
}

/* Responsive Design für kleinere Bildschirme */
@media (max-width: 450px) {
    .sessions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .session-card {
        min-height: 250px;
        padding: 1rem;
    }
}

.session-card {
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    
    /* Flexibleres Design ohne feste aspect-ratio */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    max-height: none; /* Entferne die Höhenbegrenzung */
}

.session-card:hover {
    border-color: #64c8ff;
    box-shadow: 0 12px 40px rgba(100, 200, 255, 0.2);
    transform: translateY(-4px);
}

/* Gradient Border für besondere Session Cards */
.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(rgba(20, 25, 40, 0.95), rgba(20, 25, 40, 0.95)) padding-box,
                linear-gradient(45deg, #ffd700, #64c8ff, #ff6b9d) border-box;
}

.gradient-border:hover {
    background: linear-gradient(rgba(25, 30, 45, 0.95), rgba(25, 30, 45, 0.95)) padding-box,
                linear-gradient(45deg, #ffd700, #64c8ff, #ff6b9d) border-box;
    box-shadow: 0 12px 40px rgba(100, 200, 255, 0.3);
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    border-color: #64c8ff;
    box-shadow: 0 12px 40px rgba(100, 200, 255, 0.3);
    transform: translateY(-6px);
    background: rgba(25, 30, 45, 0.95);
}

.clickable-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 200, 255, 0.2);
}

.owner-session {
    border-left: 4px solid #ffd700;
}

.member-session {
    border-left: 4px solid #64c8ff;
}

.session-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Reduziert von 1rem */
    margin-bottom: 1rem; /* Reduziert von 1.2rem */
    flex-shrink: 0;
}

.session-title {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* Reduziert von 0.8rem */
    flex-wrap: wrap;
    min-width: 0;
}

.session-title h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem; /* Reduziert von 1.2rem */
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.2; /* Reduziert von 1.3 */
    flex: 1;
}

.session-role {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap; /* Rolle nicht umbrechen */
}

.session-role.owner {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.session-role.member {
    background: rgba(100, 200, 255, 0.2);
    color: #64c8ff;
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.session-role.public {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.session-code {
    background: rgba(100, 200, 255, 0.1);
    color: #64c8ff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid rgba(100, 200, 255, 0.3);
    text-align: center;
    align-self: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; /* Reduziert von 1rem */
    margin-bottom: 0.8rem; /* Reduziert von 1rem */
    word-wrap: break-word;
    flex: 1;
    justify-content: center;
}

.session-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0; /* Reduziert von 0.5rem */
    border-bottom: 1px solid rgba(100, 200, 255, 0.1);
}

.session-info-row:last-child {
    border-bottom: none;
}

.session-info-label {
    font-size: 0.8rem; /* Reduziert von 0.85rem */
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduziert von 0.5rem */
}

.session-info-value {
    font-size: 0.85rem; /* Reduziert von 0.9rem */
    color: #ffffff;
    font-weight: 500;
}

.session-info > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b8c8;
    font-size: 0.9rem;
}

.session-info i {
    color: #64c8ff;
    width: 1rem;
    text-align: center;
}

.text-green {
    color: #4caf50 !important;
}

.text-orange {
    color: #ff9800 !important;
}

.current-song {
    background: rgba(100, 200, 255, 0.1);
    padding: 0.5rem; /* Reduziert von 0.6rem */
    border-radius: 8px;
    margin-bottom: 0.8rem; /* Reduziert von 1rem */
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduziert von 0.6rem */
    border-left: 3px solid #64c8ff;
    font-size: 0.8rem; /* Reduziert von 0.85rem */
    flex-shrink: 0;
}

.current-song i {
    color: #64c8ff;
    font-size: 0.85rem; /* Reduziert von 0.9rem */
}

.current-song span {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-actions {
    display: flex;
    gap: 0.5rem; /* Reduziert von 0.6rem */
    justify-content: center;
    margin-top: auto;
    flex-shrink: 0;
}

.session-actions .btn {
    flex: 1;
    padding: 0.5rem 0.8rem; /* Reduziert von 0.6rem 1rem */
    font-size: 0.75rem; /* Reduziert von 0.8rem */
    text-align: center;
    min-width: 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: rgba(20, 25, 40, 0.6);
    border-radius: 15px;
    border: 2px dashed rgba(100, 200, 255, 0.3);
}

.empty-state i {
    font-size: 3rem;
    color: #64c8ff;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #8892a8;
}

.stats-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(100, 200, 255, 0.2);
}

.stats-section h2 {
    color: #64c8ff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 100%;
}

/* Limit stats grid on very large screens */
@media (min-width: 1201px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(200px, 250px));
        justify-content: center;
    }
}

.stat-card {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #64c8ff;
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 2rem;
    color: #64c8ff;
    margin-bottom: 0.8rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: #b0b8c8;
    font-size: 0.9rem;
}

/* Member Selection Options */
.member-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.member-option {
    position: relative;
}

.member-option input[type="radio"] {
    display: none;
}

.member-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(30, 35, 50, 0.8);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.member-option label:hover {
    border-color: rgba(100, 200, 255, 0.6);
    background: rgba(30, 35, 50, 0.9);
    transform: translateY(-2px);
}

.member-option input[type="radio"]:checked + label {
    border-color: #64c8ff;
    background: rgba(100, 200, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(100, 200, 255, 0.2);
}

.member-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: #64c8ff;
    margin-bottom: 0.3rem;
}

.member-label {
    font-size: 0.9rem;
    color: #b0b8c8;
    font-weight: 500;
}

.member-option input[type="radio"]:checked + label .member-count {
    color: #ffffff;
}

.member-option input[type="radio"]:checked + label .member-label {
    color: #64c8ff;
}

/* Checkbox Group Styles */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(30, 35, 50, 0.6);
    border: 2px solid rgba(100, 200, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(30, 35, 50, 0.8);
    border-color: rgba(100, 200, 255, 0.4);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #64c8ff;
}

.checkbox-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b8c8;
    font-size: 0.95rem;
}

.checkbox-text i {
    color: #64c8ff;
    font-size: 1.2rem;
}

.checkbox-text strong {
    color: #ffffff;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-text {
    color: #ffffff;
}

/* Visibility Toggle Group - Fancy Switch */
.visibility-toggle-group {
    margin: 1.5rem 0;
}

.visibility-toggle-group > label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.visibility-toggle-group > label i {
    color: #64c8ff;
}

.visibility-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(30, 35, 50, 0.8);
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.visibility-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.visibility-option:hover {
    opacity: 0.8;
    background: rgba(100, 200, 255, 0.05);
}

.visibility-option.active {
    opacity: 1;
    background: rgba(100, 200, 255, 0.1);
}

.visibility-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.visibility-option[data-value="private"] i {
    color: #ff6b6b;
}

.visibility-option[data-value="public"] i {
    color: #51cf66;
}

.visibility-option span {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.visibility-option small {
    color: #b0b8c8;
    font-size: 0.85rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    display: block;
    width: 140px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(255, 107, 107, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toggle-slider::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 65px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.4s ease;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: linear-gradient(135deg, #51cf66, #37b24d);
    box-shadow: 
        0 4px 15px rgba(81, 207, 102, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    left: 85px;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
    content: '🌐';
    left: 15px;
}

.toggle-label-left,
.toggle-label-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.toggle-label-left {
    left: 15px;
}

.toggle-label-right {
    right: 15px;
    opacity: 0.4;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider .toggle-label-left {
    opacity: 0.4;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider .toggle-label-right {
    opacity: 1;
}

/* Visibility Hint */
.visibility-hint {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(100, 200, 255, 0.1);
    border-left: 3px solid #64c8ff;
    border-radius: 5px;
    color: #b0b8c8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.visibility-hint i {
    color: #64c8ff;
    font-size: 1rem;
}

/* How It Works Section */
.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 35, 50, 0.6);
    border-radius: 10px;
    border-left: 3px solid #64c8ff;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(30, 35, 50, 0.8);
    transform: translateX(5px);
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #64c8ff, #4a9eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
}

.step-content h4 {
    color: #ffffff;
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    color: #b0b8c8;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(20, 25, 40, 0.98);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.modal-content p {
    color: #b0b8c8;
    margin-bottom: 1rem;
}

.modal-content .warning {
    color: #ff9800;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sync-session-list-container {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .sessions-container {
        gap: 1.5rem;
        max-width: 1200px; /* Kleinere maximale Breite für bessere Nutzung */
    }
    
    .sessions-grid {
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 900px) {
    /* Bei mittleren Bildschirmen noch nebeneinander, aber mit weniger Gap */
    .sessions-container {
        gap: 1rem;
        grid-template-columns: 1fr 1fr; /* Behalte Side-by-Side bei */
    }
    
    .session-card {
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .sync-session-form-container {
        flex-direction: column;
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .form-card, .info-card {
        min-width: auto;
    }
    
    .sync-session-list-container {
        padding: 1rem;
        margin: 1rem auto;
        min-height: calc(100vh - 2rem); /* Angepasst für mobile */
    }
    
    .list-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .list-header p {
        font-size: 1rem;
    }
    
    /* Stack sessions vertically on mobile only */
    .sessions-container {
        grid-template-columns: 1fr; /* Erst hier auf eine Spalte wechseln */
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .sessions-section {
        max-width: 100%;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .session-card {
        min-height: 240px; /* Kleinere Mindesthöhe auf Mobile */
        padding: 1rem;
    }
    
    .session-info-row {
        padding: 0.4rem 0;
    }
    
    .session-info-label,
    .session-info-value {
        font-size: 0.8rem;
    }
    
    .session-actions .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .session-card {
        padding: 1rem;
    }
    
    .session-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .session-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .session-title {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .session-title h3 {
        font-size: 1.1rem;
    }
    
    .session-code {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .session-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .quick-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .sessions-section h2 {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .member-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .member-option label {
        padding: 0.8rem 0.4rem;
    }
    
    .member-count {
        font-size: 1.5rem;
    }
    
    .step {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sync-session-list-container {
        padding: 0.5rem;
        margin: 0.5rem auto;
    }
    
    .list-header {
        margin-bottom: 2rem;
    }
    
    .list-header h1 {
        font-size: 1.8rem;
    }
    
    .list-header p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .sessions-section {
        margin-bottom: 2rem;
    }
    
    .sessions-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .session-card {
        padding: 0.8rem;
    }
    
    .session-header {
        gap: 0.6rem;
    }
    
    .session-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .session-title h3 {
        font-size: 1rem;
    }
    
    .session-role {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .session-code {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        letter-spacing: 1px;
        align-self: flex-start;
    }
    
    .session-info {
        gap: 0.4rem;
    }
    
    .session-info > div {
        font-size: 0.8rem;
    }
    
    .current-song {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .session-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .stat-card i {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 2rem;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
    
    .form-card, .info-card {
        padding: 1rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .form-header i {
        font-size: 2rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .member-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
    
    .member-option label {
        padding: 0.6rem 0.3rem;
    }
    
    .member-count {
        font-size: 1.3rem;
    }
    
    .member-label {
        font-size: 0.8rem;
    }
    
    .step {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .step-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step-content h4 {
        font-size: 0.9rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1401px) {
    .sync-session-list-container {
        max-width: 1200px;
        padding: 2rem 3rem;
    }
    
    .sessions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 250px);
        justify-content: center;
        gap: 1.5rem;
    }
    
    .list-header {
        margin-bottom: 4rem;
    }
    
    .sessions-section {
        margin-bottom: 4rem;
    }
}

/* Ultra-wide screen handling */
@media (min-width: 1921px) {
    .sync-session-list-container {
        max-width: 1400px;
    }
}

@media (max-width: 320px) {
    .sync-session-list-container {
        padding: 0.3rem;
    }
    
    .list-header h1 {
        font-size: 1.5rem;
    }
    
    .sessions-section h2 {
        font-size: 1.2rem;
    }
    
    .session-card {
        padding: 0.6rem;
    }
    
    .session-title h3 {
        font-size: 0.9rem;
    }
    
    .session-code {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .quick-actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Member Edit-Buttons */
.edit-member-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.6;
    margin-left: auto;
}

.edit-member-btn:hover {
    color: var(--primary-color);
    background-color: rgba(251, 191, 36, 0.1);
    opacity: 1;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.member-item:hover .edit-member-btn {
    opacity: 1;
}

.member-name {
    flex: 1;
}