@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

body {
    background-color: #1e1e1e;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.app-layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
}

.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
}

canvas {
    background-color: #2c2c2c;
    border: 1px solid #383838;
    border-radius: 4px;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 2 / 1;
}

.inspector {
    background-color: #2c2c2c;
    width: 260px;
    min-width: 260px;
    border-left: 1px solid #383838;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px
}

.inspector h1 {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #383838;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-size: 11px;
    color: #a3a3a3;
    font-weight: 500;
}

.control-group input, .control-group select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    background-color: #1e1e1e;
    color: #e5e5e5;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.control-group input:hover, .control-group select:hover {
    border-color: #444;
}

.control-group input:focus, .control-group select:focus {
    border-color: #18A0FB;
    background-color: #1e1e1e;
}

.controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #383838;
}

.controls button {
    flex: 1;
}

button {
    padding: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    background-color: transparent;
    color: #e5e5e5;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button i {
    font-size: 20px;
}

button:hover {
    background-color: #383838;
    border-color: #555;
}

#play-pause {
    background-color: #18a0fb;
    color: white;
    border-color: #18a0fb;
}

#play-pause:hover {
    background-color: #0D8DE0;
}

.control-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    background: transparent;
    border: none;
    margin: 10px 0;
    height: auto;
}

.control-group input[type="range"]:hover,
.control-group input[type="range"]:focus {
    border-color: transparent;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #383838;
    border-radius: 2px;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #383838;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #18a0fb;
    margin-top: -6px;
    cursor: pointer;
    transition: transform 0.1s;
}

input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #18a0fb;
    cursor: pointer;
    border: none;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.tags-container {
    display: flex;
    gap: 8px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #383838;
    color: #b0b0b0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .app-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .canvas-container {
        flex: none;
        padding: 16px 0;
        min-height: auto;
    }

    canvas {
        width: 95%;
        aspect-ratio: 16 / 9;
    }

    .inspector {
        width: 100%;
        min-width: unset;
        border-left: none;
        border-top: 1px solid #383838;
        padding-bottom: 32px;
        display: flex;
        flex-direction: column;
    }

    .inspector h1 {
        order: -2;
        border-bottom: none;
        padding-bottom: 0;
    }

    .controls {
        order: -1;
        flex-wrap: wrap;
        margin-top: 8px;
        margin-bottom: 16px;
        padding-top: 0;
        padding-bottom: 16px;
        border-top: none;
        border-bottom: 1px solid #383838;
    }
    
    .controls button {
        flex: 1 1 18%;
    }
}