/* --- CEO SADRŽAJ ZA style.css FAJL --- */

/* OSNOVNI STILOVI ZA FORMU (od ranije) */
body {
    font-family: sans-serif;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    background-color: #f9f9f9;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
}


/* NOVI STILOVI ZA DINAMIČKU FORMU (od malopre) */

fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: #0056b3;
    font-size: 1.1em;
}

.attribute-group {
    display: none; /* Sakriveno po defaultu */
    border-left: 3px solid #007bff;
    padding-left: 15px;
    margin-top: 15px;
}

.location-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.location-row input {
    flex: 1;
}

button[type="button"] {
    background-color: #6c757d;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
button[type="button"]:hover {
    background-color: #5a6268;
}

.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #218838;
}