/* AI Assessment Tool Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Cards */
.card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Project Cards */
.project-card {
    border-left: 4px solid #0d6efd;
}

.project-card:hover {
    border-left-color: #0b5ed7;
}

/* Assessment Group Cards */
.assessment-group-card {
    border-left: 4px solid #dee2e6;
}

.assessment-group-card:hover {
    border-left-color: #0d6efd;
}

.assessment-group-card.border-success {
    border-left-color: #198754 !important;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 2px;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border-color: #dee2e6;
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

textarea.form-control {
    resize: vertical;
}

.form-label {
    font-weight: 500;
    color: #344054;
    margin-bottom: 0.375rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Modals */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #f1f3f4;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f1f3f4;
    padding: 1rem 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* List Groups */
.list-group-item {
    border-color: #f1f3f4;
    padding: 1rem 1.25rem;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

/* Footer */
footer {
    background-color: #fff !important;
}

/* Hero Section */
section.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading Animation */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        padding-top: 0.5rem;
    }

    .navbar .nav-link {
        padding: 0.75rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Question sections */
.border-start.border-primary.border-3 {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.03);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}