* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.device-management {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1, h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.create-device {
    background-color: #0a6b4a;
    color: white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    list-style-type: none;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    border-bottom-color: #0a6b4a;
}

.actions button {
    margin-left: 10px;
    background-color: #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.battery-level, .status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.battery-level {
    background-color: #e0e0e0;
}

.status {
    color: white;
}

.status.available {
    background-color: #0a6b4a;
}

.status.in-use {
    background-color: #ffa500;
}

.action-icon {
    color: #ff6347;
    cursor: pointer;
}

.device-history {
    margin-top: 40px;
}

.park-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.park-label {
    font-weight: bold;
    background-color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
}

.view-toggles button {
    background-color: #f0f0f0;
    margin-left: 10px;
}

.view-toggles button.active {
    background-color: #0a6b4a;
    color: white;
}

.map-view {
    height: 400px;
    background-color: #f0f0f0;
    position: relative;
    margin-bottom: 20px;
}

.car-icon {
    width: 20px;
    height: 20px;
    background-color: #ff6347;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hidden {
    display: none;
}

.back-button {
    margin-bottom: 20px;
    background-color: #f0f0f0;
}

.device-management {
    position: relative;
}

.main-content,
.device-history {
    transition: opacity 0.3s ease-in-out;
}