/* --- 1. Osnove --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Lora:ital,wght@0,500;0,700;1,400&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #fcfbf9; 
    color: #2c3e50; 
    min-height: 100vh; 
    position: relative; 
}

/* Vodni žig (logo1.png) */
body::before {
    content: ""; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60vw; height: 60vw; background-image: url('logo1.png');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    opacity: 0.12; z-index: -1; pointer-events: none;
}

/* --- 2. Header --- */
header {
    background-color: #16402f !important;
    border-bottom: 4px solid #a62424;
    padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-container h1 { font-family: 'Lora', serif; color: #ffffff; font-size: 1.8rem; margin: 0; }

header nav { display: flex; gap: 20px; align-items: center; }
header nav a {
    color: #e8f5e9; text-decoration: none; font-weight: 600; font-size: 1rem;
    transition: color 0.3s ease;
}
header nav a:hover { color: #ffc107; }

/* --- 3. Komponente obrazcev --- */
/* Splošni stili za vnose */
.form-control {
    width: 100%; padding: 12px;
    border: 1px solid #e0dacb;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 1rem;
}

/* Gumbi */
.btn-slavic {
    padding: 12px 20px; background-color: #16402f;
    color: #ffffff; border: none; border-radius: 4px;
    cursor: pointer; font-weight: 600; font-size: 1rem;
    transition: background 0.3s;
}
.btn-slavic:hover { background-color: #1e5a42; }

/* Posebnost za iskalnik */
.search-bar { margin: 30px 0; width: 100%; }
.slavic-form { 
    display: flex; gap: 10px; background: #f9f8f6; 
    padding: 15px; border: 1px solid #e0dacb; border-radius: 8px; 
}
.search-bar .form-control { flex: 1; margin: 0; }

/* --- 4. Knjižna mreža --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.book-card { background: #ffffff; border: 1px solid #e0dacb; border-radius: 8px; padding: 20px; }
.book-cover { width: 100%; height: 250px; object-fit: contain; background-color: #f9f8f6; margin-bottom: 15px; }

/* Statusni znački */
.status-badge { display: inline-block; padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; }
.status-available { background: #d4edda; color: #155724; }
.status-reserved { background: #fff3cd; color: #856404; }
.status-borrowed { background: #f8d7da; color: #721c24; }

/* --- 5. Splash screen --- */
#slavic-splash {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fcfbf9; display: flex; justify-content: center; align-items: center;
    z-index: 999999; transition: opacity 1s ease-in-out;
}
.splash-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.splash-content img { width: 280px; animation: pulse 2s infinite; }
.splash-title { font-family: 'Lora', serif; color: #16402f; font-size: 2.5rem; }
#slavic-splash.fade-out { opacity: 0; pointer-events: none; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Odzivnost */
@media (max-width: 768px) { header { flex-direction: column; gap: 15px; } }
/* Ta del postavi celotno vsebino na sredino ekrana */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fcfbf9;
    margin: 0;
}

/* To je škatla obrazca - dovolj velika in na sredini */
.login-box {
    width: 100%;
    max-width: 450px; /* Obrazec bo velik 450px */
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e0dacb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-box h2 { margin-bottom: 25px; text-align: center; color: #16402f; }
.login-box input { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.login-box button { width: 100%; padding: 15px; background: #16402f; color: white; border: none; border-radius: 4px; font-size: 1.1rem; cursor: pointer; }
/* Popravek za centriranje prijavnega okna */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e0dacb;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.login-box h2 { margin-bottom: 20px; color: #16402f; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; }
.btn-login { width: 100%; padding: 12px; background: #16402f; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.error-msg { color: #dc3545; text-align: center; margin-bottom: 15px; }
/* Header pustimo povsem pri miru - naj dela kot na drugih straneh */

/* Obrazec - postavi na sredino absolutno */
.login-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e0dacb;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.login-box h2 { margin-bottom: 20px; color: #16402f; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; }
.btn-login { width: 100%; padding: 12px; background: #16402f; color: white; border: none; border-radius: 4px; cursor: pointer; }
/* Prilagoditev za mobitele - celozaslonski začetek */
@media (max-width: 768px) {
    .hero-fullscreen {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        text-align: center;
    }
}