* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Segoe UI', Tahwoma, Geneva, Verdana, sans-serif; 
    background: #f4f7fc; 
    color: #1a202c; 
    padding: 40px;
}
header {
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}   
.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
h1 { font-size: 2.2rem; font-weight: 800; color: #002266; } 

.lang-select-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lang-select-box label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a5568;
}
.lang-dropdown {
    padding: 6px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid #cbd5e0;
    background: white;
    color: #2d3748;
    cursor: pointer;
}

.room-tag {
    background: #ffcc00; 
    color: #002266;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.filters-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-btn {
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn.active {
    background: #002266;
    color: white;
}
.main-layout { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.questions-section { width: 68%; min-width: 320px; }
.questions-section h2 { font-size: 1.5rem; margin-bottom: 8px; font-weight: 700; color: #2d3748;}
.reorder-help { font-size: 0.95rem; color: #4a5568; margin-bottom: 16px; }

.question-card { 
    background: #ffffff; 
    padding: 22px; 
    margin-bottom: 16px; 
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-left: 6px solid #002266;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeIn 0.4s ease;
}
.question-card.status-answered {
    border-left-color: #718096;
    opacity: 0.7; 
    background: #f8fafc;
}
.question-card.status-highlighted {
    border-left-color: #ffcc00;
    background: #fffdf5;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.15);
}
.question-card[draggable="true"] {
    cursor: move;
}
.question-card.dragging {
    opacity: 0.6;
    transform: scale(0.98);
}
.question-card.drag-over {
    border-left-color: #ffcc00;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}
.question-main-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 20px;
    flex-grow: 1;
}
.author-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.question-text { font-size: 1.15rem; color: #1a202c; line-height: 1.5; word-break: break-word; }
.likes-badge {
    background: #f0f4ff;
    color: #002266;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    border: 1px solid #b3ccff;
}
.card-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #edf2f7;
    padding-top: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.action-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-done { background: #bbf7d0; color: #14532d; }
.btn-done:hover { background: #86efac; }
.btn-project { background: #fef3c7; color: #78350f; }
.btn-project:hover { background: #fde68a; }
.btn-del { background: #fee2e2; color: #7f1d1d; }
.btn-del:hover { background: #fca5a5; }

.btn-restore { background: #e2e8f0; color: #1a202c; }
.btn-restore:hover { background: #cbd5e1; }
.status-label-done { font-size: 0.85rem; font-weight: 700; color: #4a5568; margin-right: 5px; }

.sidebar { 
    width: 28%; 
    min-width: 260px;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    height: fit-content;
}
.sidebar h3 { font-size: 1.3rem; margin-bottom: 20px; color: #002266; font-weight: 700; }
#qrcode { 
    padding: 10px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    min-height: 202px;
}
.sidebar-desc { 
    font-size: 0.9rem; 
    color: #4a5568; 
    max-width: 220px; 
    margin-top: 15px; 
    margin-bottom: 35px; 
    text-align: center;
    line-height: 1.4;
}
#deleteBtn { 
    background: #dc3545; 
    color: white; 
    border: none; 
    padding: 14px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 700; 
    width: 100%; 
    max-width: 200px;
    transition: all 0.2s;
    font-size: 0.95rem;
}
#deleteBtn:hover { background: #bd2130; }
.empty-state { color: #4a5568; font-size: 1.1rem; }

    .noscript-alert {
    background: #fff5f5;
    color: #c53030;
    padding: 15px;
    border: 2px solid #feb2b2;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.projection-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #002266; 
    color: white;
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    text-align: center;
}
.projection-content {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    max-width: 1200px;
    margin-bottom: 40px;
    word-break: break-word;
}
.projection-close {
    position: absolute;
    top: 30px; right: 40px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}
.projection-footer {
    font-size: 1.3rem;
    color: #ffcc00; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}