/* style.css */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
    background: #2c3e50;
    color: white;
}

/* Navbar stil - Uklonjeno jer se kontroliše u header.php radi preciznosti */
.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin-left: 10px;
    transition: 0.3s;
}

.menu a:hover {
    background: transparent;
    color: #3498db;
}

/* Zajednički kontejner za sadržaj */
.main-content {
    display: flex;
}

#sidebar {
    width: 360px;
    height: calc(100vh - 60px);
    background: transparent;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#map {
    flex: 1;
    height: calc(100vh - 60px);
    background: #ddd;
}

/* Tabele i forme */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #4a5a6a;
}

th {
    background: transparent;
}

.btn-restart {
    width: 100%;
    padding: 10px;
    background: #e67e22;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: 4px;
}

.input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 2px;
    font-size: 13px;
    min-width: 0;
}

.btn-add {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 2px;
    font-weight: bold;
}

.btn-delete {
    color: #e74c3c;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

/* Prilagođeni (custom) padajući meni sa sličicama vozila */
.agroweb-custom-select {
    position: relative;
    user-select: none;
    font-family: inherit;
    box-sizing: border-box;
}

.agroweb-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 4px;
    background: #2c3e50;
    color: white;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    min-height: 31px;
}

.agroweb-select-trigger:hover {
    background: #34495e;
    border-color: rgba(255, 255, 255, 0.2);
}

.agroweb-select-trigger-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.agroweb-select-arrow {
    font-size: 8px;
    opacity: 0.7;
    transition: transform 0.2s;
    margin-left: 5px;
}

.agroweb-custom-select.open .agroweb-select-arrow {
    transform: rotate(180deg);
}

.agroweb-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a252f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.agroweb-custom-select.open .agroweb-select-dropdown {
    display: block;
}

.agroweb-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.agroweb-select-option:hover {
    background: #34495e;
}

.agroweb-select-option.selected {
    background: #2980b9;
}