:root {
    --primary-color: #2a6496;
    --success-color: #28a745;
    --dropbox-color: #0070e0;
    --bg-color: #f0f2f5;
    --info-bg: #fff3cd;
    --info-text: #856404;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    background-color: var(--bg-color); 
    color: #333; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    padding: 12px 0; /* Smanjeno sa 30px na 12px */
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
}

h1 { 
    margin: 0; 
    color: var(--primary-color); 
    font-size: 22px; /* Smanjeno sa 32px na 22px */
    font-weight: 700; 
}

.info-bar {
    width: 100%;
    background-color: var(--info-bg);
    color: var(--info-text);
    padding: 8px 0; /* Još tanji padding */
    border-bottom: 1px solid #ffeeba;
    margin-bottom: 20px;
    font-size: 0.85rem; /* Blago smanjen font */
}

/* Kontejner unutar bara koji drži poruke u liniji */
.info-bar-content {
    display: flex;
    justify-content: center; /* Centriranje sadržaja */
    align-items: center;
    gap: 20px; /* Razmak između poruka */
    flex-wrap: wrap; /* Da ne "pukne" na malim ekranima */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.notifikacija {
    margin: 0; /* Uklanjamo donju marginu jer su sad u liniji */
    display: flex;
    align-items: center;
    gap: 5px;
}
.email-link { font-weight: bold; color: #533f03; text-decoration: none; }
.email-link:hover { text-decoration: underline; }

.main-wrapper {
    display: flex;
    max-width: 1200px;
    width: 95%;
    gap: 25px;
    align-items: stretch; /* KLJUČNO: Ovo tera obe kolone da budu iste visine */
    margin-bottom: 50px;
}

.right-side {
    flex: 3;
    display: flex; /* Dodajemo flex i ovde */
    flex-direction: column;
}

.right-side .box.file-list {
    flex: 1; /* Ovo tera beli boks da se rastegne od vrha do dna kolone */
    display: flex;
    flex-direction: column;
}

.file-list-container {
    flex: 1; /* Tera listu fajlova da zauzme sav preostali prostor u boksu */
    max-height: 80vh; 
    overflow-y: auto;
}

/* Proporcija 2/5 (40%) */
.left-side { 
    flex: 2; 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
}

/* Proporcija 3/5 (60%) */
.right-side { 
    flex: 3; 
    position: sticky; 
    top: 20px; 
}
.box {
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h2 { 
    margin-top: 0; 
    font-size: 18px; 
    border-left: 4px solid var(--primary-color); 
    padding-left: 10px;
    color: #444;
}

form { display: flex; flex-direction: column; gap: 15px; }

input[type="file"] {
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

input[type="submit"] {
    padding: 16px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

/* Zajednički stil za sva glavna dugmad na sajtu */
input[type="submit"], 
.dropbox-button, 
.btn-registracija {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--success-color); /* Zelena kao na prvom dugmetu */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Efekat kada se pređe mišem preko bilo kog dugmeta */
input[type="submit"]:hover, 
.dropbox-button:hover, 
.btn-registracija:hover {
    background-color: #218838; /* Tamnije zelena */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    opacity: 1; /* Poništavamo stari opacity ako je postojao */
}