
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray-color: #e9ecef;
    --border-radius: 10px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
    overflow-x: hidden;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.logo i {
    font-size: 1.8rem;
    margin-right: 10px;
    color: var(--accent-color);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    flex-grow: 1;
}

.header-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}


.tema-info {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.tema-title {
    text-align: center;
    margin-bottom: 30px;
}

.tema-title h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.subtitle {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.tema-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.goal-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.goal-card:nth-child(2) { animation-delay: 0.2s; }
.goal-card:nth-child(3) { animation-delay: 0.4s; }

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.goal-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.goal-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}


.tabs-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.tab-buttons {
    display: flex;
    overflow-x: auto;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-bottom: 1px solid var(--light-gray-color);
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.progress-indicator {
    background-color: var(--light-gray-color);
    height: 10px;
    width: 200px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    width: 0;
    transition: width 1.5s ease;
    border-radius: 5px;
}

.progress-indicator span {
    position: absolute;
    top: 15px;
    right: 0;
    font-size: 0.8rem;
    color: var(--gray-color);
}


.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}


.info-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.info-card:nth-child(2) { animation-delay: 0.1s; }
.info-card:nth-child(3) { animation-delay: 0.2s; }

.info-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-header i {
    font-size: 1.5rem;
}

.info-card-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.info-card-content {
    padding: 20px;
}

.info-card-content p {
    margin-bottom: 15px;
}

.info-card-content p:last-child {
    margin-bottom: 0;
}


.accordion {
    margin-bottom: 30px;
}

.accordion-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

.accordion-item:nth-child(2) { animation-delay: 0.1s; }
.accordion-item:nth-child(3) { animation-delay: 0.2s; }
.accordion-item:nth-child(4) { animation-delay: 0.3s; }

.accordion-header {
    padding: 15px 20px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.accordion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.1), transparent);
    transition: left 0.5s;
}

.accordion-header:hover::before {
    left: 100%;
}

.accordion-header:hover {
    background: linear-gradient(to right, #e9ecef, #dee2e6);
    transform: translateX(5px);
}

.accordion-header i:first-child {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.accordion-header span {
    flex-grow: 1;
}

.toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 20px;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 20px;
}


.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.4s ease forwards;
}

.feature-list li:nth-child(2) { animation-delay: 0.1s; }
.feature-list li:nth-child(3) { animation-delay: 0.2s; }
.feature-list li:nth-child(4) { animation-delay: 0.3s; }

.feature-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 3px;
}


.info-note {
    background-color: rgba(67, 97, 238, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 20px 0;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.6s ease forwards;
}

.info-note i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-note.warning {
    background-color: rgba(255, 209, 102, 0.1);
    border-left-color: var(--warning-color);
}

.info-note.warning i {
    color: var(--warning-color);
}

.info-note.danger {
    background-color: rgba(239, 71, 111, 0.1);
    border-left-color: var(--danger-color);
}

.info-note.danger i {
    color: var(--danger-color);
}


.simulator {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 0.6s ease forwards;
}

.simulator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.simulator-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.simulator-header h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.simulator-content {
    margin-bottom: 20px;
}

.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.simulator-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.simulator-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.simulator-btn:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.simulator-btn i {
    font-size: 1.2rem;
}


.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn i {
    margin-right: 8px;
}


.quick-test {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.test-question {
    margin-bottom: 20px;
}

.test-question h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.test-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.test-option:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.test-option input[type="radio"] {
    margin: 0;
}

.test-option span {
    flex-grow: 1;
}

.answer-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.answer-result.correct {
    background-color: rgba(6, 214, 160, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    opacity: 1;
    transform: translateY(0);
}

.answer-result.incorrect {
    background-color: rgba(239, 71, 111, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-controls {
        margin-top: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-indicator {
        width: 100%;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        justify-content: center;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}


body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-theme .tema-info,
body.dark-theme .tabs-container,
body.dark-theme .info-card,
body.dark-theme .accordion-item,
body.dark-theme .simulator,
body.dark-theme .quick-test {
    background-color: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .tab-buttons,
body.dark-theme .accordion-header {
    background: linear-gradient(to right, #2d2d2d, #3d3d3d);
}

body.dark-theme .tab-btn:hover,
body.dark-theme .accordion-header:hover {
    background-color: #4d4d4d;
}

body.dark-theme .test-option {
    background-color: #2d2d2d;
}

body.dark-theme .test-option:hover {
    background-color: #3d3d3d;
}

body.dark-theme .form-control {
    background-color: #2d2d2d;
    border-color: #4d4d4d;
    color: #e0e0e0;
}

body.dark-theme .info-note {
    background-color: rgba(67, 97, 238, 0.2);
}

body.dark-theme .info-note.warning {
    background-color: rgba(255, 209, 102, 0.2);
}

body.dark-theme .info-note.danger {
    background-color: rgba(239, 71, 111, 0.2);
}


@media print {
    body {
        background-color: white;
    }
    
    .page-container {
        padding: 0;
    }
    
    header, 
    .tab-buttons, 
    .control-btn, 
    .simulator-controls {
        display: none !important;
    }
    
    .tabs-container, 
    .info-card, 
    .accordion-item, 
    .simulator {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .accordion-content {
        max-height: none !important;
        padding: 20px !important;
    }
}