
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Akatab', sans-serif;
    background: #1d1d1d;
    min-height: 90vh;
    padding: 15px;
}

#navigation {
    background: #2a2a2a;
    padding: 8px 20px;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 45px;
    cursor: pointer;
}

#main {
    max-width: 800px;
    margin: 0 auto;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#quiz-title h1 {
    font-size: 2.5em;
    color: #E8B991;
    margin-bottom: 8px;
    font-weight: 900;
}

#quiz-title p {
    color: #b8b8b8;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.question-card {
    background: #353535;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #E8B991;
}

.question-text {
    font-size: 1.2em;
    font-weight: 700;
    color: #E8B991;
    margin-bottom: 12px;
}

.answer-option {
    background: #2a2a2a;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 6px;
    border: 2px solid #404040;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: #d0d0d0;
}

.answer-option:hover {
    border-color: #E8B991;
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(232, 185, 145, 0.3);
}

.answer-option.selected {
    background: #E8B991;
    color: #1d1d1d;
    border-color: #E8B991;
}

.answer-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.btn {
    background: #E8B991;
    color: #1d1d1d;
    border: none;
    padding: 10px 25px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Akatab', sans-serif;
    margin-top: 15px;
}

.btn:hover {
    background: #d4a574;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 185, 145, 0.4);
}

.btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

#quiz-results {
    text-align: center;
}

.result-card {
    background: linear-gradient(135deg, #E8B991 0%, #d4a574 100%);
    color: #1d1d1d;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
}

.results-breakdown {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.results-breakdown h3 {
    color: #E8B991;
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.result-row {
    background: #353535;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #404040;
    transition: all 0.25s ease;
}

.result-row:last-child {
    margin-bottom: 0;
}
.result-row-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.result-row-title {
    color: #E8B991;
    font-weight: 700;
    font-size: 1em;
}

.result-row-meta {
    color: #b8b8b8;
    font-size: 0.85em;
    font-weight: 600;
}

.result-row.is-user-result {
    background: rgba(232, 185, 145, 0.15);
    border-left-color: #E8B991;
}

.result-row.is-user-result .result-row-title {
    color: #ffd9b0;
}

.result-row.is-user-result .progress-fill {
    box-shadow: 0 0 8px rgba(232, 185, 145, 0.8);
}

.result-title {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 15px;
}

.result-description {
    font-size: 1em;
    line-height: 1.3;
    margin-bottom: 25px;
}

.stats-container {
    background: rgba(29, 29, 29, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.stat-item {
    display: inline-block;
    margin: 8px 15px;
}

.stat-number {
    font-size: 2em;
    font-weight: 900;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
}

.storage-notice {
    background: #353535;
    border-left: 4px solid #E8B991;
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 0.9em;
    color: #b8b8b8;
}

.error-notice {
    background: #4a2020;
    border-left: 4px solid #c84040;
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 0.9em;
    color: #ffb8b8;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.share-buttons button {
    background: #2a2a2a;
    color: #E8B991;
    padding: 10px 20px;
    border-radius: 6px;
    border: 2px solid #E8B991;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-family: 'Akatab', sans-serif;
}

.share-buttons button:hover {
    background: #E8B991;
    color: #1d1d1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 185, 145, 0.3);
}

.result-image {
    width: 100%;
}

#quiz-selector {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.quiz-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #404040;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(232, 185, 145, 0.2);
    border-color: #E8B991;
}

.quiz-card h3 {
    color: #E8B991;
    font-size: 1.5em;
    margin-bottom: 8px;
    font-weight: 800;
}

.quiz-card p {
    color: #b8b8b8;
    line-height: 1.5;
}

.quiz-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #404040;
    font-size: 0.8em;
    color: #888;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #404040;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar.small {
    height: 8px;
    margin: 6px 0 0;
    background: #404040;
}

.progress-fill {
    height: 100%;
    background: #E8B991;
    transition: width 0.3s ease;
}

.hidden {
    display: none;
}

.loading {
    color: #E8B991;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    #main {
        padding: 18px;
    }

    #quiz-title h1 {
        font-size: 1.8em;
    }

    .result-title {
        font-size: 1.8em;
    }

    #quiz-selector {
        grid-template-columns: 1fr;
    }
}