/* Osnovni reset */
html, body { margin: 0; padding: 0; }

body {
    background: #f6fafd;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 0 25px;
    color: #222;
    min-height: 100vh;
}

h1, h2, h3 {
    color: #1a558d;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

a {
    color: #1a558d;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #e46b46;
    text-decoration: underline;
}

form {
    background: #fff;
    padding: 2rem;
    margin: 2rem auto 2rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    max-width: 450px;
}

label {
    display: block;
    margin-bottom: .8em;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea {
    width: 90%;
    padding: .7em 1em;
    border: 1px solid #cbd6e2;
    border-radius: 6px;
    font-size: 1em;
    margin-top: .3em;
    margin-bottom: 1.3em;
    background: #fafdff;
}

textarea {
    min-height: 70px;
    resize: vertical;
}

button {
    background: #1a558d;
    color: #fff;
    border: none;
    padding: 0.8em 2em;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    margin-top: .7em;
    transition: background 0.2s;
}
button:hover {
    background: #e46b46;
}

p, .napomena {
    margin-bottom: 1em;
    margin-top: 1em;
    line-height: 1.55;
}

.napomena {
    color: #e46b46;
    font-size: 1.1em;
    font-weight: bold;
}

.link {
    display: inline-block;
    margin: .6em 1.2em .6em 0;
    font-size: 1em;
    color: #1a558d;
}

table {
    width: 98%;
    margin: 2rem auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    overflow: hidden;
}

th, td {
    padding: 1em 0.7em;
    text-align: left;
}

th {
    background: #e7eef8;
    color: #1a558d;
    font-weight: 600;
    border-bottom: 2px solid #a9c3df;
}

tr:nth-child(even) {
    background: #f7fafd;
}

tr:hover td {
    background: #f1eceb;
    transition: background 0.2s;
}

.admin {
    color: #228c4b;
    font-weight: bold;
}

@media (max-width: 700px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    th {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        margin-bottom: 1.2em;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
        border-radius: 7px;
        background: #fff;
        padding: 1em 0;
    }
    td {
        border: none;
        position: relative;
        padding-left: 55%;
        min-height: 38px;
    }
    td:before {
        position: absolute;
        top: 0;
        left: 1em;
        width: 50%;
        white-space: nowrap;
        font-weight: 600;
        color: #1a558d;
    }
    td:nth-child(1):before { content: 'Naziv'; }
    td:nth-child(2):before { content: 'Voditelj'; }
    td:nth-child(3):before { content: 'Email'; }
    td:nth-child(4):before { content: 'Web'; }
    td:nth-child(5):before { content: 'Mobitel'; }
    td:nth-child(6):before { content: 'Opis'; }
}

/* Poruke */
p[style*="color:red;"], .error, .greska {
    color: #e46b46 !important;
    font-weight: 600;
}
p[style*="color:green;"], .success, .uspjeh {
    color: #228c4b !important;
    font-weight: 600;
}
