/* General form group styling */
.form-group {
    margin-bottom: 1.5rem;
}

/* Input fields (dropdowns, text inputs) */
.form-control {
    border-radius: 8px;
    border: 1px solid #b0e0e6;
    padding: 10px;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        border-color: #00c4b4;
        box-shadow: 0 0 5px rgba(0, 196, 180, 0.3);
    }

/* Labels */
.form-group label {
    margin-right: 15px;
    font-weight: 500;
    color: #343a40;
}

/* Checkboxes */
input[type="checkbox"] {
    margin-right: 5px;
    transform: scale(1.2);
    accent-color: #00c4b4;
}

/* Radio buttons */
input[type="radio"] {
    transform: scale(1.3);
    margin-right: 8px;
    accent-color: #00c4b4;
    transition: transform 0.2s ease;
}

    input[type="radio"]:hover {
        transform: scale(1.5);
    }

.form-check-inline {
    margin-right: 1.5rem;
}

.form-check-label {
    cursor: pointer;
    transition: color 0.2s ease;
}

input[type="radio"]:checked + .form-check-label {
    color: #00c4b4;
    font-weight: 600;
}

/* Submit button */
.btn-primary {
    background-color: #00c4b4;
    border-color: #00c4b4;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #009688;
        border-color: #009688;
    }

/* Container */
.container {
    max-width: 800px;
    margin-top: 2rem;
}

/* Heading */
h1 {
    color: #343a40;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Hero section (if used in Home page) */
.hero {
    background: linear-gradient(135deg, #00c4b4, #40c4ff);
    padding: 4rem 2rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
}

    .hero h1 {
        font-weight: 800;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    .hero .lead {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

/* Navbar */
.navbar.bg-primary {
    background: #00c4b4 !important;
}

.navbar.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

/* Card (questionnaire form) */
.card {
    border-radius: 12px;
    border: none;
    background: #e6f7fa;
}

/* Shadow for card and modal */
.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #00c4b4;
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    font-size: 1.1rem;
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
}

/* Flatpickr calendar */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flatpickr-day.selected,
.flatpickr-day.today {
    background: #00c4b4;
    border-color: #00c4b4;
}

.flatpickr-day:hover {
    background: #e6f7fa;
}

/* Form check (checkboxes, radio buttons) */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-top: 0.3rem;
}

.form-check-label {
    font-size: 1rem;
    color: #343a40;
}

/* Collapsible toggle buttons */
.toggle-btn {
    padding: 0;
    font-size: 1rem;
    color: #00c4b4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

    .toggle-btn:hover {
        color: #009688;
        text-decoration: none;
    }

    .toggle-btn i {
        font-size: 0.9rem;
    }

/* Dropdown placeholder */
select option[disabled][value=""] {
    color: #6c757d;
    font-style: italic;
}

/* Tooltip styling */
.tooltip-inner {
    background-color: #00c4b4;
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #00c4b4;
}

/* Question mark icon */
.fa-question-circle {
    cursor: help;
    transition: color 0.2s ease;
}

    .fa-question-circle:hover {
        color: #009688;
    }

/* Responsive container for Power BI iframe */
.embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio for desktops */
    overflow: hidden;
    min-height: 400px;
    max-height: 90vh;
}

.embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .embed-responsive {
        padding-bottom: 75%; /* 4:3 ratio */
        min-height: 350px;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .embed-responsive {
        padding-bottom: 75%; /* 4:3 ratio */
        min-height: 400px;
    }
}