:root {
    --primary-color: #e5bd59;
    --secondary-color: #d1aa45;
    --success-color: #e5bd59;
    --background-color: #0f172a;
    --text-color: #e2e8f0;
    --card-bg: #1e293b;
}

body {
    color: var(--text-color);
}

.question-card, .result-card {
    background: var(--card-bg);
    color: var(--text-color);
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: var(--card-bg);
    z-index: -1;
}

.footer img {
    height: 40px;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
}

body {
    min-height: 100vh;
    max-height: 100vh;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container-fluid {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-screen, .quiz-container, .result-container {
    max-width: 600px;
    width: 95%;
    margin: auto;
    padding: 0.5rem;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.start-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.question-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
}

.question-card .btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

.question-card .btn-primary:hover {
    background: var(--secondary-color);
    color: white;
}

.range-container {
    margin: 2rem 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.question-card .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.question-card .btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.progress {
    height: 1rem;
    border-radius: 0.5rem;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.score-circle {
    width: clamp(90px, 25vw, 120px);
    height: clamp(90px, 25vw, 120px);
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0.75rem auto;
    box-shadow: 0 4px 15px rgba(229, 189, 89, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.percentage {
    font-size: 3rem;
    font-weight: bold;
}

.score-label {
    font-size: 1.2rem;
}

.result-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: auto;
    max-height: 100%;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
}

.share-buttons .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.share-buttons .btn-social i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.share-buttons .btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-linkedin {
    background-color: #0077b5;
}

.btn-twitter {
    background-color: #1da1f2;
}

.btn-facebook {
    background-color: #3b5998;
}

.btn-social:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-dark {
    color: #1a1a1a !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.range-container {
    margin: 2rem 0;
}

input[type="range"] {
    height: 8px;
    -webkit-appearance: none;
    background: transparent;
    margin: 20px 0;
    width: 100%;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    border: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: -6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

input[type="range"]:focus {
    outline: none;
}

.range-labels {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 10px;
}

@media (max-width: 576px) {
    .welcome-screen, .quiz-container, .result-container {
        padding: 0.5rem;
        height: 100vh;
        justify-content: flex-start;
        padding-top: 1rem;
    }
    
    .result-card {
        padding: 0.75rem;
        margin: 0;
        height: auto;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }

    .percentage {
        font-size: 2rem;
    }

    .score-label {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem !important;
    }

    h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem !important;
        line-height: 1.3;
    }

    p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem !important;
        line-height: 1.4;
    }

    .share-buttons {
        margin: 0.75rem 0 !important;
        gap: 0.35rem;
    }

    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .btn-social {
        padding: 0.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    .result-message {
        margin-bottom: 0.75rem;
    }

    .result-container .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.5rem !important;
    }
}