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

body {
    height: 100vh;
    overflow: hidden;
}

.split-screen {
    display: flex;
    height: 100%;
    transition: 0.3s;
}

.color-section {
    flex: 1;
    min-width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 20px;
}

.color-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gradient-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.gradient-active .gradient-controls {
    display: flex;
}

.hex-label {
    font-family: monospace;
    font-size: 1.5em;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    user-select: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.hex-label:hover {
    transform: scale(1.05);
}

.gradient-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: 0.3s;
}

.gradient-direction {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    width: 150px;
}

.controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    transition: 0.3s;
}

.picker-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.picker-container.visible {
    display: block;
    opacity: 1;
}