/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    color: white;
    padding: 40px 20px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
}

/* Demo section styles */
.demo-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.demo-section:hover {
    transform: translateY(-5px);
}

.demo-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Button styles */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: scale(0.98);
}

/* Input styles */
input[type="number"] {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    margin-right: 10px;
    width: 120px;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Output text */
#ts-output {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    min-height: 50px;
    font-size: 1.1rem;
    color: #333;
}

/* Status message */
.status {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .demo-section {
        padding: 20px;
    }
}