﻿/* Base styles */
html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0; /* Премахваме margin-bottom */
    padding-bottom: 0; /* Премахваме padding-bottom */
    min-height: 100vh; /* Запазваме минимална височина */
    position: relative; /* Запазваме относително позициониране */
    display: flex;
    flex-direction: column;
}

/* Page content wrapper */
.content-wrapper {
    flex: 1; /* Запазваме flex за да заема цялото налично пространство */
    width: 100%;
    position: relative;
    padding-bottom: 70px; /* Увеличаваме отстоянието от footer-а */
}

/* Focus styles */
.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;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #3671B9 !important;
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

.navbar-light .navbar-nav .nav-link {
    color: white !important;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }

/* Hero section */
.hero-section {
    background-color: #eaf1fb;
    padding: 4rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

    .hero-section h1 {
        color: #2c3e50;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature icons */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: #3671B9;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    }

/* Feature cards animations */
.features-section .card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .features-section .card.show {
        opacity: 1;
        transform: translateY(0);
    }

/* Stats card */
.stats-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Call to action section */
.call-to-action-section {
    background-color: #eaf1fb;
    padding: 3rem 0;
    margin-top: 2rem;
    border-radius: 20px;
}

/* Buttons */
.btn-primary {
    background-color: #3671B9;
    border-color: #3671B9;
}

    .btn-primary:hover {
        background-color: #2c5d99;
        border-color: #2c5d99;
    }

.btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

    .btn-success:hover {
        background-color: #3e9142;
        border-color: #3e9142;
    }

/* Footer */
.footer {
    position: fixed; /* Променяме от absolute на fixed */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #3671B9;
    color: white;
    z-index: 1000;
}

/* School cards */
.top-schools-section .card {
    border-radius: 8px;
}

.top-schools-section .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Reset and fixes for modal issues */
.modal-dialog {
    margin: 1.75rem auto;
    position: relative;
    pointer-events: auto;
    max-width: 800px; /* Adjust as needed */
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border-radius: 0.3rem;
    outline: 0;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Ensure content doesn't leak */
}

.formula-modal-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-header,
.modal-footer {
    flex-shrink: 0; /* Prevent header and footer from shrinking */
}

.modal-body {
    overflow-y: auto;
    max-height: 70vh; /* Limit height and enable scrolling */
    padding: 1rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1060;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

/* Ensure the button is prominently displayed */
.modal-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Стилове за изгледа с шансове по профили */
.chance-container {
    margin: 20px 0 60px 0;
    position: relative;
}

.chance-profile {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    position: relative;
}

.chance-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.chance-high {
    background-color: #4CAF50;
}

.chance-medium {
    background-color: #FFC107;
}

.chance-low {
    background-color: #F44336;
}

.chance-profile-details {
    margin-right: 140px; /* Място за кръговата диаграма */
}

.chance-profile h3 {
    margin-top: 0;
    color: #2c3e50;
}

.chance-unknown {
    background-color: #6c757d; /* Сиво за неизвестни шансове */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer link styles */
/*.footer a {
    color: white !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .footer a:hover {
        color: white !important;
        opacity: 0.8;
        text-decoration: underline;
    }*/

@media (max-width: 768px) {
    .chance-circle {
        position: relative;
        margin: 20px auto;
        top: auto;
        right: auto;
    }

    .chance-profile-details {
        margin-right: 0;
    }
}

/* ЗАМЕНЕТЕ FOOTER КОДА В site.css С ТОЗИ ОПРОСТЕН ВАРИАНТ */

/* Footer - основни стилове (за двата footer-а) */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #3671B9;
    color: white;
    z-index: 1000;
}

    .footer a {
        color: white !important;
        text-decoration: none;
        transition: opacity 0.3s ease;
        margin: 0 0.25rem;
    }

        .footer a:hover {
            color: rgba(255, 255, 255, 0.8) !important;
            text-decoration: underline;
        }

    .footer span {
        color: rgba(255, 255, 255, 0.6);
        margin: 0 0.25rem;
    }

/* Само малка корекция за мобилния footer */
@media (max-width: 767px) {
    .footer {
        height: auto !important;
        line-height: normal !important;
        padding: 0.5rem 0 !important;
        font-size: 0.8rem !important;
    }

    .content-wrapper {
        padding-bottom: 100px !important;
    }
}