/* === OSNOVNI STIL ZA PRICING TABELU (DESKTOP) === */

/* Izolacija da se ne miješa sa ostatkom stranice */
.pricing-table-container {
    width: 100%;
    padding: 40px 0;
    background-color: white;
}

.pa-badge {
    background: #0b4f6b;
    color: white;
    padding: 3px 8px;
    margin-left: 8px;
    border-radius: 4px;
    font-size: 11px;
}
.pa-badge:hover {
    opacity: .8;
}

/* Ograničavamo Bootstrap container */
.pricing-table-container .container {
    max-width: 100%;
    padding: 20px;
}

/* Tabela stilovi */
.pricing-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table-container th,
.pricing-table-container td {
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 1em;

    /* sve kolone default centar */
    text-align: center;
    vertical-align: middle;
}

/* header */
.pricing-table-container th {
    background-color: white;
    font-weight: bold;
    font-size: 1em;
}

/* prva kolona: opis -> lijevo, gore */
.pricing-table-container td:first-child,
.pricing-table-container th:first-child {
    text-align: left !important;
    vertical-align: top !important;
}

/* Stilizacija kategorija u tabeli */
.pricing-table-container .category-title {
    background-color: #f4f9fb;
    font-weight: bold;
    text-align: left;
    padding: 10px 15px;
}

/* Tooltip ikone (unutra tabele) */
.pricing-table-container .tooltip-icon {
    cursor: pointer;
    color: #0d6efd;
    font-weight: bold;
    margin-left: 5px;
    font-size: 1em;
}

/* Ikone za ✔ i X */
.pricing-table-container .check-icon {
    color: #3083a5;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.pricing-table-container .minus-icon {
    color: red;
    font-size: 20px;
    text-align: center;
}

/* Tooltip poboljšanja (ako negdje koristiš Bootstrap tooltip) */
.pricing-table-container .tooltip {
    font-size: 18px !important;
    max-width: 450px !important;
    padding: 12px !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

.pricing-table-container .tooltip-inner {
    font-size: 18px !important;
    background-color: black !important;
    color: white !important;
    border-radius: 5px !important;
    padding: 12px !important;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2) !important;
    text-align: left !important;
    max-width: 450px !important;
}

.pricing-table-container .bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #fff !important;
}

/* Custom tooltip koji puni tvoj JS */
.custom-tooltip {
    position: absolute;
    background-color: #222;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 15px;
    max-width: 400px;
    display: none;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    transform: translateY(5px);
}

/* global tooltip ikona */
.tooltip-icon {
    cursor: pointer;
    color: #0d6efd;
    font-weight: bold;
    margin-left: 5px;
    font-size: 1.5em;
    position: relative;
}

/* Dugmad ispod paketa (desktop + mobile CTA) */
.plan-btn {
    background-color: transparent;
    color: #227799;
    border: 2px solid #227799;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    margin: 10px auto;
    text-align: center;
    text-decoration: none;
}

.plan-btn:hover {
    background-color: #227799;
    color: white;
}

.plan-btn.active {
    background-color: #227799;
    color: white;
}

.plan-btn.active:hover {
    background-color: #3083a5;
    color: white;
}

/* Prazne ćelije gasimo da ne prave ružne border-e */
td:empty {
    visibility: hidden;
    border: none;
}

th:empty {
    visibility: hidden;
    border: none;
}

/* === RESPONSIVE: DESKTOP vs MOBILE === */

/* DESKTOP: prikazujemo tabelu, kartice skrivene */
@media (min-width: 768px) {
    .pa-desktop-table {
        display: block;
    }
    .pa-mobile-cards {
        display: none;
    }
}

/* MOBILE: skrivamo tabelu, prikazujemo kartice */
@media (max-width: 767px) {
    .pa-desktop-table {
        display: none !important;
    }

    /* manje white space-a oko kartica */
    .pricing-table-container .container {
        padding: 20px 10px;
    }

    .pa-mobile-cards {
        display: block;
        padding: 0 5px 16px;
    }

    .pa-card {
        border: 1px solid #dbe5ea;
        border-radius: 12px;
        background: #ffffff;
        margin-bottom: 20px;
        overflow: hidden;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .pa-card-header {
        padding: 14px 16px 10px;
        text-align: center;
        background: #f4f9fb;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-size: 1rem;
        color: #0b4f6b;
    }

    .pa-card-price {
        font-size: 1.8rem;
        font-weight: 700;
        margin-top: 6px;
        color: #063547;
    }

    .pa-card-price span {
        font-size: 1rem;
        font-weight: 400;
        margin-left: 4px;
    }

    .pa-card-section {
        border-top: 1px solid #e5edf2;
    }

    .pa-card-section-title {
        background: #f4f9fb;
        padding: 10px 14px;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.9rem;
        color: #444;
        border-bottom: 1px solid #dbe5ea;
    }

    .pa-feature-row {
        padding: 10px 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eef2f5;
        gap: 10px;
    }

    .pa-feature-label {
        font-size: 0.95rem;
        max-width: 70%;
    }

    .pa-feature-value {
        font-size: 1.1rem;
        min-width: 50px;
        text-align: right;
    }

    @media (max-width: 767px) {
    .pa-badge {
        display: block;
        width: fit-content;
        margin: 8px auto 0 auto; /* centriran, mali razmak gore */
    }
   }

.pa-plan-cta-meta{
    font-weight: 500;
}

    .pa-mobile-cta {
        padding: 12px 14px 16px;
    }
}
