/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* Light Gray */
    color: #343a40; /* Dark Gray */
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode {
    background-color: #343a40; /* Dark Gray */
    color: #f8f9fa; /* Light Gray */
}

header, footer {
    background-color: #343a40; /* Dark Gray */
    color: #fff;
    text-align: center;
    padding: 1.5em 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

main {
    padding: 2em;
}

.container {
    max-width: 900px;
    margin: 2em auto;
    background: #fff;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Input and Output Sections */
.input-section, .output-section {
    margin-bottom: 2em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #495057; /* Medium Gray */
}

textarea {
    width: 100%;
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid #ced4da; /* Light Gray */
    border-radius: 6px;
    resize: vertical;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
}

textarea:focus {
    border-color: #007bff; /* Primary Blue */
    outline: none;
}

button {
    background-color: #007bff; /* Primary Blue */
    color: #fff;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-right: 10px;
    font-size: 1em;
    font-weight: 500;
}

button:hover {
    background-color: #0056b3; /* Darker Blue */
}

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

/* Controls Section */
.controls {
    text-align: center;
    margin-top: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Dark Mode Toggle */
#darkModeToggle {
    background-color: #6c757d; /* Gray */
}

#darkModeToggle:hover {
    background-color: #5a6268; /* Darker Gray */
}

/* Tweet Button */
.tweet-button {
    display: inline-block;
    background-color: #1DA1F2; /* Twitter Blue */
    color: #fff;
    padding: 0.8em 1.5em;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease, color 0.3s ease;
    font-size: 1em;
    font-weight: 500;
}

.tweet-button:hover {
    background-color: #1877b5; /* Darker Twitter Blue */
}

.tweet-button:active {
    transform: scale(0.98);
}

/* Support Button */
.support-button {
    background-color: #28a745; /* Green */
    color: #fff;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-size: 1em;
    font-weight: 500;
}

.support-button:hover {
    background-color: #218838; /* Darker Green */
}

.support-button:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1em;
    }
    header h1 {
        font-size: 2em;
    }
    textarea {
        min-height: 100px;
    }
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .controls a, .controls button {
        margin-bottom: 10px;
        text-align: center;
    }
}