/* RSVP Local Styles */
.custom-select, .custom-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}
[data-theme="dark"] .custom-select, [data-theme="dark"] .custom-textarea {
    background: rgba(30, 30, 35, 0.8);
    border-color: rgba(255,255,255,0.1);
}

.settings-container {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .settings-container { border-color: rgba(255,255,255,0.05); }

.setting-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.app-container {
    width: 95%;
    max-width: 1000px;
    min-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 30px;
    margin: 40px auto;
}

.hidden { display: none !important; }

#pause-overlay {
    display: flex;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    transition: opacity 0.3s ease;
}
.screen.hidden { display: none !important; opacity: 0; }
.screen.active { display: flex; opacity: 1; }

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(70, 114, 48, 0.3);
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(70, 114, 48, 0.4); }
.btn.outline { background: transparent; color: var(--text-color); border: 2px solid rgba(0,0,0,0.1); box-shadow: none; }
[data-theme="dark"] .btn.outline { border-color: rgba(255,255,255,0.1); }
.btn.outline.active { border-color: var(--primary-color); color: var(--primary-color); background: rgba(70, 114, 48, 0.1); }
.btn.outline:hover { background: rgba(0,0,0,0.05); }
[data-theme="dark"] .btn.outline:hover { background: rgba(255,255,255,0.05); }

/* RSVP Word styling */
#rsvp-word-container {
    display: flex;
    white-space: pre;
}
.rsvp-letter {
    color: var(--text-color);
}
.rsvp-letter.focus {
    color: #E74C3C; /* Красный для фокуса */
}

/* Quiz styles */
.quiz-question {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .quiz-question { border-color: rgba(255,255,255,0.05); }
.quiz-question h3 { margin-bottom: 15px; font-size: 1.1rem; }

.quiz-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-family: inherit;
}
[data-theme="dark"] .quiz-option { border-color: rgba(255,255,255,0.1); }
.quiz-option:hover { background: rgba(0,0,0,0.05); }
[data-theme="dark"] .quiz-option:hover { background: rgba(255,255,255,0.05); }

.quiz-option.selected {
    border-color: var(--primary-color);
    background: rgba(70, 114, 48, 0.1);
}

.quiz-option.correct {
    border-color: #2ECC71 !important;
    background: rgba(46, 204, 113, 0.2) !important;
}
.quiz-option.wrong {
    border-color: #E74C3C !important;
    background: rgba(231, 76, 60, 0.2) !important;
}

.stat-box {
    text-align: center;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .stat-box { border-color: rgba(255,255,255,0.05); }

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .history-table { border-color: rgba(255,255,255,0.05); }

.history-table th,
.history-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .history-table th,
[data-theme="dark"] .history-table td { border-color: rgba(255,255,255,0.05); }

.history-table th {
    font-weight: 600;
    opacity: 0.8;
}

.history-table tr:last-child td {
    border-bottom: none;
}
