/* Professional, user-friendly palette */
body {
    background: #f8fafc !important; /* very light blue-gray */
    color: #1e293b; /* slate-800 */
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

/* Enhanced contrast styles */
.card {
    border: 1px solid #e2e8f0 !important; /* blue-gray-200 */
    border-radius: 1.25rem !important;
    box-shadow: 0 2px 16px rgba(30,41,59,0.06);
    background: #fff !important;
}

.card-header {
    background: linear-gradient(90deg, #2563eb 80%, #60a5fa 100%) !important; /* blue-600 to blue-400 */
    border-bottom: none !important;
    border-radius: 1.25rem 1.25rem 0 0 !important;
    color: #fff !important;
    letter-spacing: 1px;
}

/* Form controls */
.form-control, .form-select {
    border: 1px solid #cbd5e1 !important; /* blue-gray-300 */
    color: #1e293b !important;
    background-color: #fff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #2563eb !important; /* blue-600 */
    box-shadow: 0 0 0 0.18rem rgba(37,99,235,0.10) !important;
}

.form-control::placeholder {
    color: #64748b !important; /* blue-gray-500 */
    opacity: 1;
    font-size: 0.98rem;
}

/* Section headers */
.section-header {
    background: #f1f5f9 !important; /* blue-gray-50 */
    color: #2563eb !important;
    border-radius: 0.75rem !important;
    font-size: 1.15rem;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    border: 1px solid #e2e8f0 !important;
}

/* Table styles */
.table {
    border: 1.5px solid #e2e8f0 !important;
}

.table th {
    background-color: #2563eb !important;
    color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600 !important;
}

.table td {
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
}

/* Buttons */
.btn {
    border-radius: 0.75rem !important;
    font-size: 1.08rem !important;
    padding: 0.6rem 1.5rem !important;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb 80%, #60a5fa 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    color: #fff !important;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8 80%, #2563eb 100%) !important;
    color: #fff !important;
}

.btn-success {
    background: linear-gradient(90deg, #22c55e 80%, #86efac 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    color: #fff !important;
}
.btn-success:hover {
    background: linear-gradient(90deg, #16a34a 80%, #22c55e 100%) !important;
    color: #fff !important;
}

.btn-danger {
    background: linear-gradient(90deg, #ef4444 80%, #fca5a5 100%) !important;
    border: none !important;
    color: #fff !important;
}
.btn-danger:hover {
    background: linear-gradient(90deg, #b91c1c 80%, #ef4444 100%) !important;
    color: #fff !important;
}

/* Modal header */
.modal-header {
    background: linear-gradient(90deg, #2563eb 80%, #60a5fa 100%) !important;
    border-bottom: 3px solid #2563eb !important;
}

/* Form section */
.form-section {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 8px rgba(30,41,59,0.04);
    transition: box-shadow 0.2s;
}
.form-section:hover {
    box-shadow: 0 4px 24px rgba(37,99,235,0.08);
}

/* Table enhancements */
.table-responsive {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

/* Modal enhancements */
.modal-content {
    border: 2px solid #e2e8f0 !important;
    background: #fff;
}

/* Radio and checkbox enhancements */
.form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}
.form-check-input[type="radio"]:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

/* Star rating styling */
.star-rating-group .star {
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.15s;
    color: #e2e8f0 !important; /* mint */
}
.star-rating-group .star.bi-star-fill,
.star-rating-group .star:hover,
.star-rating-group .star:hover ~ .star {
    color: #2563eb !important; /* red on hover/fill */
}

/* Progress bar styling */
.progress {
    background: #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 4px rgba(30,41,59,0.04);
}
.progress-bar {
    border-radius: 1rem;
    font-size: 1rem;
    background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
    transition: width 0.3s;
}

/* Sidebar navigation styling */
#formNav .nav-link {
    border-radius: 0.75rem;
    color: #334155;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: background 0.15s, color 0.15s;
}
#formNav .nav-link.active,
#formNav .nav-link:focus,
#formNav .nav-link:hover {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

/* Tooltip styling for info icons */
[data-bs-toggle="tooltip"] {
    color: #2563eb;
    cursor: pointer;
    margin-left: 0.25rem;
    font-size: 1.1em;
    vertical-align: middle;
}

/* Modern floating navigation style */
.modern-nav {
    background: #fff;
    border-radius: 0.4rem;
    box-shadow: 0 1px 2px rgba(30, 41, 59, 0.10);
    padding: 0.25rem 0.1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
}
.modern-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.15em;
    border-radius: 0.25rem;
    color: #334155;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    transition: background 0.15s, color 0.15s;
    font-size: 0.92rem;
    min-height: 1.8rem;
    background: transparent;
}
.modern-nav .nav-link.active,
.modern-nav .nav-link:focus,
.modern-nav .nav-link:hover {
    background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.10);
}
.modern-nav .nav-link i {
    font-size: 0.95em;
    color: #2563eb;
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .modern-nav {
        display: none !important;
    }
}

/* Responsive tweaks for mobile */
@media (max-width: 991px) {
    #formNav {
        display: none !important;
    }
    .form-section {
        padding: 1rem;
        border-radius: 0.5rem;
    }
    .card {
        border-radius: 0.5rem !important;
    }
}