/* ============================================================
   PBL Multiplayer Styles
   Extracted from style.css without selector renames.
   ============================================================ */

/* ===================================
   MULTIPLAYER PBL STYLES
   =================================== */

/* Modal Header Overrides for Multiplayer Modals */
.multiplayer-mode-modal .modal-header,
.join-session-modal .modal-header {
    text-align: center;
    flex-direction: column;
    align-items: center;
}

/* Override: Create Session Modal header should be centered */
.create-session-modal .modal-header {
    text-align: center !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fade-in animation for modal */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.confirmation-modal.multiplayer-mode-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.multiplayer-mode-modal .modal-header {
    text-align: center;
    padding: 1.5rem 2.5rem 0.5rem;
    border-bottom: none;
}

.multiplayer-mode-modal .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.multiplayer-mode-modal .modal-header p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.join-session-modal .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.join-session-modal .modal-header p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.multiplayer-mode-modal .modal-body {
    padding: 1.5rem 2.5rem;
}

.multiplayer-options {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.multiplayer-option-btn {
    flex: 1;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.multiplayer-option-btn:hover {
    transform: translateY(-6px);
    background-color: #ffffff;
    border-color: var(--hover-border-color, #dee2e6);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.multiplayer-option-btn .option-icon {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease-in-out;
}

.multiplayer-option-btn:hover .option-icon {
    transform: scale(1.05);
}

.multiplayer-option-btn .option-icon svg {
    width: 24px;
    height: 24px;
}

/* Create Card Specific Styles */
.create-session-card {
    --hover-border-color: #bde0ff;
    background-color: #f8fcff;
    border: 1px solid #eaf6ff;
}
.create-session-card .option-icon {
    background-color: #eaf6ff;
    color: #339af0;
}
.create-session-card:hover .option-icon {
    background-color: #339af0;
    color: #fff;
}

/* Join Card Specific Styles */
.join-session-card {
    --hover-border-color: #b6f2e9;
    background-color: #f7fefd;
    border: 1px solid #e8fbf8;
}
.join-session-card .option-icon {
    background-color: #e8fbf8;
    color: #20c997;
}
.join-session-card:hover .option-icon {
    background-color: #20c997;
    color: #fff;
}

.multiplayer-option-btn h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.multiplayer-option-btn p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    max-width: 200px;
}


/* Modal Footer Centering for Multiplayer Modals */
.multiplayer-mode-modal .modal-footer,
.join-session-modal .modal-footer {
    padding: 0 2.5rem 2rem;
    border-top: none;
    justify-content: center;
}

.multiplayer-mode-modal .modal-footer .modal-footer-btn {
    background-color: #f5f7fa;
    color: #2c3e50;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: none;
}

.multiplayer-mode-modal .modal-footer .modal-footer-btn:hover {
    background-color: #e8ecf1;
    color: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.multiplayer-mode-modal .modal-footer .modal-footer-btn:active {
    transform: scale(0.98);
    box-shadow: none;
    background-color: #dde2e8;
}

/* Create Session Modal - Two Column Layout */
.create-session-modal {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
}

.create-session-modal .modal-header {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: row;
}

.create-session-modal .modal-header h2 {
    margin: 0; 
    font-size: 1.35rem;
    font-weight: 500;
}

.create-session-modal .modal-body-container {
    display: flex;
}

.create-session-modal .modal-body-left {
    width: 40%;
    padding: 2rem;
    background-color: white;
    border-right: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
    text-align: left;
}

.create-session-modal .modal-body-right {
    width: 60%;
    padding: 2rem;
}

.create-session-modal .case-info {
    text-align: left;
}

.create-session-modal .case-info h3 {
    font-size: 1.15rem;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    text-align: left;
}

.create-session-modal .case-info h3 svg {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.create-session-modal .case-details {
    text-align: left;
}

.create-session-modal .case-details .case-name {
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
    text-align: left;
}

.create-session-modal .case-details .info-text {
    font-size: 0.9rem; 
    color: var(--text-secondary); 
    line-height: 1.5;
    text-align: left;
}

.create-session-modal .info-text .info-item {
    display: flex;
    align-items: center;
    margin: 0 0 1rem 0;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    text-align: left;
}

.create-session-modal .info-text .info-item span {
    flex: 1;
    line-height: 1.4;
}

.create-session-modal .info-text .info-item:hover {
    transform: translateY(-2px);
    border-color: #cdd2d6;
}

.create-session-modal .info-text .info-item.students {
    background-color: rgba(var(--success-color-rgb), 0.05);
    border-color: rgba(var(--success-color-rgb), 0.2);
}

.create-session-modal .info-text .info-item.participants {
    background-color: rgba(var(--info-color-rgb), 0.05);
    border-color: rgba(var(--info-color-rgb), 0.2);
}

.create-session-modal .info-text .info-item .icon-wrapper {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin-right: 1rem;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-session-modal .info-text .info-item.students .icon-wrapper {
    background-color: rgba(var(--success-color-rgb), 0.1);
}

.create-session-modal .info-text .info-item.participants .icon-wrapper {
    background-color: rgba(var(--info-color-rgb), 0.1);
}

.create-session-modal .info-text .info-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.create-session-modal .info-text .info-item.students svg {
    color: var(--success-color);
}

.create-session-modal .info-text .info-item.participants svg {
    color: var(--info-color);
}

.create-session-modal .settings-section h3 {
    font-size: 1.1rem;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.create-session-modal .settings-section h3 svg {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.create-session-modal .settings-grid {
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}

.create-session-modal .setting-item {
    /* Override old styles */
    background: transparent;
    padding: 0;
    border: none;
}

.create-session-modal .setting-item label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.create-session-modal .setting-item label svg {
    margin-right: 0.5rem;
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.create-session-modal .setting-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.create-session-modal .slider-value {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.create-session-modal .slider-value span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.create-session-modal .timeout-slider {
    width: 100%;
    height: 18px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.create-session-modal .timeout-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: -6px;
}

.create-session-modal .timeout-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.2);
}

.create-session-modal .timeout-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.create-session-modal .timeout-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.2);
}

.create-session-modal .timeout-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
}

.create-session-modal .timeout-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
}

.create-session-modal .modal-footer {
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.create-session-modal #cancel-create-session {
    background-color: #f5f7fa;
    color: #2c3e50;
    margin-right: 0.75rem;
}

.create-session-modal #cancel-create-session:hover {
    background-color: #e8ecf1;
    color: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.create-session-modal #cancel-create-session:active {
    transform: scale(0.98);
    box-shadow: none;
    background-color: #dde2e8;
}

/* Join Session Modal */
.join-session-modal #session-code-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.join-session-modal #session-code-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.join-session-modal #session-code-input::placeholder {
    color: #c0c0c0;
    opacity: 1;
}

/* Session Details Modal - Compact Grid Layout with Visual Hierarchy */
.session-details-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 750px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    --primary-color: #4285f4;
    --bg-secondary: #f8f9fa;
    --border-color: #dadce0;
}

.session-details-modal .modal-header {
    padding: 1.5rem 2rem;
    text-align: center;
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: block;
    justify-content: unset;
}

.session-details-modal .modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.session-details-modal .modal-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.session-details-modal .session-code-corner {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.session-details-modal .code-corner-label {
    color: var(--text-secondary);
}

.session-details-modal .code-corner-value {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.session-details-modal .modal-body {
    padding: 2rem;
}

.session-details-modal .info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.session-details-modal .info-tile {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.session-details-modal .info-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #b0b3b8;
}

.session-details-modal .info-tile.case {
    background-color: rgba(251, 188, 4, 0.03);
    border-color: rgba(251, 188, 4, 0.15);
}

.session-details-modal .info-tile.status {
    background-color: rgba(52, 168, 83, 0.03);
    border-color: rgba(52, 168, 83, 0.15);
}

.session-details-modal .info-tile.participants {
    background-color: rgba(66, 133, 244, 0.03);
    border-color: rgba(66, 133, 244, 0.15);
}

.session-details-modal .tile-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
}

.session-details-modal .info-tile.case .tile-icon {
    background-color: rgba(251, 188, 4, 0.06);
    border-color: rgba(251, 188, 4, 0.2);
}

.session-details-modal .info-tile.status .tile-icon {
    background-color: rgba(52, 168, 83, 0.06);
    border-color: rgba(52, 168, 83, 0.2);
}

.session-details-modal .info-tile.participants .tile-icon {
    background-color: rgba(66, 133, 244, 0.06);
    border-color: rgba(66, 133, 244, 0.2);
}

.session-details-modal .tile-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.session-details-modal .info-tile.case svg {
    color: #d4a400;
}

.session-details-modal .info-tile.status svg {
    color: #2d8f3f;
}

.session-details-modal .info-tile.participants svg {
    color: #5f8dcc;
}

.session-details-modal .tile-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.session-details-modal .tile-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}

.session-details-modal .info-tile.case .tile-value {
    color: #d4a400;
}

.session-details-modal .info-tile.status .tile-value {
    color: #2d8f3f;
}

.session-details-modal .info-tile.participants .tile-value {
    color: #5f8dcc;
}

.session-details-modal .settings-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.session-details-modal .section-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 1.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.session-details-modal .settings-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.session-details-modal .setting-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session-details-modal .setting-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-details-modal .setting-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.session-details-modal .setting-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.session-details-modal .setting-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.session-details-modal .setting-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.session-details-modal .modal-footer {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    gap: 0.75rem;
}

.session-details-modal .btn {
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.session-details-modal .btn-secondary {
    background-color: #f5f7fa;
    color: #2c3e50;
}

.session-details-modal .btn-secondary:hover {
    background-color: #e8ecf1;
    color: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.session-details-modal .btn-secondary:active {
    transform: scale(0.98);
    box-shadow: none;
    background-color: #dde2e8;
}

.session-details-modal .btn-primary {
    background: var(--primary-color);
    color: white;
}

.session-details-modal .btn-primary:hover {
    background: #004494;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

.session-details-modal .btn-primary:active {
    transform: scale(0.98);
    box-shadow: none;
    background: #003a7a;
}

/* Waiting Room Modal */
.waiting-room-modal {
    background: #FFFFFF !important;
    border-radius: 10px !important;
    max-width: 638px !important;
    width: 100% !important;
    max-height: 76.5vh !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
}

.wr-modal-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--wr-border-color);
    background: var(--wr-bg-primary);
    flex-shrink: 0;
}

.wr-modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wr-text-primary);
    margin-bottom: 0.25rem;
    margin: 0;
}

.wr-modal-header p {
    font-size: 0.8rem;
    color: var(--wr-text-secondary);
    margin: 0.25rem 0 0 0;
}

.wr-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.wr-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--wr-primary-light);
    border: 1px solid #DBEAFE;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.wr-code-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wr-code-wrapper {
    display: flex;
    flex-direction: column;
}

.wr-code-label {
    font-size: 0.7rem;
    color: var(--wr-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.wr-session-code {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wr-primary-color);
    letter-spacing: 0.2em;
}

.wr-copy-btn {
    padding: 0.5rem 1rem;
    background: var(--wr-primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.wr-copy-btn:hover {
    background: #004494;
}

.wr-stats-inline {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.wr-stat-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wr-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wr-text-primary);
    margin-bottom: 0.125rem;
}

.wr-stat-label {
    font-size: 0.7rem;
    color: var(--wr-text-secondary);
    text-transform: uppercase;
    font-weight: 500;
}

.wr-divider {
    width: 1px;
    height: 30px;
    background: var(--wr-border-color);
}

.wr-section-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wr-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wr-info-banner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: var(--wr-bg-secondary);
    border: 1px solid var(--wr-border-color);
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--wr-text-secondary);
}

.wr-info-banner svg {
    flex-shrink: 0;
    color: var(--wr-text-secondary);
    opacity: 0.7;
}

.wr-participants-list {
    display: grid;
    gap: 0.625rem;
}

.wr-participant-card {
    background: white;
    border: 1px solid var(--wr-border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.wr-participant-card:hover {
    border-color: var(--wr-primary-color);
    box-shadow: 0 1px 4px rgba(0, 102, 204, 0.1);
}

.wr-participant-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wr-primary-color), #0088FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.wr-participant-avatar.wr-avatar-ai {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
}

.wr-participant-avatar.wr-avatar-empty {
    background: var(--wr-bg-secondary);
    color: var(--wr-text-secondary);
    border: 2px dashed var(--wr-border-color);
}

.wr-participant-avatar.wr-avatar-standby {
    opacity: 0.3;
    position: absolute;
    right: -8px;
    bottom: -4px;
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wr-empty-slot {
    border-style: dashed;
    background: transparent;
    opacity: 0.7;
}

.wr-empty-slot-avatars {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.wr-participant-info {
    flex: 1;
    min-width: 0;
}

.wr-participant-name {
    font-weight: 600;
    color: var(--wr-text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.wr-participant-status {
    font-size: 0.7rem;
    color: var(--wr-success-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wr-status-dot {
    width: 5px;
    height: 5px;
    background: var(--wr-success-color);
    border-radius: 50%;
    animation: wr-status-pulse 2s infinite;
}

@keyframes wr-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wr-role-tag {
    background: var(--wr-bg-secondary);
    color: var(--wr-text-secondary);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.wr-modal-footer {
    padding: 1.25rem 2rem;
    background: var(--wr-bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--wr-border-color);
    flex-shrink: 0;
}

.wr-footer-note {
    font-size: 0.75rem;
    color: var(--wr-text-secondary);
}

.wr-footer-actions {
    display: flex;
    gap: 0.75rem;
}

.wr-btn {
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--font-family);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.wr-btn-secondary {
    background: #f5f7fa;
    color: #2c3e50;
}

.wr-btn-secondary:hover {
    background: #e8ecf1;
    color: #1a252f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.wr-btn-secondary:active {
    transform: scale(0.98);
    box-shadow: none;
    background: #dde2e8;
}

.wr-btn-primary {
    background: var(--wr-success-color);
    color: white;
}

.wr-btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
}

.wr-btn-primary:active {
    transform: scale(0.98);
    box-shadow: none;
    background: #047857;
}

/* Copy Code Button Animation */
.wr-copy-btn.copied {
    background: #28a745 !important;
    animation: copySuccess 0.3s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* Responsive Design */
@media (max-width: 768px) {
    .multiplayer-mode-modal .multiplayer-options {
        flex-direction: column;
        gap: 1rem;
    }

    .multiplayer-option-btn {
        padding: 2rem 1.5rem;
    }

    .create-session-modal .modal-body-container {
        flex-direction: column;
    }

    .create-session-modal .modal-body-left,
    .create-session-modal .modal-body-right {
        width: 100%;
        border-right: none;
        border-bottom-left-radius: 0;
    }

    .create-session-modal .modal-body-left {
        border-bottom: 1px solid var(--border-color);
    }

    .create-session-modal .settings-grid {
        grid-template-columns: 1fr;
    }

    .session-details-modal .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .session-details-modal .settings-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .session-details-modal .session-code-corner {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .wr-info-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .wr-code-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wr-session-code {
        font-size: 1rem;
    }

    .wr-stats-inline {
        justify-content: center;
    }

    .wr-modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .wr-footer-note {
        text-align: center;
    }

    .wr-footer-actions {
        flex-direction: column;
    }

    #start-pbl-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    #start-solo-pbl-btn,
    #multiplayer-pbl-btn {
        max-width: 100%;
        padding: 1rem 1.5rem;
    }
}

/* Enhanced Input Styling */
.timeout-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeout-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.timeout-input:hover {
    border-color: var(--primary-color);
}

/* Pass Message Styling */
.pass-message {
    background: none !important;
    color: #888 !important;
    text-align: center;
    font-style: normal;
    padding: 4px 0;
    border-radius: 0;
    font-size: 0.85em;
    margin: 4px auto;
    box-shadow: none;
}

.pass-icon {
    display: none;
}

/* Animation for passed character on roundtable */
@keyframes pass-pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

.character.passed-animation {
    animation: pass-pulse 1.5s ease-out;
}

/* Start PBL container buttons */
#start-pbl-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
    padding: 0 1rem;
}

#start-solo-pbl-btn,
#multiplayer-pbl-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-family);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: none;
    flex: 1;
    max-width: 280px;
}

#start-solo-pbl-btn {
    background: var(--primary-color);
    color: white;
}

#start-solo-pbl-btn:hover {
    background: #004494;
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
    transform: translateY(-1px);
}

#start-solo-pbl-btn:active {
    transform: scale(0.98);
    box-shadow: none;
    background: #003a7a;
}

#multiplayer-pbl-btn {
    background: #f5f7fa;
    color: #2c3e50;
    border: none;
}

#multiplayer-pbl-btn:hover {
    background: #e8ecf1;
    color: #1a252f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

#multiplayer-pbl-btn:active {
    transform: scale(0.98);
    box-shadow: none;
    background: #dde2e8;
}

/* Ready button styling */
#ready-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 280px;
    background: var(--primary-color);
    color: white;
}

#ready-button:hover:not(:disabled) {
    background: #5a75d6;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

#ready-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

#ready-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Pass status indicator - Glass Morphism Design */
#pass-status-indicator {
    position: fixed;
    top: 160px;
    right: 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    cursor: move;
    user-select: none;
    max-width: 220px;
    width: 100%;
    z-index: 100;
    animation: fadeInScale 0.3s ease-out;
}

/* Ready status indicator - Same styling as pass status indicator */
#ready-status-indicator {
    position: fixed;
    top: 160px;
    right: 40px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    cursor: move;
    user-select: none;
    max-width: 220px;
    width: 100%;
    z-index: 100;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#pass-status-indicator .timer-section {
    text-align: center;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#pass-status-indicator .timer-main {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

#pass-status-indicator .timer-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

#pass-status-indicator .participants {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#pass-status-indicator .participant-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none !important;
    outline: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#pass-status-indicator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#pass-status-indicator .status-dot.checked {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

#pass-status-indicator .status-dot.unchecked {
    background: transparent;
    border: 1.5px solid #d1d5db;
}

#pass-status-indicator .participant-name {
    flex: 1;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    border: none !important;
    outline: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#pass-status-indicator .participant-row.passed .participant-name {
    opacity: 0.5;
    text-decoration: line-through;
}

#pass-status-indicator .summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 500;
}

#pass-status-indicator .summary strong {
    color: #374151;
    font-weight: 600;
}

/* Ready status indicator child elements - Same styling as pass status indicator */
#ready-status-indicator .timer-section {
    text-align: center;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#ready-status-indicator .timer-main {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

#ready-status-indicator .timer-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

#ready-status-indicator .participants {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#ready-status-indicator .participant-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none !important;
    outline: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#ready-status-indicator .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#ready-status-indicator .status-dot.checked {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

#ready-status-indicator .status-dot.unchecked {
    background: transparent;
    border: 1.5px solid #d1d5db;
}

#ready-status-indicator .participant-name {
    flex: 1;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
    border: none !important;
    outline: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#ready-status-indicator .participant-row.passed .participant-name {
    opacity: 0.5;
    text-decoration: line-through;
}

#ready-status-indicator .summary {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 500;
}

#ready-status-indicator .summary strong {
    color: #374151;
    font-weight: 600;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all 0.15s ease;
    vertical-align: middle;
    position: relative;
}

.info-icon:hover {
    opacity: 1;
    color: var(--primary-color);
}

.info-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.info-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    transform: none;
    padding: 6px 10px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    max-width: min(300px, calc(100vw - 20px));
    width: max-content;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1000;
    box-sizing: border-box;
}

.info-icon[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.05s;
}

/* Arrow for tooltip */
.info-icon[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 7px;
    bottom: calc(100% + 2px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1001;
}

.info-icon[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.05s;
}

.tooltip-container:hover .info-icon {
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    border-radius: 6px;
    width: max-content;
    max-width: 280px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


.multiplayer-mode-modal {
    max-width: 578px !important;
}

.create-session-modal {
    max-width: 723px !important;
}

.join-session-modal {
    max-width: 468px !important;
}
