* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 100%;
    background-color: #000000;
    color: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 10;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
    overflow: auto;
}

.logo {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    flex: 10;
}

.logo span {
    font-weight: 600;
    color: #9e1d14;
}

.toggle-sidebar {
    background: #9e1d14;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.control-groups-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.control-group {
    flex: 1 1 calc(50% - 15px);
    min-width: 150px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 5px;
}

.control-group h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #9e1d14;
    text-transform: uppercase;
}

.control-item {
    margin-bottom: 15px;
}

.control-item p {
    margin: 0 0 5px 0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

input[type="range"] {
    width: 100%;
    background: #333333;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #9e1d14;
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 0;
}

.actions {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
}

button {
    flex: 1;
    padding: 12px;
    background-color: #9e1d14;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #7a1710;
}

canvas {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.status {
    margin-top: 10px;
    font-size: 13px;
    color: #7f8c8d;
}

/* Media queries for responsive layout */
@media (min-width: 768px) {
    body {
        overflow: hidden;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .app-container {
        flex-direction: row;
    }

    .sidebar {
        width: 280px;
        height: 100vh;
        padding: 20px;
    }

    .sidebar.collapsed {
        width: 60px;
        overflow: hidden;
    }

    .sidebar.collapsed .control-groups-container,
    .sidebar.collapsed .actions {
        display: none;
    }

    .sidebar.collapsed .logo h1 {
        display: none;
    }

    .toggle-sidebar {
        display: none;
    }

    .content {
        padding: 20px;
    }
}
