/* -------------------------
   Montero Nava | Text Formatter
   ------------------------- */

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1rem;
}

h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
    height: 160px;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease;
}

textarea:focus {
    border-color: #007bff;
    outline: none;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

button {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: #0056b3;
}

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

.output-section {
    margin-top: 2rem;
}

.output {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.4;
}

.copy-btn {
    margin-top: 10px;
    background: #28a745;
}

.copy-btn:hover {
    background: #218838;
}

/* Footer styling */
footer {
    text-align: center;
    margin: 2rem 0 1rem;
    font-size: 0.9rem;
    color: #555;
}

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

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

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

    textarea {
        height: 130px;
        font-size: 0.95rem;
    }

    button {
        min-width: 100%;
    }
}