/* ============================= */
/*   HTML I BODY                 */
/* ============================= */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    height: 100vh;
    font-family: Verdana, Arial, sans-serif;

    /* Slika u pozadini */
    background-image: url('/slike/book-crtez.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 0;
}

/* Bledi overlay bez mutenja */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 230, 196, 0.6); /* bledja verzija */
    z-index: -1;
}



p {
    display: block;
    width: 100%; /* Ovim se obezbeđuje da `p` uzme celu širinu */
}


/* Osnovni stil za obaveštenja */
.msg {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-family: Verdana, Arial, sans-serif;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    box-sizing: border-box;
}


/* ============================*/
/*   STIL ZA OBAVEŠTAVANJE     */
/* ============================*/
/* Opcionalno: Stil za obaveštenje pri pretrazi i izmeni */
.msgSuccess, .msgError, .msgInfo {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;  /* Poravnava obaveštenje u centru */
}


/* Stil za uspešno obaveštenje - manje intenzivna zelena */
.msgSuccess {
    background-color: #e2f0d9; /* Svetlo zelena */
    color: #387e3b;             /* Tamno zelena za tekst */
    border: 2px solid #c8e0c3;  /* Blaga svetlo zelena ivica */
}

/* Stil za grešku - manje intenzivna crvena */
.msgError {
    background-color: #f9d6d9; /* Svetlo crvena */
    color: #9e2a2f;             /* Tamno crvena za tekst */
    border: 2px solid #f1c5c8;  /* Blaga svetlo crvena ivica */
	
}


/* Stil za informaciju - plavi tonovi u istom stilu */
.msgInfo {
    background-color: #dbeafe; /* Svetlo plava */
    color: #1e3a8a;            /* Tamno plava za tekst */
    border: 2px solid #bfdbfe; /* Blaga svetlo plava ivica */
}

/* Alternativno naglašavanje – crna boja */
.msgInfo span,
.msgError span,
.msgSuccess span {
    color: #000000;   /* Crna */
    font-weight: 600;
}

/* ============================= */
/*       WELCOME BOX             */
/* ============================= */
.welcome-box { 
    position: relative;
    width: 60%;
    min-width: 300px;
    max-width: 800px;

    background: rgba(245, 230, 196, 0.92); /* papir */
    border: 2px solid #6b4f2f;
    border-top-width: 3px;
    border-right-width: 3px;
    border-radius: 12px;

    padding: 40px 30px;
    margin: 80px auto;

    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    color: #6b4f2f;
    line-height: 1.5;

    /* Lagana senka ispod boxa */
    box-shadow:
        6px 6px 14px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* BLUR ISPOD BOXA */
.welcome-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    border-radius: 12px;
}

/* CITAT */
.welcome-box .quote-text {
    display: block;
    margin: 25px 20px 10px 20px; /* suptilne margine oko citata */
    font-size: 18px;
    font-family: Georgia, serif; /* klasični serif font za citate */
    font-style: italic;
    color: #5a3e28; /* tamnija boja za dobar kontrast */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* lagana senka za čitljivost */
    line-height: 1.6;
}

/* AUTOR */
.welcome-box .quote-author {
    display: block;
    margin-top: 10px;
    text-align: right;
    font-size: 14px;
    font-style: italic;
    color: #8b5e3c;
}

/* HERO SUBTITLE */
.welcome-box .hero-subtitle {
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.4;
    color: #6b4f2f;
}

/* ============================= */
/* NASUMIČNE BOJE ZA CITATE I AUTORE */
/* ============================= */
.quote-color1 { color: #6b4f2f; }  /* tamno braon */
.quote-color2 { color: #ac9579; }  /* svetlo braon */
.quote-color3 { color: #8c5c3f; }  /* srednje braon */
.quote-color4 { color: #4e3b2f; }  /* tamniji braon */
.quote-color5 { color: #92755b; }  /* neutral braon */



/* ============================= */
/*   FORMA ZA PRIJAVU           */
/* ============================= */
.paper-bg {
    width: 450px;
    height: 250px;
    background-image: url("../slike/paper-small.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 20px;
    box-sizing: border-box;
}

.form-title {
    margin: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #6b4f2f;
}

.transparent-input {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #333;
    color: #000;
    padding: 6px 5px;
    font-size: 14px;
    outline: none;
    width: 180px;
}

.transparent-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.submit-btn {
    background-color: transparent;
    border: 2px solid #6b4f2f;
    padding: 6px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #6b4f2f;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background-color: rgba(107, 79, 47, 0.1);
}

.reset-btn {
    background-color: transparent;
    border: 2px solid #b35a5a;
    padding: 6px 26px;      /* malo šire od submit-a */
    margin-left: 10px;     /* razmak udesno od submit-a */
    cursor: pointer;
    font-size: 14px;
    color: #b35a5a;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background-color: #f3dada;
}

/* ============================= */
/*   FLOATING DUGMAD             */
/* ============================= */
.floating-buttons {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.action-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #6b4f2f;
    background-color: #f5e6c4;
    color: #6b4f2f;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #6b4f2f;
    color: #f5e6c4;
    transform: translateY(-3px);
}

/* ============================= */
/*   HAMBURGER - MOBILE          */
/* ============================= */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    font-size: 26px;
    background: #f5e6c4;
    border: 2px solid #6b4f2f;
    color: #6b4f2f;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
}


/* ================================== */
/*   DROPDOWN ZA DUGME AUTORIZACIJA   */
/* ================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f5e6c4;
    min-width: 180px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #6b4f2f;
    border-radius: 4px;
    z-index: 1001;
    flex-direction: column;
}

.dropdown-content a {
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    color: #6b4f2f;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #6b4f2f;
    color: #f5e6c4;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* =================================== */
/*   TABELA ZA ADMINISTRACIJU I KNJIGE */
/* =================================== */

.book-table-container,
.user-table-container {
    width: 90%;
    max-width: 100%;
    margin: 150px auto 40px auto;
    padding: 20px;
    background-color: #f5e6c4;
    border: 2px solid #6b4f2f;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Stil za naslove tabele */
.table-title,
.book-author {
    text-align: center;
    width: 100%;
}



.table-title {
    text-align: center;
    width: 100%;
    display: block;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
    color: #6b4f2f;
    margin-bottom: 0px;
    margin-top: -5px;   /* pomeri gore */
}

.book-author {
    text-align: center;
    font-size: 20px;
    font-weight: weight;
    color: #6b4f2f;
    margin-top: -15px;
    margin-bottom: 10px;
}



/* SCROLL KONTEJNER ZA TABELU */
.table-scroll {
    position: relative;
    max-height: calc(100vh - 260px); /* 150 nav + margine */
    overflow-y: auto;
    border: 1px solid #6b4f2f;
    background-color: #f5e6c4;
    padding: 0;
    box-sizing: border-box;

    /* Scrollbar stil */
    scrollbar-width: thin;
    scrollbar-color: #6b4f2f #f5e6c4;
}

.table-scroll::-webkit-scrollbar {
    width: 8px;
}

.table-scroll::-webkit-scrollbar-track {
    background: #f5e6c4;
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background-color: #6b4f2f;
    border-radius: 4px;
}

/* Opšti stil za tabele */
.user-table,
.book-table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    box-sizing: border-box;
}

/* Sticky zaglavlje sa gradient shadow */
.user-table th,
.book-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #eedfc2;
    color: #6b4f2f;
    padding: 10px;
    border-bottom: 2px solid #6b4f2f;
    word-wrap: break-word;
    font-weight: bold;

    /* Gradient shadow ispod zaglavlja */
    box-shadow: inset 0 -1px 0 #6b4f2f, 0 4px 4px -2px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease;
}

/* Efekat dok se scrolluje */
.table-scroll:active th,
.table-scroll:hover th {
    box-shadow: inset 0 -1px 0 #6b4f2f, 0 6px 6px -3px rgba(0, 0, 0, 0.25);
}

/* Stil za td */
.user-table td,
.book-table td {
    padding: 10px;
    border-bottom: 1px solid #6b4f2f;
    word-wrap: break-word;
    background-color: #f5e6c4; /* sprečava preklapanje sa sticky header */
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

/* Hover efekat na red */
.book-table tr:hover td,
.user-table tr:hover td {
    background-color: #f0e3c6;
}

/* Osnovni stil svih dugmadi u tabeli */
.table-btn {
    padding: 7px 14px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #6b4f2f;
    background-color: #ac9579;
    border-radius: 5px;
    transition: all 0.2s ease;
}

/* Hover efekat dugmadi */
.table-btn:hover {
    background-color: #f5e6c4;
    color: #6b4f2f;
}

/* Specifične boje teksta */
.table-btn.details   { color: #2980b9; }
.table-btn.edit      { color: #f1c40f; }
.table-btn.delete    { color: #e74c3c; }
.table-btn.add       { color: #2c3e50; }
.table-btn.download  { color: #6b4f2f; }

/* Širine kolona */
.user-table th:nth-child(1),
.user-table td:nth-child(1),
.book-table th:nth-child(1),
.book-table td:nth-child(1) { width: 15%; }

.user-table th:nth-child(2),
.user-table td:nth-child(2),
.book-table th:nth-child(2),
.book-table td:nth-child(2) { width: 20%; }

.user-table th:nth-child(3),
.user-table td:nth-child(3),
.book-table th:nth-child(3),
.book-table td:nth-child(3) { width: 15%; }

.user-table th:nth-child(4),
.user-table td:nth-child(4),
.book-table th:nth-child(4),
.book-table td:nth-child(4) { width: 15%; }

.user-table th:nth-child(5),
.user-table td:nth-child(5),
.book-table th:nth-child(5),
.book-table td:nth-child(5) { width: 15%; }

.user-table th:nth-child(6),
.user-table td:nth-child(6),
.book-table th:nth-child(6),
.book-table td:nth-child(6) { width: 10%; }

.user-table th:nth-child(7),
.user-table td:nth-child(7),
.book-table th:nth-child(7),
.book-table td:nth-child(7) { width: 10%; }


/* =================================== */
/*          FORM SEARCH                */
/*=====================================*/
.search-bg {
    width: 600px;
    height: 450px;
    background-image: url("../slike/paper.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 10px;
}

.search-bg .form-title {
    font-size: 28px;
    font-weight: bold;
    color: #6b4f2f;
    margin: 0;
}

/* POLJE ZA UNOS */
.search-input {
    width: 80%;
    padding: 10px 8px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #333;
    background-color: transparent;
    outline: none;
    color: #000;
}

.search-input::placeholder {
    color: rgba(0,0,0,0.6);
}

/* DROPDOWN */
.search-select {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #6b4f2f;
    border-radius: 5px;
    background-color: #f5e6c4;
    color: #6b4f2f;
    cursor: pointer;
}

/* DUGME */
.search-btn {
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #6b4f2f;
    border-radius: 5px;
    background-color: #f5e6c4;
    color: #6b4f2f;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #6b4f2f;
    color: #f5e6c4;
    transform: translateY(-3px);
}


/* ============================= */
/*   KONTEJNER ZA IZMENU         */
/* ============================= */
.edit-bg {
    width: 600px;
    min-width: 300px;
    height: 450px;
    background-image: url("../slike/paper.png");  /* Ovde stavi svoju sliku za pozadinu */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 10px; /* Zaobljene ivice */
}

/* NASLOV */
.search-bg .form-title {
    font-size: 28px;   /* Veličina fonta */
    font-weight: bold;
    color: #6b4f2f;
    margin: 0;
}


/* ============================= */
/*   BOOK DETAILS VIEW           */
/* ============================= */

.book-details-bg {
    width: 1100px;
    margin: 220px auto 0 auto;
    padding: 30px 200px 80px 200px; /* isto kao kod dodavanja */
    background-image: url("../slike/paper.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}


/* GRID RASPORED */
.book-details-row {
    display: flex;
    gap: 30px;
}

/* POLJA */
.book-details-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* LABEL */
.book-details-group label {
    font-weight: bold;
    color: #6b4f2f;
    margin-bottom: 5px;
}

/* READ ONLY INPUT / TEXTAREA */
.book-details-group input,
.book-details-group textarea {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #6b4f2f;
    padding: 6px 4px;
    font-size: 15px;
    color: #000;
    outline: none;
}

/* TEXTAREA */
.book-details-group textarea {
    min-height: 100px;
    resize: none;
}

/* MALA POLJA */
.book-id {
    flex: 0 0 120px;
}

.book-tip {
    flex: 0 0 200px;
}

/* CHECKBOX */
.book-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.book-checkbox input {
    transform: scale(1.2);
}

.book-details-row.first-row {
    margin-bottom: 50px;
}

.book-details-group select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 2px solid #6b4f2f;
    border-radius: 5px;
    background-color: #f5e6c4; /* ista boja kao pozadina input polja */
    color: #6b4f2f; /* boja teksta */
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-details-group select:focus {
    outline: none;
    border-color: #ac9579;
    background-color: #fff8f0;
}

.book-details-row button.add {
    display: block;
    margin: 0 auto;   /* centriranje dugmeta */
}

/* Checkbox u formi za dodavanje */
.book-details-row input[type="checkbox"],
.book-details-group input[type="checkbox"] {
    transform: scale(1.5);   /* 1.5 = 150% veličine */
    margin-right: 10px;      /* razmak između checkboxa i label */
    vertical-align: middle;  /* bolje poravnanje sa tekstom */
}

/* Checkbox u detaljima i formi dodavanja */
.book-checkbox input[type="checkbox"] {
    transform: scale(1.5);      /* uvećava checkbox */
    margin: 0 60px 0 20px;      /* razmak od label-e */
    vertical-align: middle;     /* bolje poravnanje sa tekstom */
}

.duplikat-checkbox input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #6b4f2f;
    border-radius: 4px;
    background-color: #f5e6c4;
    position: relative;
    cursor: not-allowed;
}

.duplikat-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #2980b9;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* ============================= */
/*   FORMA PROMENA LOZINKE       */
/* ============================= */
.frmLogovanjePassword {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px 25px;
    background: url('/slike/paper-small.png') no-repeat center center; /* centrira sliku */
    background-size: cover; /* popunjava formu, bez ponavljanja */
    border: 2px solid #6b4f2f;
    border-radius: 12px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    text-align: left;
    font-family: Verdana, Arial, sans-serif;
    color: #6b4f2f;
}

.frmLogovanjePassword h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.frmLogovanjePassword p {
    margin-bottom: 15px;
}

.frmLogovanjePassword input[type="text"],
.frmLogovanjePassword input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #92755b;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.85);
}

.frmLogovanjePassword input[type="submit"],
.frmLogovanjePassword input[type="reset"] {
    padding: 10px 25px;
    margin: 10px 5px 0 0;
    border: none;
    border-radius: 6px;
    background-color: #6b4f2f;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.frmLogovanjePassword input[type="submit"]:hover,
.frmLogovanjePassword input[type="reset"]:hover {
    background-color: #8c5c3f;
}

/* Naglašeni tekst */
.naglasavanjePodataka {
    font-weight: bold;
    margin-bottom: 15px;
}

spanBlue {
    color: #3b5998;
}





/* ============================= */
/*   RESET PASSWORD FORMA        */
/* ============================= */
.frmLogovanjePassword {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px 25px;
    background: url('/slike/paper-small.png') repeat; /* papirna slika */
    border: 2px solid #6b4f2f;
    border-radius: 12px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    color: #6b4f2f;
}

.frmLogovanjePassword h1 {
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 20px;
}

.frmLogovanjePassword p {
    margin-bottom: 15px;
    text-align: left;
}

.frmLogovanjePassword input[type="text"],
.frmLogovanjePassword input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid #92755b;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.85); /* blagi overlay preko papira */
}

.frmLogovanjePassword input[type="submit"],
.frmLogovanjePassword input[type="reset"] {
    padding: 10px 25px;
    margin: 10px 5px 0 5px;
    border: none;
    border-radius: 6px;
    background-color: #6b4f2f;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.frmLogovanjePassword input[type="submit"]:hover,
.frmLogovanjePassword input[type="reset"]:hover {
    background-color: #8c5c3f;
}



/* ===================================================== */
/* ==================== RESPONSIVE ===================== */
/* ===================================================== */


/* ================= TABLET (<=768px) ================= */
@media (max-width: 768px) {

    /* Poruke */
    .msg {
        font-size: 14px;
        padding: 12px;
    }

    /* Welcome box */
    .welcome-box {
        width: 70%;
        padding: 30px 20px;
        margin: 50px auto;
    }

    .welcome-box .quote-text {
        font-size: 16px;
        margin: 20px 15px 10px 15px;
    }

    .welcome-box .quote-author {
        font-size: 13px;
    }

    .welcome-box .hero-subtitle {
        font-size: 18px;
    }

    /* Table container */
    .book-table-container,
    .user-table-container {
        left: 2%;
        right: 2%;
        padding: 15px;
    }

    .user-table th,
    .user-table td,
    .book-table th,
    .book-table td {
        padding: 8px;
    }

    .table-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Search forma */
    .search-bg {
        width: 90%;
        height: auto;
        padding: 20px;
    }

    .search-input,
    .search-select {
        width: 80%;
        font-size: 14px;
    }

    .search-btn {
        font-size: 14px;
        padding: 8px 20px;
    }
}


/* ================= MOBILE (<=600px) ================= */
@media (max-width: 600px) {

    /* Hamburger */
    .hamburger-btn {
        display: block;
    }

    .floating-buttons {
        position: fixed;
        top: 60px;
        left: 15px;
        transform: none;
        flex-direction: column;
        gap: 10px;
        display: none;
        background: rgba(245, 230, 196, 0.95);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .floating-buttons.open {
        display: flex;
    }

    .action-btn {
        width: 200px;
        font-size: 15px;
    }

    /* Form paper */
    .paper-bg {
        width: 90%;
        max-width: 380px;
        height: auto;
        padding: 25px 15px;
    }

    .transparent-select,
    .transparent-input {
        width: 100%;
        font-size: 15px;
        max-width: 260px;
    }

    .submit-btn {
        width: 100%;
        max-width: 200px;
        font-size: 15px;
    }

    .form-title {
        font-size: 18px;
    }
}


/* ================= PHONE (<=480px) ================= */
@media (max-width: 480px) {

    /* Login */
    .frmLogovanjePassword {
        width: 90%;
        padding: 20px;
    }

    /* Poruke */
    .msg {
        font-size: 12px;
        padding: 10px;
    }

    /* Welcome box */
    .welcome-box {
        width: 90%;
        padding: 20px 15px;
        margin: 30px auto;
    }

    .welcome-box .quote-text {
        font-size: 14px;
        margin: 15px 10px 8px 10px;
    }

    .welcome-box .quote-author {
        font-size: 12px;
    }

    .welcome-box .hero-subtitle {
        font-size: 16px;
    }

    /* Search forma */
    .search-bg {
        width: 95%;
        padding: 15px;
    }

    .search-input,
    .search-select {
        width: 100%;
        font-size: 13px;
    }

    .search-btn {
        width: 100%;
        font-size: 13px;
        padding: 7px;
    }

    /* Naslovi */
    .search-bg .form-title,
    .table-title {
        font-size: 16px;
    }

    /* Tabela stacked view */
    .book-table thead,
    .user-table thead,
    .book-table th,
    .user-table th {
        display: none;
    }

    .book-table tr,
    .user-table tr {
        display: block;
        margin-bottom: 15px;
        border: 2px solid #6b4f2f;
        border-radius: 5px;
        padding: 10px;
        background-color: #f5e6c4;
    }

    .book-table td,
    .user-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100% !important;
        padding: 6px 0;
        border: none;
    }

    .book-table td::before,
    .user-table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .table-btn {
        display: inline-block;
        margin-top: 5px;
    }

}

