/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 15px;
    padding: 0;
    box-sizing: border-box;
}

main {
    padding: 15px;
    background-color: #f9f9f9;
}

/* Form Styles */
form {
    margin: auto;
    background-color: #ffffff;
    border-radius: 10px;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    padding: 10px;
}

.feedback-topic-heading {
    text-align: center; /* Centers the text */
    font-size: 1.5em; /* Optional: Adjust font size */
    font-weight: bold; /* Optional: Make it stand out */
    margin: 20px 0; /* Optional: Add spacing around the heading */
    color: blue; /* Set text color to blue */
}

.additional-feedback-topic-heading { 
    text-align: left; /* Centers the text */
    font-size: 1em; /* Optional: Adjust font size */
    font-weight: bold; /* Optional: Make it stand out */
    margin: 20px 0; /* Optional: Add spacing around the heading */
    color: blue; /* Set text color to blue */
}

/* Feedback Section */
.feedback-section {
    /* box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.1); */
    /* border: 1px solid #ffffff; */
    padding: 10px;
    /* background-color: #d8fbff; */
    color: #007bff;
    border-radius: 10px;
}

.feedbacks {
    position: relative;
    /* padding: 5px; */
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    text-align: center;
    /* border: 1px solid #ccc; */
    /* background-color: #ffffff; */
}

.feedback-comments {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.topic-label {
    width: 50%; /* Fixed width */
    text-align: left; /* Align text to the left */
    margin-right: 10px; /* Add spacing between label and buttons */
    word-wrap: break-word; /* Break words if necessary */
    white-space: normal; /* Allow text to wrap to a new line */
    font-weight: bold; /* Make text bold */
}

.btn-circle {
    display: inline-block;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    line-height: 15px;
    text-align: center;
    vertical-align: middle;
    background-color: #f8f9fa;
    border: 1px solid #17a2b8;
    color: #17a2b8;
    font-size: 10px;
    margin-right: 2px;
}

.btn-circle:hover,
.btn-circle:focus {
    background-color: #17a2b8;
    color: #fff;
}

.btn-circle.active {
    background-color: #17a2b8;
    color: #fff;
}

.btn-check:checked + .btn-circle {
    background-color: #17a2b8;
    color: #fff;
}

.me-3 {
    margin-right: 1rem;
}

/* Spinner Styles */
.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid #ccc;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
    transform: rotate(0deg);
    }
    100% {
    transform: rotate(360deg);
    }
}

.loading-text {
    font-weight: bold;
    color: #007bff;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Form Element Styles */
label {
    /* font-weight: bold; */
    margin-bottom: 5px;
}

.form-check {
    margin-bottom: 10px;
}

textarea {
    resize: none;
    border: 1px solid #ccc;
    border-radius: 10px;
}

button {
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
    color: #ffffff;
}

/* Modal Styles */
.modal-body {
    position: relative;
    flex: 1 1 auto;
    /* padding: 20px; */
    padding: 5px;
}

/* .modal-body .recommendation-highlight {    
    text-align: center;
    color: #00468B; 
    font-weight: bold;
    font-size: 1.25rem;  
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);  
    margin-bottom: 0.1rem;
} */

.modal-body .recommendation-highlight {
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem; /* Slightly larger font than detailed recommendation */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Subtle shadow for a polished look */
    border-radius: 10px;
    margin-bottom: 0.1rem;
}

/* Define color classes */
.modal-body .red {
    color: white;
    background-color: red;
}

.modal-body .orange {
    color: black;
    background-color: orange;
}

.modal-body .green {
    color: white;
    background-color: green;
}

.modal-body .detailed-recommendation {
    width: 100%; /* Ensures it fills the horizontal space */
    padding: 10px; /* Adds some padding around the text */
    text-align: justify; /* Makes the text justified for a clean look */
    line-height: 1.6; /* Improves readability by increasing line height */
    word-wrap: break-word; /* Ensures long words or URLs wrap properly */
    background-color: #f9f9f9; /* Optional: Light background for better contrast */
    border-radius: 10px; /* Optional: Rounded corners for a modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Subtle shadow for depth */
}

.modal-content {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #0d0d0d;
    color: #fff;
}

.modal-footer {
    border-top: 1px solid #ffffff;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
    margin: 10px;
    }

    form {
    max-width: 100%;
    margin: 0 10px;
    }

    .feedbacks {
    text-align: left;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    }

    .feedback-comments {
    flex-direction: column;
    margin-bottom: 5px;
    }

    .btn {
    font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .d-inline-flex {
    flex-direction: column;
    align-items: stretch;
    }

    .form-check {
    margin-bottom: 10px;
    }

    .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    }

    #modalBody {
    font-size: 0.9rem;
    }
}
