/* style.css */
:root {
    --primary-color: #d4f04d; /* Свеже-зеленый со скриншота */
    --primary-dark: #b8d43d;
    --bg-dark: #1e222a;
    --card-bg: #2a2e37;
    --text-main: #ffffff;
    --text-muted: #a0a4ab;
    --border-color: #3f444e;
    --success-color: #4cd964;
    --danger-color: #ff3b30;
    --light-bg: #f5f7fa;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: #333;
    margin: 0;
    padding: 0;
}

[v-cloak] { display: none; }

.main-wrapper {
    width: 100%;
}

.text-primary-custom {
    color: #000;
}

/* Quiz Styling */
.quiz-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

.bg-light-gray {
    background-color: #fcfdfe;
}

.alert-custom {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 4px solid #4caf50;
    font-size: 0.95rem;
}

.option-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e4e8;
    cursor: pointer;
    background: #fff;
}

.option-card:hover {
    border-color: var(--primary-color);
    background-color: #fafff0;
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: #fafff0;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.custom-radio.checkbox {
    border-radius: 4px;
}

.custom-radio.checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.custom-radio.checked::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-radio.checkbox.checked::after {
    border-radius: 1px;
    width: 10px;
    height: 5px;
    background: transparent;
    border-left: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translate(-50%, -70%) rotate(-45deg);
}

.btn-next {
    background-color: var(--primary-color);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 12px;
    transition: all 0.2s;
}

.btn-next:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-next:disabled {
    opacity: 0.5;
}

.btn-back {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-weight: 600;
    padding: 14px 25px;
    border-radius: 12px;
}

.border-dashed {
    border-style: dashed !important;
}

/* Circular Progress */
.circular-progress {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.inner-circle {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Results Screen */
.results-screen {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 60px 40px 100px;
    min-height: 100vh;
}

.country-flag {
    width: 48px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.country-card {
    background-color: var(--card-bg) !important;
    color: #fff !important;
    border-radius: 20px;
}

.badge-custom {
    background-color: rgba(255,255,255,0.08);
    color: #e0e0e0;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}

.divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 1;
}

.chance-item {
    text-align: right;
}

/* Scales */
.scale-visual {
    height: 8px;
    position: relative;
    margin-top: 25px;
}

.scale-track {
    height: 100%;
    width: 100%;
    background: #3f444e;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
}

.scale-pin {
    position: absolute;
    top: -15px;
    transform: translateX(-50%);
    z-index: 10;
}

.pin-marker {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--primary-color);
}

.segment-tuition { background-color: #4b89dc; }
.segment-apartments { background-color: #3bafda; }
.segment-life { background-color: #48cfad; }
.segment-required { background-color: #4b89dc; }

.legend-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.legend-row.indented {
    padding-left: 20px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
}

.dot-user { background-color: var(--primary-color); }
.dot-tuition { background-color: #4b89dc; }
.dot-apartments { background-color: #3bafda; }
.dot-life { background-color: #48cfad; }
.dot-required { background-color: #4b89dc; }

.legend-label { color: var(--text-muted); }

/* Custom Scrollbar for Results */
.results-screen::-webkit-scrollbar {
    width: 8px;
}
.results-screen::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
.results-screen::-webkit-scrollbar-thumb {
    background: #3f444e;
    border-radius: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .results-screen {
        padding: 30px 15px;
    }
    .country-name {
        font-size: 1.8rem;
    }
    .country-flag {
        width: 36px;
        margin-right: 0.75rem !important;
    }
    .chances-display {
        width: 100%;
        justify-content: space-between;
    }
    .quiz-card .p-md-5 {
        padding: 1.5rem !important;
    }

    .badge-custom {
        padding: 6px 12px;
        font-size: 0.75rem;
    }


}

/* Footer Buttons */
.card-footer-custom {
    padding: 24px 48px;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-s {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary-s {
    background-color: var(--primary-color);
    color: #000;
    border: none;
}

.btn-primary-s:hover {
    background-color: var(--primary-dark);
    color: #000;
}

.btn-secondary-s {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-s:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .card-footer-custom {
        padding: 20px 24px;
    }
}
