@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #0f172a;
    color: #f1f5f9;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, #0ea5e9 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, #8b5cf6 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, #ec4899 0%, transparent 40%);
    animation: meshMove 20s ease-in-out infinite;
    background-size: 200% 200%;
    opacity: 0.25;
    filter: blur(100px);
}

@keyframes meshMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Glavni kontejner */
.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.04);
}

/* Naslov */
h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
    color: #93c5fd;
}

/* Folderi kao kartice */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.folder-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.folder-card:hover {
    transform: scale(1.03);
    border-color: #38bdf8;
}

.folder-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #e0f2fe;
}

.folder-card p {
    font-size: 14px;
    margin: 4px 0;
    color: #94a3b8;
}

.folder-card a {
    text-align: right;
    color: #38bdf8;
    font-weight: 500;
    margin-top: auto;
    font-size: 14px;
}

/* Forme i dugmad */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    max-width: 420px;
    padding: 12px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #334155;
    background-color: #1e293b;
    color: #f1f5f9;
}

input:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

button {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 10px;
    background: #38bdf8;
    color: #0f172a;
    border: none;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

button:hover {
    background: #0ea5e9;
    transform: scale(1.02);
}

/* Tabele (ako se koriste) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    padding: 14px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

table th {
    background-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

table td {
    color: #e2e8f0;
}

table tr:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Poruke */
.success, .error {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: #15803d;
    color: #bbf7d0;
}

.error {
    background-color: #7f1d1d;
    color: #fecaca;
}

/* Sticky mobilni meni */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
        margin: 12px;
    }

    h1 {
        font-size: 22px;
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.9);
        border-top: 1px solid #334155;
        display: flex;
        justify-content: space-around;
        padding: 12px 0;
        z-index: 999;
    }

    .mobile-nav a {
        font-size: 13px;
        color: #93c5fd;
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-nav i {
        font-size: 16px;
        margin-bottom: 3px;
    }
}
/* Globalni link stil kao dugme */
a {
    text-decoration: none;
    font-weight: 500;
    color: #38bdf8;
    transition: background-color 0.2s, color 0.2s;
}

/* Link kao dugme */
a.button-link {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #2563eb;
    color: white;
    font-size: 14px;
    margin: 5px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

a.button-link:hover {
    background-color: #1d4ed8;
    transform: scale(1.03);
    color: white;
}

/* Kontrast po sekcijama */
.container {
    background-color: rgba(17, 24, 39, 0.9); /* tamna, ali prozračna */
    color: #f9fafb;
}

.folder-card {
    background-color: rgba(30, 41, 59, 0.95);
    border: 1px solid #334155;
    color: #e2e8f0;
}

.folder-card h2 {
    color: #93c5fd;
}

.folder-card a {
    color: #38bdf8;
}

/* Mobilni meni */
.mobile-nav {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid #334155;
}

.mobile-nav a {
    color: #cbd5e1;
}

