/* styles.css */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap');

/* Global Styles */
body {
    font-family: 'Nunito Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light gray background */
    color: #212529; /* Dark text color */
}

/* Container */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    max-height: 60px;
}

.language-selector {
    margin-left: auto;
}

.language-selector select {
    padding: 5px;
    border-radius: 5px;
    font-size: 1em;
}

/* Adjust language selector for RTL */
body[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: auto;
}

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px); /* Adjust based on header height */
    position: relative;
    overflow: hidden;
}

/* Abstract Medical Background */
.abstract-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f7fa 25%, #80deea 25%, #80deea 50%, #e0f7fa 50%, #e0f7fa 75%, #80deea 75%, #80deea 100%);
    background-size: 56.57px 56.57px;
    z-index: -1;
}

.abstract-background::before,
.abstract-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
}

.abstract-background::before {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
    top: 20%;
    left: 15%;
}

.abstract-background::after {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 60%);
    bottom: 10%;
    right: 20%;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-section h1 {
    color: #002147; /* Dark blue */
    font-size: 2.5em;
    margin-bottom: 20px;
}

.welcome-section p {
    color: #212529;
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
    background-color: #005EB8; /* Medium blue */
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #004F9F; /* Slightly darker blue */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .logo {
        max-height: 50px;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }

    .btn-primary {
        font-size: 1em;
        padding: 10px 20px;
    }
}

/* Media Styles */
.media-container {
    text-align: center;
    margin-bottom: 20px;
}

.question-media {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Responsive Adjustments for Media */
@media (max-width: 768px) {
    .question-media {
        width: 100%;
    }
}

/* Additional Styles for Questionnaire Pages */
h2 {
    color: #002147; /* Dark blue */
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 30px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.card-body {
    color: #212529;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #002147;
}

input[type="text"],
select,
.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 1em;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

input[type="text"]:focus,
select:focus,
.form-control:focus {
    border-color: #80bdff;
    outline: none;
}

.form-check-label {
    font-size: 1em;
    margin-left: 5px;
    color: #212529;
}

.form-check-input {
    margin-right: 10px;
}

.form-check {
    margin-bottom: 10px;
}

.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    background-color: #005EB8;
}

/* Button Hover Effect */
.btn-primary {
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #004F9F;
}

/* Input Focus Effect */
input[type="text"],
select,
.form-control {
    transition: border-color 0.3s;
}

/* Hammer Button Styles */
.hammer-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hammer-button img {
    transition: transform 0.3s;
}

.hammer-button:hover img {
    transform: rotate(-20deg);
}

/* Result Bar Styles */
.result-bar {
    width: 100%;
    background-color: #e1e4e8;
    margin: 20px 0;
    height: 30px;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
}

.risk-segment {
    height: 100%;
}

.low-risk {
    background: linear-gradient(to right, green, blue);
}

.moderate-risk {
    background-color: yellow;
}

.high-risk {
    background: linear-gradient(to right, orange, red);
}

/* Patient Message Animation */
.patient-message {
    font-size: 1.2em;
    text-align: center;
    color: #002147;
    opacity: 0;
    animation: fadeIn 2s forwards;
    animation-delay: 1s;
    margin-top: 20px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Health Care Worker Info */
.hcw-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.hcw-info h3 {
    color: #002147;
    margin-bottom: 10px;
}

.hcw-info p {
    margin: 5px 0;
}

/* RTL Support for Progress Bar */
body[dir="rtl"] .progress {
    direction: ltr; /* Keep progress bar direction left-to-right */
}

body[dir="rtl"] .progress-bar {
    float: right; /* Progress bar fills from right to left */
}

/* RTL Support for Card */
body[dir="rtl"] .card {
    text-align: right;
}

/* Adjustments for Inputs in RTL */
body[dir="rtl"] .form-check {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

body[dir="rtl"] .form-check-input {
    order: 2;
}

body[dir="rtl"] .form-check-label {
    order: 1;
    margin-right: 10px;
    margin-left: 0;
}

/* Example Animation */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.abstract-background::before,
.abstract-background::after {
    animation: float 6s ease-in-out infinite;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}
.symptom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1em;
}

.symptom-table th,
.symptom-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.symptom-table th {
    background-color: #005EB8;
    color: #ffffff;
    font-weight: bold;
}

.symptom-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.symptom-table tr:hover {
    background-color: #e9ecef;
}

.symptom-table td input[type="radio"] {
    transform: scale(1.2);
}

/* Animated Doctor Styles */
.animated-doctor {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px; /* Adjust the size as needed */
    z-index: 1000;
    animation: fadeIn 1s ease-in-out;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animated-doctor {
        width: 100px;
        bottom: 10px;
        right: 10px;
    }
}

/* Optional: Styling for the hammer button */
.hammer-button {
    background: none;
    border: none;
    cursor: pointer;
}

.hammer-button img {
    transition: transform 0.3s;
}

.hammer-button:hover img {
    transform: scale(1.1);
}

/* General Styles (Ensure these exist or adjust as needed) */
.header {
    background-color: #f8f9fa;
    padding: 10px 0;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    height: 50px;
}

.main-content {
    padding: 20px 0;
}

.card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-body {
    /* Additional styling if needed */
}

.progress {
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
}

.progress-bar {
    background-color: #007bff;
    height: 100%;
    transition: width 0.3s;
}

.form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.form-check {
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.media-container {
    margin-bottom: 20px;
}

.question-media {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.gif-container img {
    pointer-events: none;
}
