/* ENTLeap Custom Styles */

:root {
    --primary-color: #035e93;
    --secondary-color: #35af1c;
    --accent-color: #f38401;
    --success-color: #35af1c;
    --danger-color: #dc3545;
    --warning-color: #f38401;
    --info-color: #005e92;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Global Styles */
html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Create a wrapper for main content */
.main-content {
    flex: 1;
}

/* For pages without explicit main-content wrapper, target the container after header */
body > .container,
body > .container-fluid {
    flex: 1;
}

/* Ensure footer stays at bottom */
footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-4 {
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #005e92 0%, #35af1c 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section-bg {
    background: url('/assets/splash_image_new.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.hero-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content img {
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.8));
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 94, 146, 0.15);
}

.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
}

.input-group-text {
    background-color: var(--light-color);
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #005e92 0%, #007bb8 100%);
    box-shadow: 0 4px 15px rgba(0, 94, 146, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004a75 0%, #005e92 100%);
    box-shadow: 0 6px 20px rgba(0, 94, 146, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #35af1c 0%, #47d126 100%);
    box-shadow: 0 4px 15px rgba(53, 175, 28, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2e9318 0%, #35af1c 100%);
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: #035e93;
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px 25px;
    color: white;
}

.card-body {
    padding: 25px;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 10px;
    background: linear-gradient(135deg, #005e92 0%, #35af1c 100%);
    transition: width 0.6s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

/* Assessment Styles */
.question-container {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.question-container:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
}

/* Scale endpoints styling */
.scale-endpoints {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.scale-endpoint-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-align: center;
}

.scale-radio-container {
    margin-top: 10px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 0 10px;
}

.scale-container .form-check {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.scale-container .form-check-input[type="radio"] {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    display: block;
    cursor: pointer;
}

.scale-container .form-check-label {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding-top: 5px;
}

/* Radio buttons with numbers beneath */
.scale-container .form-check {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.radio-number-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    cursor: pointer;
}

.radio-number {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-color);
    line-height: 1;
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 15px;
    font-weight: 600;
    color: #495057;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 94, 146, 0.05);
}

/* Badge Styles */
.badge {
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    padding: 15px 20px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4f1c5 0%, #c1efae 100%);
    color: #1e5c0a;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #cce7ff 0%, #b3d9ff 100%);
    color: #003d4f;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}



.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 30px;
}

/* Footer */
footer {
    margin-top: auto;
}

footer.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Override Bootstrap primary classes to use custom primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

footer a:hover {
    color: white !important;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 30px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .question-container {
        padding: 25px !important;
        margin-bottom: 25px !important;
    }
    
    /* Scale mobile adjustments */
    .scale-radio-container {
        gap: 1px;
        padding: 0 5px;
        overflow-x: auto;
    }
    
    .scale-container .form-check {
        flex: 0 0 auto;
        min-width: 30px;
    }
    
    .scale-endpoints {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .scale-endpoint-label {
        font-size: 0.85rem;
    }
    
    .radio-number {
        font-size: 0.7rem !important;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .question-container {
        padding: 30px !important;
        margin-bottom: 30px !important;
    }
    
    .scale-container .form-check-input[type="radio"] {
        width: 24px;
        height: 24px;
    }
    
    .scale-container .form-check-label {
        font-size: 0.8rem;
        padding-top: 2px;
    }
    
    .radio-number {
        font-size: 0.6rem !important;
    }
    
    .radio-number-label {
        width: 24px !important;
        height: 24px !important;
    }
    
    .scale-container .form-check {
        min-width: 26px;
    }
    
    .scale-endpoints {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .scale-endpoint-label {
        font-size: 0.8rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-lg-custom {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

.gradient-primary {
    background: linear-gradient(135deg, #005e92 0%, #35af1c 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #35af1c 0%, #47d126 100%);
}

/* Accent Color Utilities */
.btn-warning {
    background: linear-gradient(135deg, #f38401 0%, #ff9a2b 100%);
    box-shadow: 0 4px 15px rgba(243, 132, 1, 0.3);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d16f01 0%, #f38401 100%);
    transform: translateY(-2px);
    color: white;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.border-accent {
    border-color: var(--accent-color) !important;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
    border-left: 4px solid var(--accent-color);
}

/* Enhanced Navigation */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link {
    color: var(--accent-color) !important;
}

/* Enhanced Icons */
.text-warning {
    color: var(--accent-color) !important;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}
