* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.atomic {
    color: white;
}

.quiz-builder {
    color: #4ECDC4;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}

.step-number.active {
    background: #4ECDC4;
    color: white;
}

.step-number.inactive {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.step-text {
    font-weight: 500;
}

.step-text.active {
    color: #4ECDC4;
}

.step-text.inactive {
    color: rgba(255, 255, 255, 0.7);
}

.config-panel {
    background: rgba(78, 205, 196, 0.2);
    border: 2px solid #4ECDC4;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.config-title {
    color: #4ECDC4;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.config-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 20px;
}

.config-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.config-tag {
    background: #4ECDC4;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.main-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    color: #333;
}

.content-title {
    color: black;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.content-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.study-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.study-option {
    border: 2px solid #4ECDC4;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.study-option:hover {
    background: rgba(78, 205, 196, 0.05);
    transform: translateY(-2px);
}

.study-option.selected {
    background: rgba(78, 205, 196, 0.1);
    border-color: #4ECDC4;
}

.study-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #4ECDC4;
}

.study-title {
    font-size: 20px;
    font-weight: 600;
    color: #4ECDC4;
    margin-bottom: 15px;
}

.study-list {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.study-list li {
    list-style: none;
    padding: 2px 0;
}

.study-list li:before {
    content: "• ";
    color: #4ECDC4;
    margin-right: 8px;
}

.recommendation {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    font-size: 12px;
    color: #2E7D32;
    display: flex;
    align-items: center;
}

.recommendation:before {
    content: "✓";
    background: #4CAF50;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 8px;
}

.mode-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.mode-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.mode-tab {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-tab.active {
    background: #4ECDC4;
    color: white;
}

.mode-tab:not(.active) {
    color: #666;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.subject-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.subject-card:hover {
    border-color: #4ECDC4;
    transform: translateY(-2px);
}

.subject-card.selected {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.05);
}

.subject-title {
    color: black;
    font-weight: 600;
    margin-bottom: 5px;
}

.subject-subtitle {
    font-size: 12px;
    color: #666;
}

.filter-section {
    text-align: center;
    margin-bottom: 30px;
}

.filter-title {
    color: black;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.filter-subtitle {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.filter-optional {
    color: #999;
    font-size: 12px;
}

.body-systems, #atomic-filter-by-subject, .categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.body-system {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.body-system:hover {
    background: #e0e0e0;
}

.body-system.selected {
    background: #4ECDC4;
    color: white;
}

.anesthesia-categories {
    margin-bottom: 30px;
}

#atomic-filter-by-subject .category-name{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-item:hover {
    background: #e0e0e0;
}

.category-item.selected {
    background: #4ECDC4;
    color: white;
}

#atomic-filter-by-subject .category-name.selected {
    background: #4ECDC4;
    color: white;
}

.refine-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.refine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 15px;
}

.refine-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ECDC4;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: #4ECDC4;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-switch.active::after {
    left: 22px;
}

.refine-content {
    display: none;
}

.refine-content.show {
    display: block;
}

.refine-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.suggested-topics {
    margin-bottom: 15px;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.topic-tag {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: #e0e0e0;
}

.topic-tag.selected {
    background: #4ECDC4;
    color: white;
}

.search-box {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-primary {
    background: #4ECDC4;
    color: white;
}

.btn-primary:hover {
    background: #45b7aa;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.question-option {
    text-align: center;
    padding: 30px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-option:hover {
    border-color: #4ECDC4;
    transform: translateY(-2px);
}

.question-option.selected {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.05);
}

.question-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.question-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.question-time {
    font-size: 12px;
    color: #666;
}

.exam-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.summary-section h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.summary-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.exam-instructions {
    background: #f0f7ff;
    border-left: 4px solid #2196f3;
    padding: 20px;
    margin-bottom: 30px;
}

.exam-instructions h4 {
    color: #1976d2;
    margin-bottom: 10px;
}

.exam-instructions ul {
    color: #1976d2;
    font-size: 14px;
}

.exam-instructions li {
    margin-bottom: 5px;
}

.question-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.question-progress {
    font-size: 14px;
    color: #666;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.6;
}

.answers-list {
    list-style: none;
}

.answer-option {
    margin-bottom: 12px;
}

.answer-option label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option label:hover {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.05);
}

.answer-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.question-navigation {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.system-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}