* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(45deg, #c0c0c0, #a0a0a0);
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dialog-window {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    width: 420px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.title-bar {
    background: linear-gradient(to bottom, #c06090, #a04070);
    color: white;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #800040;
}

.title-text {
    font-weight: bold;
    font-size: 11px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-button {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: black;
    cursor: pointer;
}

.control-button:hover {
    background: #d0d0d0;
}

.dialog-content {
    padding: 12px;
    position: relative;
}

.left-panel {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 120px;
}

.mouse-preview-area {
    width: 100px;
    height: 80px;
    background: white;
    border: 2px inset #c0c0c0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.mouse-cursor {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.double-click-test {
    font-weight: bold;
    font-size: 16px;
    padding: 4px 8px;
    border: 1px solid #808080;
    background: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.double-click-test:hover {
    background: #e0e0e0;
}

.double-click-test.clicked {
    background: #ffff80;
    transform: scale(1.1);
}

.test-label {
    text-align: center;
    margin-top: 8px;
    font-size: 10px;
    color: #404040;
}

.right-panel {
    margin-left: 140px;
    position: relative;
}

.default-button {
    position: absolute;
    right: 0;
    top: -2px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 12px;
    font-size: 11px;
    cursor: pointer;
}

.default-button:active {
    border: 2px inset #c0c0c0;
}

.setting-group {
    margin-bottom: 16px;
}

.setting-label {
    font-weight: bold;
    margin-right: 12px;
    min-width: 80px;
    display: inline-block;
}

.radio-group {
    display: inline-flex;
    gap: 16px;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 4px;
}

.radio-input {
    display: none;
}

.radio-custom {
    width: 12px;
    height: 12px;
    border: 2px inset #c0c0c0;
    border-radius: 50%;
    background: white;
    position: relative;
}

.radio-input:checked + .radio-custom::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label {
    font-size: 11px;
}

.bottom-panel {
    margin-top: 20px;
    margin-left: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-label {
    min-width: 80px;
    font-size: 11px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.slider {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border: 2px inset #c0c0c0;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 16px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 16px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    cursor: pointer;
    border-radius: 0;
}

.slider-value {
    min-width: 24px;
    text-align: right;
    font-size: 11px;
    font-family: monospace;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #a0a0a0;
}

.retro-button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 6px 16px;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    min-width: 70px;
    transition: all 0.1s ease;
}

.retro-button:hover {
    background: #d0d0d0;
}

.retro-button:active,
.retro-button.pressed {
    border: 2px inset #c0c0c0;
    background: #b0b0b0;
}

.retro-button.primary {
    border: 3px outset #c0c0c0;
    font-weight: bold;
}

.footer {
    margin-top: 20px;
    text-align: center;
}

.footer-link {
    color: #606060;
    text-decoration: none;
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: #c06090;
    background: rgba(255,255,255,0.2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .dialog-window {
        width: 95%;
        min-width: 320px;
    }
    
    .left-panel {
        position: static;
        width: 100%;
        margin-bottom: 16px;
    }
    
    .right-panel,
    .bottom-panel {
        margin-left: 0;
    }
    
    .mouse-preview-area {
        width: 100%;
    }
}

/* Fun hover effects */
.mouse-preview-area:hover .mouse-cursor {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Easter egg: konami code detection could be added here */
.dialog-window.rainbow {
    animation: rainbow-border 2s infinite;
}

@keyframes rainbow-border {
    0% { border-color: #ff0000; }
    16% { border-color: #ff8000; }
    33% { border-color: #ffff00; }
    50% { border-color: #00ff00; }
    66% { border-color: #0080ff; }
    83% { border-color: #8000ff; }
    100% { border-color: #ff0000; }
}