/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.header, .footer {
    background-color: rgb(50,105,45);
    color: white;
    text-align: center;
    padding: 15px;
}

.main-wrapper {
    display: flex;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #f0f0f0;
    border-right: 1px solid #ccc;
    padding: 10px;
    overflow: hidden;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 50px;
}

/* Toggle button */
.toggle-btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    background-color: #ddd;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.toggle-btn:hover {
    background-color: rgb(50,105,45);
    color: white;
}

/* Menu items */
.menu-country, .menu-park, .menu-asset {
    margin-left: 5px;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.menu-country-title, .menu-park-title {
    font-weight: bold;
    padding: 5px;
    cursor: pointer;
    background-color: #dff0d8;
    margin-bottom: 2px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.menu-park-title {
    background-color: #e6f4ea;
}

/* Derde laag - assets */
.menu-asset {
    padding: 5px 10px;
    background-color: #eff5f0; 
    margin: 2px 0;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.95em;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.menu-asset:hover {
    background-color: rgb(50,105,45);
    color: white;
    transform: translateX(3px);
}

.asset-serial {
    font-size: 0.75em;
    color: #555;
    margin-left: 5px;
}

/* Collapsed by default for submenus */
.menu-country > .menu-park,
.menu-park > .menu-asset {
    display: none;
}

/* Sidebar collapsed: verberg tekst volledig */
.sidebar.collapsed .menu-country-title,
.sidebar.collapsed .menu-park-title,
.sidebar.collapsed .menu-asset {
    display: none !important; /* forceer verbergen ongeacht inline styles */
}

/* Container / Content */
.container {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.button {
    background-color: #ddd;
    color: #333;
    border: none;
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
}

.button.active {
    background-color: rgb(50,105,45);
    color: white;
}

.button.inactive {
    background-color: #ccc;
    color: #333;
}

.button:hover {
    opacity: 0.8;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    max-width: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table th {
    background-color: #e2f0e6;
}

/* Picture */
.picture {
    max-width: 300px;
    margin: 20px 0;
}