﻿
/* Overall container */
.assessment-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

/* Each question block */
.question-block {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Question header */
.question-header {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

/* Question description */
.question-description {
    font-size: 14px;
    color: #666;
}

/* Response options container */
.response-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Individual response labels */
.response-label {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    /* When a radio is selected, highlight */
    .response-label input[type="radio"]:checked + .response-text {
        font-weight: bold;
        color: #007bff;
    }


.response-radio {
    display: none;
}


.response-text {
    font-size: 14px;
}

/* Make the input field and icon fully clickable */
.position-relative {
    position: relative;
}

/* Search icon inside the input field */
.search-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #007bff; /* Highlight color */
    font-size: 1.2rem;
}

/* Ensure the input is clickable */
#searchPainRelief {
    cursor: pointer;
}

/* Styling for the date range */
.record-date-range {
    font-size: 14px;
    color: #007bff;
    margin-bottom: 10px;
}

/* Mobile-friendly card-style entries */
.pain-relief-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

    /* Ensure text is readable */
    .pain-relief-card strong {
        font-size: 14px;
        display: block;
        color: #333;
    }

    /* Make Select buttons more touch-friendly */
    .pain-relief-card .select-btn {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

/* On larger screens, use a grid layout for better spacing */
@media (min-width: 768px) {
    #painReliefList {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-adjusts columns */
        gap: 10px; /* Space between items */
    }

    .pain-relief-card {
        width: auto; /* Ensures it doesn’t stretch too much */
    }

    .select-btn {
        width: auto; /* Keeps button aligned */
    }
}

