* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    background-color: #1a73e8;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content Styles */
h1 {
    text-align: center;
    color: #1a73e8;
    margin: 2rem 0;
    font-size: 2.5rem;
}

.input-controls {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.control-group {
    margin-bottom: 1rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Text Areas */
.text-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-section,
.output-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #1a73e8;
    margin-bottom: 1rem;
}

#editor {
    width: 100%;
    min-height: 400px;
}

.cke_chrome {
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
}

#outputText {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Preview Section */
.preview-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.preview-content {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    min-height: 200px;
}

/* Buttons */
.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#convertText {
    background-color: #1a73e8;
    color: white;
}

#copyOutput {
    background-color: #34a853;
    color: white;
}

#clearAll {
    background-color: #ea4335;
    color: white;
}

button:hover {
    opacity: 0.9;
}

/* Stats */
#stats {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#stats p {
    color: #666;
}

#stats span {
    font-weight: bold;
    color: #1a73e8;
}

.text-container {
    max-width: 960px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 20px;
    margin-bottom: 15px;
}
/* Related Tools Section */
.related-tools {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.related-tools h2 {
    color: #1a73e8;
    margin-bottom: 1rem;
    text-align: center;
}

.related-tools ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0;
}

.related-tools li {
    padding: 0.5rem;
}

.related-tools a {
    display: block;
    color: #444;
    text-decoration: none;
    padding: 1rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.related-tools a:hover {
    color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .related-tools ul {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    background-color: #243342;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .text-areas {
        grid-template-columns: 1fr;
    }

    .options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .buttons {
        flex-direction: column;
    }

    #stats {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* hides the notifications area in CKEditor, a WYSIWYG text editor. */
.cke_notifications_area  { display: none; }