@import url('https://fonts.googleapis.com/css2?family=MS+Sans+Serif:wght@400;700&display=swap');

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

body {
    background: #C0C0C0;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    color: #000;
    overflow-x: auto;
}

.container {
    width: 1024px;
    margin: 0 auto;
    padding: 10px;
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #C0C0C0;
    border: 2px inset #C0C0C0;
}

.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0px #FFF;
}

.tagline {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

/* Windows 95 Button Styles */
.win95-button {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    padding: 4px 12px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    cursor: pointer;
    margin: 2px;
    min-width: 75px;
}

.win95-button:hover {
    background: #DFDFDF;
}

.win95-button:active {
    border: 2px inset #C0C0C0;
    background: #A0A0A0;
}

.win95-button.small {
    min-width: 30px;
    padding: 2px 6px;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.canvas-container {
    position: relative;
    border: 2px inset #C0C0C0;
    padding: 4px;
    background: #FFF;
}

#canvas {
    display: block;
    border: 1px solid #808080;
    cursor: crosshair;
    background: #FFF;
}

/* Loading Bar */
.loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #C0C0C0;
    border: 2px inset #C0C0C0;
    padding: 10px;
    text-align: center;
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #FFF;
    border: 1px inset #C0C0C0;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0000FF 0%, #000080 100%);
    width: 0%;
    transition: width 1s ease-in-out;
}

/* Control Panel */
.control-panel {
    width: 180px;
    background: #C0C0C0;
    border: 2px inset #C0C0C0;
    padding: 10px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Slider Styles */
.slider {
    width: 100%;
    height: 20px;
    background: #FFF;
    border: 1px inset #C0C0C0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 18px;
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 18px;
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    cursor: pointer;
    border-radius: 0;
}

/* Button Group */
.button-group {
    margin: 15px 0;
}

.button-group .win95-button {
    width: 100%;
    margin-bottom: 5px;
}

/* Extras */
.extras {
    border-top: 1px solid #808080;
    padding-top: 10px;
    margin-top: 10px;
}

.extras label {
    display: flex;
    align-items: center;
    font-size: 11px;
    margin-bottom: 5px;
}

.extras input[type="checkbox"] {
    margin-right: 5px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #808080;
    font-size: 10px;
    color: #666;
}

.footer a {
    color: #0000FF;
    text-decoration: underline;
    margin-left: 10px;
}

.footer a:hover {
    color: #FF0000;
}

/* Responsive Design */
@media (max-width: 1050px) {
    .container {
        width: 100%;
        padding: 5px;
    }
    
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .control-panel {
        width: 100%;
        max-width: 600px;
    }
    
    .control-group {
        display: inline-block;
        width: 48%;
        margin-right: 2%;
        vertical-align: top;
    }
    
    .button-group .win95-button {
        width: auto;
        display: inline-block;
        margin-right: 5px;
    }
}

@media (max-width: 850px) {
    #canvas {
        width: 100%;
        height: auto;
        max-width: 800px;
    }
    
    .canvas-container {
        width: 100%;
        overflow: auto;
    }
}

/* Retro CRT Effect */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

.container {
    animation: flicker 3s infinite;
}

/* Windows 95 Themed Scrollbar */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #C0C0C0;
    border: 1px inset #C0C0C0;
}

::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
}

::-webkit-scrollbar-thumb:hover {
    background: #DFDFDF;
}

::-webkit-scrollbar-corner {
    background: #C0C0C0;
}