/* Bendra */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    min-height: 500px;
}

/* Search Box Customization */
.search-box {
    border: 1px solid #e0e0e0;
}
.search-box input:focus {
    box-shadow: none;
}

/* Light Blue Section (Paslaugos) */
.second-bg {
    background-color: #f0f7ff;
}

/* Kortelės */
.card {
    transition: transform 0.2s;
}

/* Footeris */
.footer-dark {
    background: #0f172a;
    color: #b0b3b8;
}
.footer-dark h5 {
    color: #fff;
}

/* ========== RESULT PAGE STYLES ========== */

/* Navigacijos slinkimo poslinkis */
section {
    scroll-margin-top: 100px;
}


/* Meniu aktyvus elementas */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 600;
}

/* Suvienodinti šriftų dydžiai metrikoms */
.metric-value {
    font-size: 1rem;
    font-weight: 600;
}

/* ========== GRAFIKAS (Performance optimized) ========== */
.chart-container {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
}

.chart-grid {
    position: absolute;
    top: 20px;
    left: 55px; /* PADIDINTA: Buvo 40px */
    right: 20px;
    bottom: 40px;
    border-left: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* SVG linija visame grafike */
.chart-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.chart-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #198754;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    /* Centruojame tašką */
    transform: translate(-50%, 50%);
}

.chart-point:hover {
    width: 16px;
    height: 16px;
    border-width: 4px;
}

.chart-tooltip {
    position: absolute;
    background: #212529;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 20;
    white-space: nowrap; /* Priverčia tekstą būti vienoje eilutėje */
    min-width: 140px;    /* Užtikrina pakankamą plotį */
    text-align: center;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}



/* Rodyklė po tooltip */
.chart-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #212529;
}

.chart-point:hover .chart-tooltip {
    opacity: 1;
    visibility: visible;
}

.chart-tooltip strong {
    display: block;
    color: #fff;
    margin-bottom: 2px;
}

.chart-y-labels {
    position: absolute;
    left: 5px;
    top: 20px;
    bottom: 40px;
    width: 45px; /* PADIDINTA: Buvo 30px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px; /* Šiek tiek mažesnis šriftas */
    color: #6c757d;
    text-align: right;
    white-space: nowrap; /* DRAUDŽIAM LAUŽYMĄ Į NAUJĄ EILUTĘ */
}

.chart-x-labels {
    position: absolute;
    left: 55px; /* PADIDINTA: Buvo 40px */
    right: 20px;
    bottom: 10px;
    height: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
}

/* Grid lines */
.chart-gridline {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #e9ecef;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 991px) {
    .sidebar-nav {
        display: none;
    }
    .sidebar-nav.show {
        display: block;
        animation: slideIn 0.3s ease;
    }
    
    /* Mobile optimizations */
    .chart-container {
        padding: 15px;
        height: 180px;
    }
    
    .chart-tooltip {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* Animation for mobile menu */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .chart-point,
    .chart-tooltip,
    .sidebar-nav.show {
        transition: none;
        animation: none;
    }
}
/* ScrollSpy fix */
html {
    scroll-behavior: smooth;
}
/* ========== MODERN AUTH PAGES ========== */
.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    background: #fff;
    overflow-x: hidden;
}

/* Kairysis blokas (Tėvinis elementas) */
.auth-left {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* Šios dvi eilutės yra raktas į idealų centravimą: */
    justify-content: center; /* Centruoja Vertikaliai */
    align-items: center;     /* Centruoja Horizontaliai */
    
    padding: 40px;
    position: relative;
}

/* Forma (Vaikinis elementas) */
.auth-content {
    width: 100%;
    max-width: 440px; /* Optimalus plotis skaitymui */
    /* Jokių margin-left/right, nes tėvinis elementas (align-items: center) jau tai sutvarkė */
}

/* Logotipas fiksuotas kampe (išimtas iš centravimo srauto) */
.auth-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #0d6efd;
    z-index: 10;
}

.auth-heading {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
    letter-spacing: -0.5px;
}

/* Dešinysis blokas (Paveiksliukas) */
.auth-right {
    background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=2426&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    position: relative;
    min-height: 100vh;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 110, 253, 0.25);
}

/* Kiti elementai */
.google-btn {
    border: 1px solid #dee2e6;
    background: #fff;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    height: 50px; /* Didesnis mygtukas */
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #c1c9d0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider::not(:empty)::before { margin-right: 1em; }
.divider::not(:empty)::after { margin-left: 1em; }

.auth-footer {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #adb5bd;
}

.auth-footer a {
    color: #6c757d;
    text-decoration: none;
    margin-left: 15px;
}

.auth-footer a:hover { color: #0d6efd; }

.password-toggle {
    cursor: pointer;
    background: #fff;
    border-left: 0;
}
.password-toggle:hover { background: #f8f9fa; }
.form-control:focus + .password-toggle {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-left: 0;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .auth-left {
        padding: 30px;
    }
    .auth-logo {
        position: relative; /* Mobiliame logotipas virš formos, ne kampe */
        top: 0; left: 0;
        margin-bottom: 30px;
        display: block;
        text-align: center;
    }
    .auth-content {
        margin-top: 0;
    }
}
.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05)!important;
    border-color: #86b7fe!important;
}
.transition {
    transition: all 0.2s ease-in-out;
}
/* --- NAVBAR PATAISYMAI --- */

/* Atidaryti dropdown užvedus pelę */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Subtilesnės ikonos meniu */
.dropdown-item i {
    opacity: 0.6;
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    display: inline-block;
}

.dropdown-item {
    padding: 8px 16px;
    color: #444;
}

.dropdown-item:hover i {
    opacity: 1;
    color: #0d6efd;
}

/* Accordion stilius istorijai */
.history-card {
    transition: all 0.2s;
    border: 1px solid #eee;
}
.history-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #000;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
/* ========== PRICING PAGE ========== */

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Kortelės išdėstymas */
.pricing-card {
    height: 100%;
    border: 0;
    border-radius: 1rem;
    transition: transform 0.2s;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.pricing-header {
    background: transparent;
    border-bottom: 0;
    padding: 2rem 1.5rem 1rem;
}

.pricing-body {
    padding: 0 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Užpildo visą aukštį */
}

/* Most Popular Badge */
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d6efd;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
    z-index: 10;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card.border-primary {
    border: 2px solid #0d6efd;
    transform: scale(1.02);
    z-index: 5;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

/* Sąrašo elementai */
.feature-list {
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-row {
    padding: 8px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px dashed rgba(0,0,0,0.05); /* Subtili linija atskyrimui */
}

.feature-row:last-child {
    border-bottom: 0;
}

.check-icon {
    color: #198754; /* Žalia */
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Tuščia eilutė (Placeholder) */
.feature-placeholder {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: #e9ecef; /* Labai šviesiai pilka */
    user-select: none;
}

.placeholder-dash {
    font-weight: bold;
    font-size: 1.2rem;
    margin-left: 2px;
}

/* FAQ */
.accordion-button:not(.collapsed) {
    background-color: #f0f7ff;
    color: #0d6efd;
    font-weight: 600;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13,110,253,.125);
}

/* ========== PRICING MOBILE SCROLL ========== */

/* Tik mobiliems (ekranai < 768px) */
@media (max-width: 767px) {
    
    .pricing-scroll-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        
        /* PATAISYMAS: Priverstinis lygiavimas į kairę, kad nepaslėptų pirmos kortelės */
        justify-content: flex-start !important;
        
        padding-top: 2.5rem !important; /* Kad Most Popular badge matytųsi */
        padding-bottom: 1.5rem;
        
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch;
        
        /* Padding kad kortelė nebūtų prilipusi prie ekrano krašto */
        padding-left: 1.5rem; 
        padding-right: 1.5rem;
        
        /* Kompensuojame konteinerio paddingą */
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .pricing-scroll-container .col {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }
    
    .pricing-scroll-container::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }
}
/* Logo styling */
.navbar-brand {
    transition: opacity 0.2s;
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Favicon visibility in tabs */
link[rel="icon"] {
    visibility: visible !important;
}


/* Logo text styling */
.logo-text {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-link {
    color: #0f172a;
}

.logo-prospect {
    color: #0d6efd;
}

/* Hover */
.navbar-brand:hover .logo-link {
    color: #334155;
}

.navbar-brand:hover .logo-prospect {
    color: #6366f1;
}

/* Mobile optimization */
@media (max-width: 576px) {
    .logo-text {
        font-size: 1.3rem; /* Mažesnis mobiliuose */
    }
}
/* Header logo mažesnis */
.dashboard-header .logo-text {
    font-size: 1.3rem;
}

@media (max-width: 767px) {
    .dashboard-header .logo-text {
        font-size: 1.2rem;
    }
}
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    .container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .row > * {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}
