/* Custom Stylesheet for "Pracownie Kompas Jutra" Landing Page */
/* Modeled after Vidis.pl - clean, green, technology-focused, highly readable */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-primary: #00a651;        /* Vibrant green */
    --color-primary-rgb: 0, 166, 81;
    --color-dark: #0a3a20;           /* Deep forest green */
    --color-dark-rgb: 10, 58, 32;
    --color-light-bg: #f3fcf6;       /* Soft light green background */
    --color-accent: #8ee352;         /* Lime green accent */
    --color-text-dark: #212529;      /* Main text */
    --color-text-muted: #5c6c62;     /* Muted text */
    --color-border: #d4edd9;         /* Light green borders */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-dark);
}
.fw-boldest {font-weight:800;}
/* Section Styling */
section {
    padding: 90px 0;
}
.section-bg-light {
    background-color: var(--color-light-bg);
}
.section-title {
    position: relative;
    margin-bottom: 50px;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 0.5px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}
.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid var(--color-primary);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.2);
}
.btn-primary-custom:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 58, 32, 0.3);
}
.btn-secondary-custom {
    background-color: transparent;
    color: var(--color-dark);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid var(--color-dark);
    transition: var(--transition-smooth);
}
.btn-secondary-custom:hover {
    background-color: var(--color-dark);
    color: #ffffff;
    transform: translateY(-2px);
}
.btn-white-custom {
    background-color: #ffffff;
    color: var(--color-dark);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid #ffffff;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-white-custom:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Sticky Navigation */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    padding: 15px 0;
}
.navbar-custom.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.navbar-brand-text {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-dark);
}
.navbar-brand-text span {
    color: var(--color-primary);
}
.navbar-custom .nav-link {
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: var(--transition-smooth);
    position: relative;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: calc(100% - 32px);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--color-primary) !important;
}
/* Adjustments for large screens (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-custom .nav-link, .navbar-custom .nav-item .btn {
        font-size: 0.75rem; /* Slightly smaller font size */
        padding-left: 0.8rem !important; /* Adjust horizontal padding */
        padding-right: 0.8rem !important; /* Adjust horizontal padding */
    }
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(10, 58, 32, 0.95) 0%, rgba(0, 166, 81, 0.9) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/></svg>') repeat;
    background-size: cover;
    color: #ffffff;
    padding: 150px 0 120px 0;
    position: relative;
    overflow: hidden;
}
.hero-section h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}
.hero-circle-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 227, 82, 0.15) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    right: -100px;
}

/* Stats Highlight Card */
.stats-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.stats-number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}
.stats-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    height: 100%;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 166, 81, 0.08);
    border-color: var(--color-primary);
}
.info-card-icon {
    font-size: 2rem;
    color: var(--color-primary);
    background-color: var(--color-light-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Timeline Components */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
}
.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
@media (max-width: 768px) {
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #ffffff;
    border: 4px solid var(--color-primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-left {
    left: 0;
}
.timeline-right {
    left: 50%;
}
@media (max-width: 768px) {
    .timeline-right {
        left: 0;
    }
    .timeline-container::after {
        left: 21px;
        right: auto;
    }
}
.timeline-left::after {
    right: -10px;
}
.timeline-right::after {
    left: -10px;
}
@media (max-width: 768px) {
    .timeline-left::after {
        left: 21px;
    }
}
.timeline-content {
    padding: 25px;
    background-color: #ffffff;
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}
.timeline-days {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.timeline-days.passed {background-color: #999; color:white}

/* Voivodeship Search Section */
.search-wrapper {
    max-width: 500px;
    margin: 0 auto 30px auto;
}
.search-input {
    border-radius: 30px;
    padding: 12px 25px;
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}
.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.15);
    outline: none;
}
.voivodeship-table {
    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--color-border);
}
.voivodeship-table th {
    background-color: var(--color-dark);
    color: #ffffff;
    font-weight: 600;
    border: none;
}
.voivodeship-table td {
    vertical-align: middle;
}
.badge-status {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}
.badge-status-open {
    background-color: #d1e7dd;
    color: #0f5132;
}
.badge-status-pending {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Product Card Link Wrapper */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
    height: 100%; /* Ensure the link takes full height of the column */
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 166, 81, 0.1);
    border-color: var(--color-primary);
}



/* Product Section */
.product-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.product-tab-btn {
    border: 2px solid var(--color-border);
    background-color: #ffffff;
    color: var(--color-dark);
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 30px;
    transition: var(--transition-smooth);
}
.product-tab-btn:hover,
.product-tab-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}
.product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure image corners are rounded */
    position: relative; /* Added for stretched-link */
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 166, 81, 0.1);
    border-color: var(--color-primary);
}
.product-image-placeholder {
    height: 300px;
    background-color: #e8f5e9;
    position: relative;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    color: var(--color-primary); /* Fallback color if no image */
    font-size: 2.5rem; /* Fallback icon size */
}
.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the area */
}
.product-image-placeholder i {
    opacity: 0.8;
}
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
}
.product-badge-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}
.product-badge-recom {
    background-color: var(--color-accent);
    color: var(--color-dark);
}
.product-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.product-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}
.copy-btn {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.copy-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Document Card Link Wrapper */
.doc-card-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Inherit text color from parent */
    height: 100%; /* Ensure the link takes full height of the column */
}

/* Document cards (Wnioski) */
.doc-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 25px;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    height: 100%;
}
.doc-card-link:hover .doc-card {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 166, 81, 0.05);
    border-color: var(--color-primary);
}
.doc-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-right: 15px; /* Adjusted margin for better spacing */
    display: flex;
    align-items: center;
}
.doc-info {
    flex-grow: 1;
}
.doc-download-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}
.doc-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.doc-btn {
    color: var(--color-primary);
    /* This class is no longer used as the entire card is the link */
}

/* FAQ Section */
.faq-accordion .accordion-item {
    border: 1px solid var(--color-border);
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--color-dark);
    padding: 20px;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-primary);
}
.faq-accordion .accordion-body {
    padding: 20px;
    background-color: #ffffff;
    font-size: 0.95rem;
}

/* Beneficiary Quote */
.quote-section {
    background-color: var(--color-dark);
    color: #ffffff;
    padding: 80px 0;
    position: relative;
}
.quote-icon {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
}
.quote-text {
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
}
.quote-author {
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 15px;
}

/* Promo Banner */
.promo-banner {
    background-color: var(--color-dark);
    border-radius: 24px;
    padding: 50px;
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.15);
    position: relative;
    overflow: hidden;
    
    /* GŁÓWNA ZMIANA: Składnia wielokrotnego tła */
    background: 
        url('img/vidis-circle.png') no-repeat right -50px center / 400px, 
        linear-gradient(135deg, #0a3a20 0%, #00a651 100%) no-repeat left top / cover;
}
.promo-banner h3 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
        text-shadow: 1px 2px 10px rgba(0, 0, 0, 0.5);

}
.promo-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 700px;
     text-shadow: 1px 2px 10px rgba(0, 0, 0, 1);

}

/* Footer styling */
.footer-custom {
    background-color: #051c0f;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px 0;
    border-top: 4px solid var(--color-primary);
    font-size: 0.9rem;
}
.footer-custom h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
}
.footer-custom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-custom a:hover {
    color: var(--color-accent);
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    margin-right: 10px;
    transition: var(--transition-smooth);
}
.footer-social-link:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
}
.footer-bottom {
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
}

/* Alerts and specific list overrides */
.alert-info-custom {
    background-color: #e8f4fd;
    border-left: 4px solid #0d6efd;
    color: #084298;
    border-radius: 8px;
    padding: 15px 20px;
}
.alert-warning-custom {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #664d03;
    border-radius: 8px;
    padding: 15px 20px;
}

/* --- Voivodeship Table Status Styling (Consolidated) --- */
/* Base styles for voivodeship table rows */
.voivodeship-table .voivodeship-row td {
    vertical-align: middle;
    transition: background-color 0.3s ease, color 0.3s ease;
}





/* Status: Oczekuje (Pending) */
.voivodeship-table tbody {
    background-color: transparent; /* Ensure tbody doesn't block tr backgrounds */
}

.voivodeship-table .voivodeship-row[data-status="Oczekuje"] {
    background-color: #ffffff; /* Białe tło */
}
.voivodeship-table .voivodeship-row[data-status="Otwarty"]:hover td {
    box-shadow: inset 0 0 0 9999px #d4edd9 !important;
}
.voivodeship-table .voivodeship-row[data-status="Otwarty"] td {
    box-shadow: inset 0 0 0 9999px rgba(0,164,88,0.1) !important;
}
.voivodeship-table .voivodeship-row[data-status="Oczekuje"] td:first-child {
    font-weight: 600; /* fw-semibold */
}
.voivodeship-table .voivodeship-row[data-status="Oczekuje"] .badge-status {
    background-color: #f8f9fa; /* badge-status-pending - jasnoszary */
    color: #6c757d; /* badge-status-pending - ciemnoszary tekst */
    border: 1px solid #dee2e6; /* badge-status-pending - jasnoszara ramka */
}
.voivodeship-table .voivodeship-row[data-status="Oczekuje"] td:nth-child(3),
.voivodeship-table .voivodeship-row[data-status="Oczekuje"] td:nth-child(4) {
    color: var(--color-text-muted) !important; /* text-muted */
}

/* Status: Otwarty (Open) */
.voivodeship-table .voivodeship-row[data-status="Otwarty"] { cursor: pointer;}
.voivodeship-table .voivodeship-row[data-status="Otwarty"] td.voivodeshiplink {
  position: relative;
  padding-right: 70px; /* Bezpieczny margines, aby tekst komórki nie nachodził na badge */
}
.voivodeship-table .voivodeship-row[data-status="Otwarty"] td.voivodeshiplink::after {
  content: "Zobacz";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  
  /* Style imitujące klasę .badge-status */
  background-color:var(--color-primary);
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 100px;
  font-weight: bold;
}

/* POPRAWKA: Jeśli hover najedzie na "Zobacz", nie zmieniaj koloru tekstu w tym konkretnym badge */
.voivodeship-table.table-hover tbody tr.voivodeship-row:hover td.voivodeshiplink::after {
    color: white !important;
}

.voivodeship-table .voivodeship-row[data-status="Otwarty"] {
    background-color: var(--color-light-bg); /* delikatne zielone tło */
}
.voivodeship-table .voivodeship-row[data-status="Otwarty"] td:first-child {
    font-weight: 700; /* fw-bold */
    color: var(--color-primary) !important; /* zielony tekst */
    position: relative;
}
.voivodeship-table .voivodeship-row[data-status="Otwarty"] .badge-status {
    background-color: #d1e7dd; /* badge-status-open - jasny zielony */
    color: #0f5132; /* badge-status-open - ciemny zielony tekst */
}
.voivodeship-table .voivodeship-row[data-status="Otwarty"] td:nth-child(3),
.voivodeship-table .voivodeship-row[data-status="Otwarty"] td:nth-child(4) {
    font-weight: 600; /* fw-semibold */
    color: var(--color-dark); /* ciemny tekst dla dat */
}

/* Status: Zamknięty (Closed) */
.voivodeship-table .voivodeship-row[data-status="Zamknięty"] {
    background-color: #f8d7da; /* Lekko czerwone tło */
}
.voivodeship-table .voivodeship-row[data-status="Zamknięty"] td:first-child {
    font-weight: 700; /* fw-bold */
    color: #dc3545 !important; /* Czerwony tekst */
}
.voivodeship-table .voivodeship-row[data-status="Zamknięty"] .badge-status {
    background-color: #f5c6cb; /* Lekko ciemniejszy czerwony dla badge */
    color: #721c24; /* Ciemny czerwony tekst dla badge */
}
.voivodeship-table .voivodeship-row[data-status="Zamknięty"] td:nth-child(3),
.voivodeship-table .voivodeship-row[data-status="Zamknięty"] td:nth-child(4) {
    color: #6c757d !important; /* Wygaszony tekst dla dat */
}
