/* General Styles */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: url('https://geohum.eu/wp-content/uploads/2020/06/Kutupalong_UAV_image-1-scaled.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #222;
}

.overlay {
    background: rgba(240, 236, 28, 0.364);
    min-height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0; left: 0;
    z-index: 0;
}

.main-content {
    position: relative;
    z-index: 1;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}


.container, .dashboard-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(224, 221, 221, 0);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(13,110,253,0.08);
}


h1, h2 {
    color: #e10707 ;
    text-shadow: 2px 2px 8px #fff;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 10px 24px;
    margin: 10px 5px;
    background: #e10707;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.btn:hover {
    background: #e10707;
    box-shadow: 0 4px 16px rgba(13,110,253,0.15);
    transform: translateY(-2px) scale(1.03);
}
.btn-primary {
    background: #e10707;
}
.btn-primary:hover {
    background: #e10707;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #218838, #1ea878);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.btn-submit:active {
    transform: translateY(0px) scale(1.02);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

/* Navigation Buttons */
.btn-nav {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.3);
    transition: all 0.3s ease;
    margin: 0 8px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    box-shadow: 0 5px 16px rgba(108, 117, 125, 0.4);
    transform: translateY(-2px);
}

.btn-previous {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.btn-previous:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a85);
}

.btn-previous::before {
    content: '←';
    font-size: 1.2em;
    font-weight: bold;
}

.btn-next {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
}

.btn-next:hover {
    background: linear-gradient(135deg, #e8590c, #d63384);
}

.btn-next::after {
    content: '→';
    font-size: 1.2em;
    font-weight: bold;
}

/* Disabled state for navigation buttons */
.btn-nav:disabled {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #e10707;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-nav:disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.action-buttons {
    margin-top: 30px;
    text-align: center;
}

/* Button Container and Layout */
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.button-group-spaced {
    justify-content: space-between;
    max-width: 400px;
    margin: 20px auto;
}

.form-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 0 20px;
}

/* Responsive button layout */
@media (max-width: 768px) {
    .button-group,
    .form-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation-buttons {
        flex-direction: row;
        justify-content: space-around;
        padding: 0 10px;
    }
    
    .btn, .btn-submit, .btn-nav {
        width: 100%;
        max-width: 250px;
    }
}

/* Dashboard Styles */

.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}
.stat-card {
    background: #e7f1ff;
    padding: 24px;
    border-radius: 12px;
    width: 45%;
    text-align: center;
    box-shadow: 0 2px 12px rgba(13,110,253,0.08);
}
.stat-card h3 {
    margin-top: 0;
    color: #e10707;
}
.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #222;
    margin-bottom: 0;
}
.chart-container {
    margin: 40px 0;
    height: 400px;
}

/* Table Styles */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255,255,255,0.97);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}
th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}
th {
    background-color: #e10707;
    color: white;
    font-weight: 500;
}
tr:hover {
    background-color: #e7f1ff;
}

/* Section Styles */
.section {
    background: #f8f9faee;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.section h3 {
    color: #e10707;
    border-bottom: 3px solid #e10707;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px #fff;
}

/* Navigation Styles */
.navbar {
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Navbar Logo Styling */
.navbar-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.funding-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
}

.navbar-logo-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.navbar-logo-item:hover {
    opacity: 1;
    text-decoration: none;
}

.navbar-logo-item img {
    height: 60px;
    width: auto;
    max-width: 1000px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Responsive navbar logos */
@media (max-width: 992px) {
    .navbar-logos {
        display: none;
    }
}

.list-group-item {
    background: rgba(255,255,255,0.95);
    border: none;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    transition: box-shadow 0.3s, transform 0.3s;
}

.list-group-item:hover {
    box-shadow: 0 4px 16px rgba(13,110,253,0.15);
    transform: translateY(-2px) scale(1.03);
    background: #e7f1ff;
}

/* Text Styles */
.display-4 {
    text-shadow: 2px 2px 8px #fff;
}

.lead {
    color: #333;
    text-shadow: 1px 1px 4px #fff;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

/* Required Field Styling */
.required::after,
label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Form Structure & Coherency */
.form-group {
    margin-bottom: 1.5rem;
}

.form-section {
    background: rgba(248, 249, 250, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.subsection {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.subsection h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.subsection h4.text-danger {
    color: #dc3545 !important;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 0.5rem;
}

/* Form Control Enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Form Check Enhancements */
.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Input Group Styling */
.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background-color: rgba(233, 236, 239, 0.95);
    border-color: #ced4da;
    color: #495057;
}

/* Score Field Styling */
.score-field {
    border-left: 4px solid #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.score-field:focus {
    border-left-color: #20c997;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Alert Enhancements */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left: 4px solid #0dcaf0;
}

/* Form Text & Labels */
.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

/* Fieldset Styling */
fieldset {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    background-color: rgba(248, 249, 250, 0.5);
}

fieldset legend {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
}

/* Keyword Tags Styling */
.keyword-tag {
    display: inline-block;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    transform: translateY(-1px);
}

.keyword-tag .remove-tag {
    margin-left: 0.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* Suggestion List Styling */
.suggestion-list {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 1000;
}

.suggestion-list .list-group-item {
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.suggestion-list .list-group-item:hover {
    background-color: #e7f1ff;
}

/* Progress & Loading States */
.loading-state {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Validation States */
.is-valid {
    border-color: #28a745 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #28a745;
}

/* Logo Styling */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.logo-container.in-footer {
    margin: 1.5rem 0;
    padding: 2rem;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.7);
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.logo-item img {
    max-height: 80px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo-container.in-footer .logo-item img {
    max-height: 70px;
    max-width: 140px;
}

.logo-item:hover img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transform: scale(1.05);
}

.logo-item .logo-text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    text-align: center;
    line-height: 1.3;
}

.logo-container.in-footer .logo-item .logo-text {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Footer with Logos */
footer.with-logos {
    background: rgba(248, 249, 250, 0.95);
    border-top: 3px solid #e9ecef;
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.05);
}

footer.with-logos .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

footer.with-logos .footer-text {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
}

/* Responsive Logo Layout */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .logo-container.in-footer {
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .logo-item img {
        max-height: 60px;
        max-width: 120px;
    }
    
    .logo-container.in-footer .logo-item img {
        max-height: 55px;
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .logo-item img {
        max-height: 50px;
        max-width: 100px;
    }
    
    .logo-item .logo-text {
        font-size: 0.8rem;
    }
}
