/* style.css */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    min-height: 100vh;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
}

body.centered-body {
    justify-content: center;
    align-items: center;
}

h1, h2, h3 {
    text-align: left;
}

h3 {
    border-left: 5px solid #3498db;
    padding-left: 15px;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.container {
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    text-align: left;
    flex: 1 0 auto;
}

.login-container {
    max-width: 420px;
    flex: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

form label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
}
form input {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 8px;
    box-sizing: border-box;
}

/*---------------------------------------- */
/* SEZNAM TERMINOV                             */
/*---------------------------------------- */

/* Osnovni stil, ki ga že imaš, malo dopolnjen */
.admin-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    font-size: 14px; /* Malo manjša pisava za boljšo preglednost */
}

.admin-tabela th, .admin-tabela td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.admin-tabela th {
    background-color: #2c3e50;
    color: white;
}

.admin-tabela tr:nth-child(even) {
    background-color: #f9f9f9;
}

.status-ura {
    font-weight: bold;
    color: #2980b9;
}

@media screen and (max-width: 768px) {
    /* Tabelo spremeniva v blok, da se vrstice ne ravnajo vodoravno */
    .admin-tabela, .admin-tabela thead, .admin-tabela tbody, .admin-tabela th, .admin-tabela td, .admin-tabela tr {
        display: block;
    }

    /* Skrijemo glavo tabele (th), ker bo vsaka celica dobila svojo oznako */
    .admin-tabela thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .admin-tabela tr {
        margin-bottom: 15px;
        border: 1px solid #2c3e50;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .admin-tabela td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 40%; /* Tukaj naredimo prostor za napise */
        text-align: right; /* Podatki bodo desno */
        min-height: 40px;
    }

    /* Tukaj dodamo "naslove" pred vsak podatek z uporabo data-label */
    .admin-tabela td:before {
        position: absolute;
        left: 10px;
        width: 35%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #2c3e50;
        content: attr(data-label); /* To bo prebralo podatek iz HTML-ja */
    }

    .admin-tabela td:last-child {
        border-bottom: none;
    }

    .status-ura {
        background-color: #f1f7fa;
        color: #2980b9;
        text-align: right !important;
    }
}

/*---------------------------------------- */

h1 {
    color: #3498db;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #dcdde1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: border 0.3s, box-shadow 0.3s;
    font-size: 1rem;
    color: #2c3e50;
    appearance: none; /* Odstranimo privzet videz brskalnika */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
}

select:disabled {
    background-color: #f5f6fa;
    color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.7;
}

input:focus,
select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

button {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Posebni gumbi z barvami */
button.btn-blue {
    background: #3498db;
    max-width: 300px;
}

button.btn-green {
    background: #2ecc71;
    max-width: 250px;
}

/* Navigacija in Footer */
.nav-mobile { display: none; }
.nav-links { display: block; }

/* Na mobilnih napravah (pod 768px) prikažemo select meni in skrijemo povezave */
@media screen and (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile { display: block; width: 90%; margin: 0 auto; }
    .nav-mobile select { margin: 5px 0; width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #ddd; }
}

nav, footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

nav {
    width: 100%;
    border-radius: 0 0 15px 15px;
    margin-bottom: 20px;
}

nav a {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    margin: 0 15px;
}

footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 20px;
    text-align: center;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

.footer-logo-container {
    margin-top: 15px;
}

.footer-logo {
    width: 180px;
    height: auto;
    border-radius: 5px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Sekcije na index strani */
.dashboard-box {
    background: rgba(52, 152, 219, 0.1);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    border: 1px solid #3498db;
}

.promo-box {
    background: rgba(46, 204, 113, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid #2ecc71;
}

.ponudba {
    display: flex;
    flex-wrap: wrap; /* Omogoči prelom v novo vrstico */
    gap: 20px; /* Razmik med karticami */
    justify-content: flex-start; /* Centriranje kartic */
    margin-top: 20px;
}

/* Sama kartica naj se raztegne čez celo širino povezave */
.kartica {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ddd;
    width: 100%; /* Zapolni 50% prostor, ki ga daje .kartica-link */
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kartica:hover {
    transform: translateY(-5px);
}

.kartica h4 {
    color: #3498db;
    margin-top: 0;
}

.kartica strong {
    color: #2c3e50;
    display: block;
    margin-top: 10px;
}

/* Stil za povezavo, ki ovija kartico */
.kartica-link {
    text-decoration: none;
    color: inherit;
    /* Izračun širine: 50% minus polovica razmika (gap) */
    width: calc(50% - 10px);
    display: flex;
}

/* Učinek ob prehodu z miško - samo ko je kartica znotraj povezave */
.kartica-link:hover .kartica {
    background: #f0f7ff;
    border-color: #3498db;
    transform: translateY(-3px);
    transition: all 0.2s ease;
}

/* Majhen napis "KLIKNI ZA REZERVACIJO", ki se pojavi prijavljenim */
.rezerviraj-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8em;
    color: #3498db;
    font-weight: bold;
    text-transform: uppercase;
}

/* Namizne širine - dodaj pod .card v style.css */
#card-koledar { flex: 1.5; min-width: 350px; }
#col-obrazec { flex: 1; min-width: 300px; }

/* DODATKI ZA NAROCI.PHP */

.main-content, .benefits-row {
    width: 100%;
    margin-bottom: 2rem;
}

.description-text, .benefits-box {
    text-align: left;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ddd;
    overflow: hidden;
}

#koledar {
    width: 100%;
    background: white;
    padding: 5px;
    border-radius: 10px;
}

.map-container {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

button.btn-sekundarni {
    background: #95a5a6;
    max-width: 300px;
}

/* Novi razredi za profil.php */
.info-box {
    text-align: left;
    background: rgba(255,255,255,0.5);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.reservations-box {
    text-align: left;
    background: #eef7ff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #3498db;
    margin-bottom: 20px;
}

.res-list {
    list-style: none;
    padding: 0;
}

.res-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 5px solid #2ecc71;
}

.btn-rezervacija {
    width: 100%;
    padding: 18px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.3s;
}

/* DODATKI ZA PRIKAZ GESLA */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100% !important;
    padding-right: 45px !important; /* Prostor za ikono */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: calc(50% - 6px); /* Centriranje glede na input (odštet margin-bottom) */
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 1.2rem;
    color: #7f8c8d;
    z-index: 10;
}

.toggle-password:hover {
    color: #3498db;
}

/*-------------------------------------------------------------*/
/* PRODAJNA STRAN                                              */
/*-------------------------------------------------------------*/

.hero-section {
    text-align: left;
    padding: 3rem 1.5rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px dashed #3498db;
}

.sub-title {
    color: #2c3e50;
    font-size: 1.4rem;
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 850px;
    margin: 0;
    color: #34495e;
}

.info-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 2.5rem;
    text-align: left;
}

.info-box-vsebinska { /* Preimenoval sem, da ne povozi tvojega .info-box za profil */
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 6px solid #2ecc71;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.info-box-vsebinska h3 {
    margin-top: 0;
    color: #27ae60;
    font-size: 1.2rem;
    border-left-color: #2ecc71; /* Zelena črta za ta box */
}

.info-box-vsebinska ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.info-box-vsebinska li {
    margin-bottom: 8px;
}

.pricing-section {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.promo-alert {
    color: #e67e22;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 15px 0;
}

.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.rezervacija-box {
    background: #f0f7ff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid #3498db;
    margin-top: 2rem;
}

.kontakti {
    margin: 20px 0;
    font-size: 1.1rem;
}

.kontakti a {
    color: #e74c3c;
    text-decoration: none;
    font-size: 1.3rem;
}

.obmocje {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Prilagoditev za mobilne naprave */
@media (max-width: 768px) {
    .info-grid {
        flex-direction: column;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .sub-title {
        font-size: 1.1rem;
    }
}

/*-------------------------------------------------------------*/

/*-------------------------------------------------------------*/
/* GUMBA ZA IZBRIS REZERVACIJE                                 */
/*-------------------------------------------------------------*/

.res-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.btn-delete {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #fff0f0;
}

#map-profil {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px solid #ddd;
}

/*-------------------------------------------------------------*/

/*-------------------------------------------------------------*/
/* SLIKA SE ZLIJE Z BELIM OZADJEM                               */
/*-------------------------------------------------------------*/

.bela-slika {
    /* Poveča svetlost, da siva postane bela */
    filter: brightness(1.1) contrast(1.3);
    /* Izboljša ostrino napisov */
    image-rendering: -webkit-optimize-contrast;
}

/*-------------------------------------------------------------*/

@media (max-width: 1100px) {
    /* Container pripravi teren */
    .container {
        padding: 15px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* KLJUČ: Vsem trem elementom, ki jih vidiš kot "okna", damo IDENTIČNA pravila */
    /* Dodal sem #col-obrazec v skupino, ki ne sme imeti padding, da ne oži kartic znotraj */
    #card-koledar,
    .flex-col#col-obrazec,
    .card {
        width: 96% !important;
        max-width: 96% !important;
        margin: 10px auto !important;
        padding: 0 !important; /* Resetira starševski padding */
        display: block !important;
        flex: none !important;
    }

    /* Zdaj pa karticam znotraj (vnos termina, zemljevid) damo padding,
       koledarju pa ne, da se vsi vizualno izravnajo */
    .card {
        padding: 15px !important;
        width: 100% !important; /* Te so zdaj znotraj col-obrazca, ki je že na 96% */
        max-width: 100% !important;
    }

    #card-koledar {
        padding: 15px !important; /* Tukaj določiš enak rob kot pri .card */
    }

    #koledar {
        width: 100% !important;
        margin: 0 !important;
        font-size: 0.7em;
    }

    /* Odstranimo vse flex vplive, ki delajo razlike v širini */
    .flex-row, .flex-col {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Specifično za Firefox in FullCalendar tabele */
    .fc-scrollgrid,
    .fc-datagrid,
    .fc-col-header,
    .fc-daygrid-body,
    .fc-scrollgrid-sync-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important; /* Prisili Firefox, da ne širi stolpcev */
    }

    /* Firefox včasih rabi min-width: 0 na flex starših, da se vsebina skrči */
    .flex-row, .flex-col, .container, #card-koledar {
        min-width: 0 !important;
    }

    /* Skrijemo vodoravni scroll, če bi Firefox še vedno hotel malo po svoje */
    #card-koledar {
        overflow-x: hidden !important;
    }

    /* Zmanjšajmo padding v celicah koledarja za Firefox */
    .fc-daygrid-day-frame {
        padding: 2px !important;
    }
}

.btn-blue.loading, .btn-green.loading {
    pointer-events: none;
    cursor: wait;
}

/* Modalno okno za obvestila */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Skrito po privzetem */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content h3 {
    color: #3498db;
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

.modal-content p {
    line-height: 1.6;
    margin: 15px 0;
}

/* --- MODALNA GALERIJA ZA SLIKE (Ločeno od modal-content) --- */
.modal-gallery {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(255, 255, 255, 1);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.modal-gallery-img {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    margin: 0;
    display: block;
}

.close-gallery {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    z-index: 10001;
    background: rgba(255,255,255,0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .modal-gallery-img {
        width: 100vw;
        height: 100vh;
        object-fit: contain;
    }
    
    .close-gallery {
        top: 10px;
        right: 10px;
        font-size: 35px;
    }

    .modal-gallery {
        background-color: #fff;
    }
}


/* Sličice na strani (Thumbnails) - OHRANIMO ZA VSAK SLUČAJ ALI ODSTRANIMO */
.thumb-container {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.thumb-container:hover {
    transform: scale(1.1);
}

.thumb-gallery {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.thumb-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .thumb-gallery {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .thumb-container {
        width: 100%;
        max-width: 450px;
    }

    .thumb-img {
        width: 100%;
        height: auto;
        aspect-ratio: auto; /* Na mobilnih pustimo naravno razmerje slike */
    }
}

/* --- PROFESIONALNI SEZNAMI (SUPER PRO TOP) --- */

/* Skupni stili za sezname */
.benefits-box, .warning-box {
    text-align: left;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefits-box:hover, .warning-box:hover {
    transform: translateY(-5px);
}

.benefits-box {
    background: #ffffff;
    border-top: 5px solid #2ecc71;
}

.warning-box {
    background: #ffffff;
    border-top: 5px solid #e74c3c;
    margin-top: 3rem;
}

.benefits-box h3, .warning-box h3 {
    margin-top: 0;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.benefits-box h3 { 
    color: #27ae60; 
    border-left-color: #2ecc71;
}
.warning-box h3 { 
    color: #c0392b; 
    border-left-color: #e74c3c;
}

.pro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-list li {
    position: relative;
    padding: 12px 0 12px 35px;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
}

.pro-list li:last-child {
    border-bottom: none;
}

/* Ikone za kljukice (Benefits) */
.benefits-box .pro-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Ikone za opozorila (Warning) */
.warning-box .pro-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Prilagoditev kolone za opozorila na namizju */
@media (min-width: 769px) {
    .warning-box .pro-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 40px;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*-------------------------------------------------------------*/
/* ADMIN STRAN                                                 */
/*-------------------------------------------------------------*/

/* Specifični stili za admin.php, da ne povozimo globalnih stilov */
.admin-page { font-family: Arial, sans-serif !important; background: white !important; min-height: auto !important; display: block !important; }
.admin-container { padding: 20px; }
.admin-page .btn { padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-block; margin: 5px; }
.admin-page .btn-edit { background: #28a745; color: white; }
.admin-page .btn-delete { background: #dc3545; color: white; }
.admin-page table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.admin-page th, .admin-page td { border: 1px solid #ddd; padding: 12px; text-align: left; vertical-align: middle; }
.admin-page th { background-color: #f2f2f2; color: #333; }
.admin-page tr:nth-child(even) { background-color: #f9f9f9; }

/* Stil za sliko v tabeli */
.admin-page .img-preview {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    border: 1px solid #ddd;
    object-fit: cover;
    display: block;
}
.admin-page .img-cell {
    text-align: center;
}
.admin-page .no-image {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

/* Info sporočilo ob uspešnem shranjevanju */
.admin-page .success-msg {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Tip vsebine - barvna oznaka */
.admin-page .type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
}
.admin-page .type-heading { background: #e3f2fd; color: #1565c0; }
.admin-page .type-subheading { background: #fff3e0; color: #ef6c00; }
.admin-page .type-paragraph { background: #f3e5f5; color: #7b1fa2; }
.admin-page .type-list { background: #e8f5e9; color: #2e7d32; }
.admin-page .type-table { background: #fce4ec; color: #c2185b; }
.admin-page .type-image { background: #fff8e1; color: #f57f17; }

/* ODZIVNOST ZA ADMIN TABELO */
@media screen and (max-width: 768px) {
    .admin-page table, 
    .admin-page thead, 
    .admin-page tbody, 
    .admin-page th, 
    .admin-page td, 
    .admin-page tr {
        display: block;
    }

    .admin-page thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .admin-page tr {
        margin-bottom: 20px;
        border: 2px solid #3498db;
        border-radius: 10px;
        background: white;
        padding: 5px;
    }

    .admin-page td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 45% !important;
        text-align: right !important;
        min-height: 45px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .admin-page td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 40%;
        text-align: left;
        font-weight: bold;
        color: #3498db;
    }

    .admin-page td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-left: 10px !important;
    }

    .admin-page .img-preview {
        margin-left: auto;
    }
}
