/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: #4A90E2;
    color: #fff;
    padding: 20px 0;
}

header h1 {
    text-align: center;
    font-size: 2em;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFD700;
}

/* Formatter Section */
.formatter-section {
    padding: 40px 0;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border-radius: 8px;
}

.formatter-section h2 {
    margin-top: 20px;
    font-size: 1.5em;
    color: #4A90E2;
}

textarea {
    width: 100%;
    height: 200px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    background-color: #fdfdfd;
    transition: border-color 0.3s ease;
}

textarea:focus {
    border-color: #4A90E2;
    outline: none;
}

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

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.format-btn {
    background-color: #4A90E2;
    color: #fff;
}

.format-btn:hover {
    background-color: #357ABD;
}

.minify-btn {
    background-color: #50E3C2;
    color: #fff;
}

.minify-btn:hover {
    background-color: #3EB7A6;
}

.copy-btn {
    background-color: #F5A623;
    color: #fff;
}

.copy-btn:hover {
    background-color: #D48817;
}

.btn:active {
    transform: scale(0.98);
}

pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
    overflow: auto;
    max-height: 400px;
    position: relative;
}

/* Footer Styles */
footer {
    background-color: #4A90E2;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}