/* Osnovni izgled i font */
body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* --- INDEX STRANICA --- */
body.index {
    background-color: #0d1b3d; /* jednobojna tamno plava */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- DASHBOARD --- */
body.dashboard {
    background-color: #121212; /* tamna elegantna pozadina */
}

/* Container */
.container {
    width: 95%;
    max-width: 1000px;
    margin: 30px auto;
    text-align: center;
}

/* Heading */
h2, h3 {
    color: #0ff;
}

/* Logo centriran (index i dashboard) */
.logo img {
    width: 140px; /* prilagodi veličinu loga */
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
}

/* Grid linkova (index) */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* razmak između linkova */
}

/* Link kartice (index) */
.links-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    min-width: 120px;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.links-grid a:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Logo u kartici (index) */
.links-grid a img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

/* Naziv linka */
.links-grid a span {
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
    display: block;
}

/* Opis linka */
.links-grid a .description {
    font-size: 1rem;      /* ista veličina kao naziv */
    text-align: center;
    font-weight: bold;    /* ostaje bold kao i naziv */
    margin-top: 5px;      /* mali razmak ispod naziva */
    color: #fff;          /* ista boja kao naziv */
    word-wrap: break-word;
}

/* Formulari (dashboard) */
form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

form input[type="text"],
form input[type="url"],
form input[type="file"],
form input[type="password"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 8px 0;
    border-radius: 5px;
    border: none;
}

form button {
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background: #0ff;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

form button:hover {
    background: #00cccc;
}

/* Tabele (dashboard) */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-bottom: 50px;
}

table th, table td {
    padding: 10px;
    text-align: left;
}

table th {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

table td {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    vertical-align: middle;
}

table a {
    color: #0ff;
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    text-decoration: underline;
}

/* Dugmad u tabeli */
table td a {
    display: inline-block;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    background: rgba(0, 255, 255, 0.1);
    color: #0ff;
    transition: 0.3s;
}

table td a:hover {
    background: #0ff;
    color: #000;
}

/* Logo u tabeli */
table img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 5px;
}