@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    min-height: 100vh;
    display: flex;
    font-family: 'Poppins', sans-serif;
    font-size: medium;
    color: #333;
    background-color: #f4f7f6;  /* ✅ Light medical greenish-gray */
}

h1, h2, p, h4 {
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: #2d3e50;
}

a {
    text-decoration: none;
    color: #28a745;
}

a:hover {
    color: #218838; /* ✅ Darker Green */
}

.btn-primary {
    background: #28a745; /* ✅ Primary Green */
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #218838; /* ✅ Darker Green */
}

.btn-secondary {
    background: #6c757d; /* ✅ Neutral Gray */
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

li {
    list-style: none;
}

.wrapper{
    display: flex;
}

.content {
    padding: 3rem 0 0 0;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background: linear-gradient(to right, rgba(128, 201, 132, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
}

#toggle-nav-sidebar{
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to left, #80c984, #28a745);
}

#toggle-nav-sidebar.expand{
    width: 250px;
    min-width: 250px;
}

#toggle-nav-sidebar-btn{
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

#toggle-nav-sidebar-btn i{
    font-size: 1.5rem;
    color: #f1f1f1;
}

.sidebar-logo{
    margin: auto 0;
}

.sidebar-logo a{
    color: #f1f1f1;
    font-size: 1.15rem;
    font-weight: 600;
}

#toggle-nav-sidebar:not(.expand) .sidebar-logo,
#toggle-nav-sidebar:not(.expand) a.sidebar-link span{
    display: none;
}

.sidebar-nav{
    padding: 2rem 0;
    flex: 1 1 auto;
    background:  linear-gradient(to left, #80c984, #28a745);
}

.sidebar-nav a {
    color: white;
}

.sidebar-nav a:hover {
    background: #6c757d;
}

a.sidebar-link{
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

a.sidebar-link:hover{
    background-color: rgba(40, 167, 69, 0.3);
    border-left: 3px solid #28a745;
}

.sidebar-link i{
    font-size: 1.1rem;
    margin-right: .75rem;
}

.sidebar-item {
    position: relative;
}

#toggle-nav-sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #222;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#toggle-nav-sidebar:not(.expand) .sidebar-item:hover .has-dropdown + .sidebar-dropdown {
    display: block;
    max-height: none;
    width: 100%;
    opacity: 1;
    overflow-y: auto;
}

#toggle-nav-sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#toggle-nav-sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

/* Add a border around each question */
.form-group {
    border: 2px solid #ddd; /* Light gray border */
    border-radius: 8px; /* Rounded corners */
    padding: 15px; /* Padding inside */
    margin-bottom: 20px; /* Space between questions */
    background-color: #f9f9f9; /* Light background */
}

/* Add margin before each question label */
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px; /* Adds spacing before the question */
    color: #333; /* Darker text for contrast */
}

/* Style the radio buttons */
.form-check-input {
    margin-right: 5px; /* Space between radio button and label */
    margin-bottom: 5px;
}

/* Improve form layout */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
}

/* Ensure the logout form is not affected */
.logout-form {
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: inline; /* Keep it inline for better layout */
}

/* Improve the Submit Button */
button.btn-primary-questionnaire {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    background: #218838;
    border: none;
    transition: background 0.3s ease;
}

button.btn-primary-questionnaire:hover {
    background: #80c984;
}

label.form-label {
    font-weight: 600;
    margin-bottom: 1rem;
    color: black;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: black;
}

/* Login */
/* Center the form vertically */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: #f8f9fa;*/
    /*background: linear-gradient(to right, #80c984, #28a745);*/
}

/* Styling the card */
.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Form fields styling */
.login-card .form-label {
    font-weight: 600;
    color: #333;
}

.login-card input {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #28a745;
    width: 100%;
}

/* Enhancing the submit button */
.login-card button {
    background: #80c984;
    color: white;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    border: none;
    transition: 0.3s;
}

.login-card button:hover {
    background: #28a745;
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: black;
}

.login-card small {
    max-width: 300px;
    color: black;
}

/* Link styling */
.login-card a {
    text-decoration: none;
    color: #28a745;
    font-weight: 600;
    transition: 0.3s;
}

.login-card a:hover {
    color: #218838;
}

/* Register */
/* Center the registration form vertically */
.register-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.register-container span {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: black;
    padding-bottom: 5px;
}

/* Styling the card */
.register-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    align-items: center; /* ✅ Ensures everything centers inside */
    text-align: center;
}

/* Form field styling */
.register-card .form-label {
    font-weight: 600;
    color: #333;
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

.register-card input {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #28a745;
    width: 100%;
}

/* Enhancing the submit button */
.register-card button {
    background: #28a745;
    color: white;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    width: 90%;
    border: none;
    transition: 0.3s;
    margin-top: 15px;
}

.register-card button:hover {
    background: #218838;
}

.register-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: black;
}

.register-card small {
    max-width: 300px;
    color: black;
}

/* Link styling */
.register-card a {
    text-decoration: none;
    color: #28a745;
    font-weight: 600;
    transition: 0.3s;
}

.register-card a:hover {
    color: #218838;
}

/* User Profile */
/* Center the profile form */
.profile-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: linear-gradient(135deg, #6e8efb, #a777e3);*/
}

/* Styling the profile form card */
.profile-card {
    width: 100%;
    max-width: 550px;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Form field styling */
.profile-card .form-label {
    font-weight: 600;
    color: #333;
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

.profile-card input,
.profile-card select,
.profile-card textarea {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #28a745;
    width: 100%;
}

/* Enhancing the body part select */
.row select {
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ccc;
    width: 100%;
}

/* Enhancing the update button */
.profile-card button {
    background: #28a745;
    color: white;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    border: none;
    transition: 0.3s;
}

.profile-card button:hover {
    background: #218838;
}

/* Link styling */
.profile-card a {
    text-decoration: none;
    color: #28a745;
    font-weight: 600;
    transition: 0.3s;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: black;
}

.profile-card a:hover {
    color: #218838;
}

/* Target only form-control fields */
.form-control::placeholder {
    color: lightgrey;
}

.form-control {
    border: 0px;
    padding-bottom: 10px;
}

/* Target input fields inside forms */
input::placeholder,
textarea::placeholder {
    color: lightgrey;
}

/* Reset the default styles */
.password-reset-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
}

.password-reset-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.password-reset-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: black;
}

.password-reset-card .info-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
}

.password-reset-card .secondary-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.password-reset-card .icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.password-reset-card .btn {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
}

.password-reset-card .btn-primary {
    background: #28a745;
    color: white;
    border: none;
    transition: 0.3s;
}

.password-reset-card .btn-primary:hover {
    background: #28a745;
}

.password-reset-card .btn-secondary {
    background: #ddd;
    color: black;
    border: none;
    transition: 0.3s;
}

.password-reset-card .btn-secondary:hover {
    background: #bbb;
}

/* Settings */
/* Settings Container */
.settings-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Settings Card */
.settings-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-items: center;
    max-width: 600px;
}

/* Header & Description */
.settings-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-card h4 {
    margin-top: 20px;
}

.settings-card li {
    font-size: 0.9rem;
    font-weight: 400;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/*.settings-card h2::before {*/
/*    content: "⚙️";*/
/*    margin-right: 10px;*/
/*    font-size: 1.5rem;*/
/*}*/

.settings-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Buttons Section */
.settings-links {
    display: flex;
    flex-direction: column;
    align-items: center;  /* ✅ Ensures buttons align at the center */
    width: 100%;
    gap: 15px;
}

/* Buttons Styling */
.settings-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    width: 90%; /* ✅ Reduce width slightly so it looks aligned */
    max-width: 350px; /* ✅ Ensures uniform button width */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid transparent;
}

.settings-links .btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.settings-links .btn-primary {
    background: #80c984;
    color: white;
}

.settings-links .btn-primary:hover {
    background: #28a745;
    border-color: #218838;
}

.settings-links .btn-warning {
    background: #ffc107;
    color: black;
}

.settings-links .btn-warning:hover {
    background: #e0a800;
}


/* Flash Messages */
.messages {
    margin-top: 20px;
}

.messages .alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

/* 404 Page */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f8f9fa;
}

.error-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.error-card h1 {
    font-size: 5rem;
    font-weight: bold;
    color: #dc3545;
}

.error-card p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.error-card .btn {
    display: inline-block;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.error-card .btn-primary {
    background: #28a745;
    color: white;
}

.error-card .btn-primary:hover {
    background: #218838;
}

/* home page */
.hero-section {
    background: linear-gradient(to right, #80c984, #28a745);
    padding: 60px 0;
    border-radius: 5px;
    color: white;
}

.hero-section h1 {
    color: white;
}

#features {
    border-radius: 30px; /* ✅ Adjust this value as needed */
    overflow: hidden; /* ✅ Prevents content from spilling out */
}

.feature-box {
    background: white;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

.feature-box:hover {
    transform: scale(1.1);
}

.feature-text {
    min-height: 60px; /* Ensures all descriptions align perfectly */
}

.feature-box p {
    font-size: medium;
}

.cta-section {
    background: #222;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.bg-dark {
    background-color: #222 !important;
}

/* CTA Section (Call to Action) */
.bg-success {
    background-color: rgba(55, 145, 58, 0.3) !important; /* ✅ Deep green (Medical Aesthetic) */
    border-radius: 7px;
}

/* CTA Button */
.btn-light {
    background-color: #ffffff !important; /* ✅ Clean white button */
    color: #2e7d32 !important; /* ✅ Green text */
    border: 2px solid #ffffff; /* ✅ Slight border for elegance */
    font-weight: bold;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn-light:hover {
    background-color: #1b5e20 !important; /* ✅ Darker green hover effect */
    color: #ffffff !important;
    border-color: #ffffff;
}

/* Dashboard */
.dashboard-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
}

select.form-select-lg {
    font-size: 1.1rem;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.btn-outline-success {
    border-radius: 8px;
    font-weight: 600;
}

/* Make footer stick to bottom without interfering with existing body styles */
.content {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

.content main {
    flex-grow: 1;
}


/* About Page Enhancements */
.about-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
}

.about-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #28a745;
}

.about-container p.lead {
    font-size: 1rem;
    color: #555;
}

.about-container h2 {
    font-size: 1.75rem;
    color: #2d3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-container ul {
    padding-left: 1.25rem;
}

.about-container ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #444;
    list-style-type: disc;
    text-align: left;
}

.about-container img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-container .btn {
    margin-top: 2rem;
}