/* ==================== RESET & BASICS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR / HEADER ==================== */
.navbar {
    background-color: #1a2332;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    flex-shrink: 0;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-minify {
    color: #7dd3f0;
}

.logo-html {
    color: #ff6b35;
}

.logo-css {
    color: #ffb703;
}

.logo-js {
    color: #7dd3f0;
}

/* Navigation Menu */
.navbar-menu ul {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: #1abc9c;
}

/* ==================== MAIN CONTENT ==================== */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* ==================== HERO SECTION (Homepage) ==================== */
.hero-section {
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 25px;
    color: #1a2332;
    line-height: 1.2;
}

.hero-description {
    font-size: 15px;
    color: #555;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-html {
    background-color: #ff6b35;
    color: white;
}

.btn-html:hover {
    background-color: #e55a24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-css {
    background-color: #2196F3;
    color: white;
}

.btn-css:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-js {
    background-color: #ffb703;
    color: #333;
}

.btn-js:hover {
    background-color: #e6a500;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

/* ==================== TOOL SECTION ==================== */
.tool-section {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-section h1 {
    font-size: 36px;
    color: #1a2332;
    margin-bottom: 20px;
    text-align: center;
}

.tool-description {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.tool-instruction {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
    font-size: 14px;
}

/* ==================== TOOL WRAPPER ==================== */
.tool-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.code-section {
    display: flex;
    flex-direction: column;
}

.code-header {
    background-color: #2196F3;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
}

.code-header.js-header {
    background-color: #1abc9c;
}

.code-textarea {
    background-color: #2b2b2b;
    color: #e8e8e8;
    border: none;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    min-height: 300px;
    resize: vertical;
    border-radius: 0 0 4px 4px;
    line-height: 1.5;
}

.code-textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #2196F3;
}

.code-textarea[readonly] {
    background-color: #222;
    color: #888;
}

/* ==================== BUTTON GROUP ==================== */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-action {
    padding: 12px 35px;
    font-size: 14px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-minify,
.btn-minify-js {
    background-color: #2196F3;
    color: white;
}

.btn-minify:hover,
.btn-minify-js:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-select,
.btn-select-js {
    background-color: #36495c;
    color: white;
}

.btn-select:hover,
.btn-select-js:hover {
    background-color: #4a5f7d;
    transform: translateY(-2px);
}

.btn-minify-js {
    background-color: #1abc9c;
}

.btn-minify-js:hover {
    background-color: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.btn-select-js {
    background-color: #1abc9c;
}

.btn-select-js:hover {
    background-color: #16a085;
    transform: translateY(-2px);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #1a2332;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 13px;
}

.footer p {
    margin: 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-menu ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons a {
        width: 100%;
        max-width: 250px;
    }

    .tool-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-section {
        padding: 25px;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-action {
        width: 100%;
        max-width: 300px;
    }

    .code-textarea {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        width: 100%;
    }

    .logo {
        font-size: 14px;
    }

    .hero-section h1 {
        font-size: 22px;
    }

    .tool-section h1 {
        font-size: 24px;
    }

    .tool-description {
        font-size: 13px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}