/* Custom styles for Social Styles Assessment */

/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    background-color: #f8f9fa;
}

/* Header and navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #0d6efd !important;
}

.nav-link {
    font-weight: 500;
    color: #495057 !important;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0.375rem;
}

.nav-link.active {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

.navbar-toggler {
    border-color: rgba(13, 110, 253, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Cards */
.card {
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    border-top-left-radius: 0.375rem !important;
    border-top-right-radius: 0.375rem !important;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Assessment form */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Results page */
.display-4 {
    font-weight: 700;
    color: #0d6efd;
}

/* Social styles colors */
.driver-color {
    color: #dc3545;
}

.expressive-color {
    color: #ffc107;
}

.amiable-color {
    color: #198754;
}

.analytical-color {
    color: #0d6efd;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
    color: #6c757d;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .paired-opposites-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .rating-scale-modern {
        width: 100%;
        margin: 20px 0;
        min-height: 60px; /* Ensure consistent height */
        position: relative;
    }
    
    .rating-line {
        top: 50%; /* Ensure line is centered vertically */
    }
    
    .rating-options {
        justify-content: space-between; /* Even spacing on mobile */
        width: 100%;
    }
    
    .characteristic-box {
        width: 100%;
        margin: 0;
        text-align: center; /* Center text on mobile */
        position: relative;
    }
    
    /* Add indicators to connect characteristics to scale ends */
    .characteristic-box:first-child::after {
        content: "1";
        position: absolute;
        bottom: -18px;
        left: 20px;
        width: 18px;
        height: 18px;
        background-color: #dee2e6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: bold;
        color: #495057;
    }
    
    .characteristic-box:last-child::after {
        content: "4";
        position: absolute;
        bottom: -18px;
        right: 20px;
        width: 18px;
        height: 18px;
        background-color: #dee2e6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: bold;
        color: #495057;
    }
    
    /* Add arrows connecting characteristics to scale ends */
    .paired-opposites-container::before {
        content: "←";
        position: absolute;
        font-size: 1.2rem;
        color: #6c757d;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    
    .paired-opposites-container::after {
        content: "→";
        position: absolute;
        font-size: 1.2rem;
        color: #6c757d;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    
    .question-card {
        padding: 1rem;
        position: relative;
    }
    
    .question-card::after {
        content: "";
        display: block;
        width: 60%;
        height: 1px;
        background-color: #e9ecef;
        margin: 15px auto 5px;
    }
    
    .question-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Add a helpful label for mobile users */
    .mobile-scale-label {
        text-align: center;
        font-size: 0.8rem;
        color: #6c757d;
        margin: 5px 0 15px;
        font-style: italic;
    }
    
    .scale-circle, .rating-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin: 0 auto; /* Center the circle */
    }
    
    .scale-label {
        font-size: 0.75rem;
    }
    
    .question-number-circle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Modern Assessment Styles */
.assessment-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.assessment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.bg-gradient-primary {
    background: #0d6efd;
}

.bg-gradient-success {
    background: #198754;
}

/* Modern Question Card Styles */
.question-card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.question-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.question-card.answered {
    border-left: 4px solid #0d6efd;
}

.question-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.question-number-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 0.125rem 0.25rem rgba(13, 110, 253, 0.3);
    margin-bottom: 0.75rem;
}

.question-title {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0;
}

.question-content {
    padding: 0.5rem 0;
}

.paired-opposites-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.characteristic-box {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    color: #495057;
    flex: 0 0 auto;
    margin: 0 10px;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.characteristic-box:hover {
    background-color: #e9ecef;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Scale container in instructions */
.scale-container {
    margin: 20px 0;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1.25rem;
    border: 1px solid #dee2e6;
}

.scale-line-container {
    position: relative;
    padding: 30px 0 10px;
}

.scale-line-modern {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, #dee2e6, #0d6efd, #dee2e6);
    left: 0;
    right: 0;
    top: 18px; /* Align with the center of the circles */
}

.scale-points-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.scale-point-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.scale-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 8px;
}

.scale-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    max-width: 100px;
    margin-top: 0.5rem;
    line-height: 1.2;
}

/* Modern Rating Scale */
.rating-scale-modern {
    flex-grow: 1;
    position: relative;
    margin: 0 20px;
    padding: 20px 0;
    min-width: 300px;
}

.rating-line {
    position: absolute;
    height: 2px;
    background-color: #0d6efd;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 0;
}

.rating-options {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.rating-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.rating-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.rating-input:checked + .rating-label .rating-circle {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.3);
}

.rating-option:hover .rating-circle {
    border-color: #0d6efd;
    transform: scale(1.05);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-card {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

/* Bootstrap-like utility classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
} 