html {
    overflow-y: scroll; /* DODATO - uvek prikazuje scrollbar */
}


body {
    /* Prati aktivnu temu (svetla/sistemska/tamna) preko tokena iz theme.css,
       umesto fiksne ljubičaste pozadine. */
    background: var(--bg);
    font-family: 'Rubik', sans-serif;
    color: var(--text);
    min-height: 100vh;
    padding-top: 85px; /* DODATO - da sadržaj ne ide ispod fiksnog headera */
}


.user-info {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 12px;
    white-space: nowrap;
    min-width: unset;  
}


.header-btn:hover {
    background: var(--brand-hover);
    /*transform: translateY(-1px);*/
}

.logout-btn {
    background: var(--danger-border);
    min-width: unset;  
    color: white;
}


.info-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 32px 60px;
    box-sizing: border-box;  
    width: 100%; 
}

.info-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.info-card h2 {
    font-size: 28px;
    color: var(--text-strong);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 16px;
}

.requirement-box, .benefit-box {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.requirement-box h3, .benefit-box h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 12px;
}

.requirement-box ul, .benefit-box ul {
    list-style: none;
    padding: 0;
}

.requirement-box li, .benefit-box li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
}

.requirement-box li:before {
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.benefit-box li:before {
    position: absolute;
    left: 0;
    color: var(--brand);
}

.free-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand), var(--brand-hover));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    margin-top: 8px;
}

.predlog-form {
    margin-top: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    background: var(--surface-subtle);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: var(--brand);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.predlozi-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.predlog-item {
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
}

.predlog-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.predlog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.predlog-header h4 {
    font-size: 16px;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.predlog-autor, .predlog-user {
    font-size: 13px;
    color: var(--text-subtle);
    margin: 2px 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.na_razmatranju {
    background: #feebc8;
    color: #744210;
}

.status-badge.prihvacen {
    background: var(--success-soft);
    color: var(--success-text);
}

.status-badge.odbijen {
    background: var(--danger-soft);
    color: var(--danger-text);
}

.predlog-razlog {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
    padding: 12px;
    background: var(--surface);
    border-radius: 6px;
}

.odgovor-biblioteke {
    margin-top: 12px;
    padding: 12px;
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 6px;
}

.odgovor-biblioteke strong {
    color: #2c5282;
    display: block;
    margin-bottom: 8px;
}

.odgovor-biblioteke p {
    color: var(--text);
    font-size: 14px;
    margin: 0;
}

.no-data {
    text-align: center;
    color: var(--text-faint);
    font-style: italic;
    padding: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--surface-subtle);
    border-radius: 8px;
}

.contact-item .icon {
    font-size: 24px;
}

.contact-item strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}


@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .header-content h1 {
        width: 100%;
        margin-bottom: 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    

    .info-container {
        margin: 12px auto;
        padding: 0 12px 32px;   /* manji padding na mobi */
    }

    .info-card {
        padding: 20px 16px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .info-card h2 {
        font-size: 18px;
        margin-bottom: 16px;
        gap: 8px;
    }

    .requirement-box,
    .benefit-box {
        padding: 16px;
        border-radius: 8px;
        margin: 12px 0;
    }

    .requirement-box h3,
    .benefit-box h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .requirement-box li,
    .benefit-box li {
        font-size: 13px;
        padding: 6px 0 6px 24px;
    }

    .free-tag {
        font-size: 15px;
        padding: 10px 18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;   /* već postoji, ali proveri */
        gap: 12px;
        margin-top: 12px;
    }

    .contact-item {
        padding: 12px;
        gap: 12px;
        border-radius: 8px;
    }

    .contact-item .icon {
        font-size: 18px;
    }

    .contact-item strong {
        font-size: 14px;
    }

    .contact-item p {
        font-size: 13px;
        word-break: break-word;   /* ← ovo sprečava email da izlazi van */
    }

    .info-content p {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .info-container {
        padding: 0 8px 24px;
        margin: 8px auto;
    }

    .info-card {
        padding: 16px 12px;
    }

    .info-card h2 {
        font-size: 16px;
    }

    .contact-item p {
        font-size: 12px;
    }
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: auto;
}


@media (max-width: 768px) {
    .footer-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-content {
        padding: 0 20px;
    }
}