/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: #111111;
    color: #F5F5F5;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    line-height: 1.6;
}

/* Header styling */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #FFD6E0;
    margin-bottom: 10px;
}

header p {
    color: #999;
    font-size: 1.1rem;
}

/* Form and input section */
main {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.input-section, .controls {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #333;
    border-radius: 4px;
    resize: vertical;
    font-family: monospace;
    background: #1a1a1a;
    color: #F5F5F5;
}

select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #F5F5F5;
}

/* Output section */
.output-section {
    position: relative;
    margin-top: 20px;
}

pre {
    background: #1a1a1a;
    color: #F5F5F5;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 20px;
    overflow-x: auto;
    white-space: pre;
    min-height: 100px;
    max-height: 500px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

pre:empty::before {
    content: 'Waiting for input...';
    color: #666;
    font-style: italic;
}

/* Copy button */
#copyButton {
    padding: 12px 24px;
    background: #FFD6E0;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
}

#copyButton:hover {
    background: #ccb3c4;
}

#copyButton:active {
    background: #b399ab;
}

/* Footer styling */
footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 0.9rem;
}

footer a {
    color: #FFD6E0;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Dark mode option (ready for extension) */
body.dark {
    background: #111111;
    color: #F5F5F5;
}

body.dark main {
    background: #1a1a1a;
    color: #F5F5F5;
}

body.dark header p, body.dark footer {
    color: #777;
}

/* About section */
.about-section {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.about-section h2 {
    color: #FFD6E0;
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.about-section h2:first-child {
    margin-top: 0;
}

.about-section ul {
    list-style: none;
    padding-left: 0;
}

.about-section li {
    padding: 6px 0;
    color: #ccc;
}

.about-section li strong {
    color: #F5F5F5;
}

/* Media Query for responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    pre {
        font-size: 10px;
        padding: 10px;
    }
}
