/* ============================================================================
   testStyles.css – Stilovi za prikaz testova (WordPress frontend)
============================================================================ */

/* ========================================================
   GRUPIRANJE PO LOKACIJI I GRUPI
======================================================== */
.pt-lokacija-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 40px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    color: #222;
}
.pt-group-title {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #003366;
    font-weight: 600;
    text-align: left;
}
.pt-group-wrapper {
    width: 100%;
    display: block;
}

/* ========================================================
   GRID ZA KARTICE TESTOVA
======================================================== */
.pt-test-list {
    display: block;
    margin-bottom: 30px;
}
.pt-test-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc(100% / var(--pt-cols)), 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

/* ========================================================
   KARTICA TESTA
======================================================== */
.pt-test-card {
    padding: 6px 12px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    transition: 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}
.pt-test-card h3 {
    margin: 4px 0;
    font-size: 16px;
}
.pt-test-card:hover {
    transform: scale(1.02);
}

/* ========================================================
   OZNAKE NOVO I AŽURIRANO
======================================================== */
.pt-test-card.is-new {
    border: 2px solid #3bd61c;
    background: #ecffedba;
}
.pt-test-card.is-updated {
    border: 2px solid #e6840e;
    background: #fff2df;
}
.pt-new-badge, .pt-updated-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pt-new-badge {
    background: #1aa01a;
}
.pt-updated-badge {
    background: #ff9e1a;
}

/* ========================================================
   ELEMENTI KARTICA – tekstualni detalji
======================================================== */
.pt-title {
    font-size: 16px;
    font-weight: bold;
    color: #9d0000;
}
.pt-bold {
    font-weight: bold;
}
.pt-hr {
    font-size: 13px !important;
    font-weight: bold;
    color: #6d0505 !important;
}
.pt-eng {
    font-style: italic;
    font-size: 13px !important;
    color: #084e7d !important;
}
.pt-meta-line {
    font-size: 12px;
    color: #555;
    margin: 5px;
}
.pt-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.pt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pt-meta-left {
    flex: 1;
    color: #444;
}
.pt-meta-right {
    white-space: nowrap;
    color: #999;
    font-style: italic;
}

/* ========================================================
   PRIKAZ DETALJA TESTA
======================================================== */
.pt-test-detail {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.pt-field-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}
.pt-field-row:nth-child(even) { background-color: #f9f9f9; }
.pt-field-row:nth-child(odd) { background-color: #ffffff; }
.pt-label {
    font-weight: 600;
    color: #333;
    min-width: 180px;
    padding-right: 10px;
}
.pt-value {
    color: #444;
}
.pt-group-title-detail {
    font-weight: bold;
    color: #084e7d;
    font-size: 18px;
    display: inline-block;
}

/* ========================================================
   INFO PORUKE I POGREŠKE
======================================================== */
.pt-message {
    color: red;
    font-weight: bold;
    padding: 20px;
    text-align: center;
}
.pt-error {
    background-color: #ffe5e5;
    border: 1px solid #cc0000;
}

/* ========================================================
   BLOKOVI ZA POPIS NOVIH / AŽURIRANIH
======================================================== */
.pt-new-tests, .pt-updated-tests {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 5px;
}
.pt-new-tests {
    background-color: #ecffedba;
    border: 2px solid #3bd61c;
}
.pt-updated-tests {
    background-color: #fff8e1;
    border: 2px solid #ffa726;
}
.pt-new-tests h3 {
    color: #cc0000;
}
.pt-updated-tests h3 {
    color: #d17d00;
}
.pt-new-test-list, .pt-updated-test-list {
    list-style: disc;
    padding-left: 20px;
}
.pt-new-test-list li, .pt-updated-test-list li {
    margin-bottom: 6px;
}
.pt-new-date, .pt-update-date {
    color: #555;
    font-size: 13px;
}

/* ========================================================
   TRAŽILICA
======================================================== */
.pt-search-wrapper {
    margin-bottom: 20px;
    padding: 10px 0;
    position: relative;
}
#pt-test-search {
    padding: 6px 10px;
    font-size: 14px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #aaa;
    border-radius: 4px;
}
#pt-clear-btn {
    background: #eee;
    border: none;
    font-size: 16px;
    padding: 4px 10px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
}
#pt-clear-btn:hover {
    background: #ccc;
}
#pt-clear-btn-sidebar {
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    padding: 0 6px;
    color: #333;
    cursor: pointer;
    margin-left: -28px;
    z-index: 2;
}
#pt-test-search-sidebar {
    padding-right: 26px;
}

/* ===== ODJEL (ispred grupe) ===== */
.pt-department-title {
    font-size: 20px;
    font-weight: 600;
    color: #666;              /* tamnosiva */
    margin: 18px 0 4px 0;
/*    font-style: italic;*/
    border-bottom: 1px dashed #ccc;
}




/* ========================================================
   REFERENTNE VRIJEDNOSTI – TABLICA TOGGLE BLOK
======================================================== */
.pt-ref-toggle-block {
    margin-top: 32px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.pt-ref-toggle-line {
    cursor: pointer;
    font-weight: bold;
    padding: 8px 0;
    margin-bottom: 6px;
    user-select: none;
    display: flex;
    align-items: center;
    font-size: 17px;
    color: #333;
}

.pt-ref-toggle-line:hover {
    color: #0074cc;
}

#pt-ref-toggle-icon {
    margin-left: 6px;
    font-size: 14px;
    display: inline-block;
    transform: translateY(1px);
    color: #444;
}

.pt-ref-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: inherit;           /* 🔁 NE koristi lokalnu veličinu – nasljeđuje iz stranice */
    font-family: inherit;         /* 🔁 Nasljeđuje iz teme */
    background-color: #fff;
    color: #333;
}

.pt-ref-table th {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    font-weight: 600;
    font-size: inherit;           /* 🔁 Ujednačeno */
    text-align: left;
    padding: 10px;
    border: none;
    border-right: none !important;
    border-bottom: 1px solid #ddd;
}

.pt-ref-table td {
    background-color: #fff;
    color: #333;
    font-size: inherit;           /* 🔁 Ujednačeno */
    padding: 10px;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    vertical-align: top;
    line-height: 1.5em;
}


.pt-ref-table tbody tr:nth-child(even) td {
    background-color: #f9f9f9;
}

/* Prvi stupac boldiran */
.pt-ref-table td:first-child {
    font-weight: bold;
}

