.html-minifier-bg {
    background: linear-gradient(180deg, #100025 40%, #110141 100%), #D9D9D9;
    transition: background 0.3s ease-in-out;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.html-minifier-bg-stars {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 auto;
    padding: 50px 150px;
}

.html-minifier-wrapper {
    width: 100%;
    display: flex;
    gap: 50px;
    margin: 3rem 0 3rem 0;
    height: auto;
    min-height: 650px;
    flex: 1;
}

.html-minifier-card {
    position: relative;
    background: #1e1e2f;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
    width: 70%;
    border: none;
}

.html-minifier-card:hover {
    box-shadow: 1px 1px 5px 2px #6E00FF;
}

.html-minifier-result-card {
    position: relative;
    background: #1E1E2F;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
    width: 30%;
}

.html-minifier-result-card:hover {
    box-shadow: 1px 1px 5px 2px #6E00FF;
}

.html-minifier-card-header {
    padding: 2rem 2rem 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.html-minifier-card-header span {
    color: #fff;
    font-size: 24px;
    letter-spacing: 0.5px;
    font-weight: 800;
    margin-right: 10px;
}

.html-minifier-card-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.html-minifier-card-icons i {
    background: #6E00FF;
    color: #FFFFFF;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 1rem;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.html-minifier-card-icons i:hover::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    background-color: #F8FAFC;
    color: #220554;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    width: 120px;
    text-align: center;
    font-weight: 600;
    font-family: 'Overpass', sans-serif;
    z-index: 20;
}

.html-minifier-card-content {
    padding: 2rem;
}

.html-minifier-input-container {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.html-minifier-input {
    width: 100%;
    min-height: 200px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #334155;
    resize: vertical;
}

.html-minifier-output-container {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.html-minifier-output {
    width: 100%;
    min-height: 150px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #334155;
    resize: vertical;
    overflow: auto;
}

.html-minifier-copy-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #6E00FF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.html-minifier-copy-btn:hover {
    background: #5900cc;
    transform: scale(1.1);
}

.html-minifier-result-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.html-minifier-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1rem;
}

.html-minifier-feature {
    background: #272737;
    padding: 1rem;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.html-minifier-feature i {
    font-size: 20px;
    color: #6E00FF;
}

.html-minifier-feature:hover {
    transform: scale(1.03);
}

.html-minifier-result {
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    animation: html-minifier-fade 0.3s ease;
}

@keyframes html-minifier-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.html-minifier-result-error {
    background: #d52e08;
    color: #ffff;
    margin: 0 1rem;
}

.html-minifier-result-success {
    background: #36B37E;
    color: #ffff;
    margin: 0 1rem;
}

.html-minifier-result-warning {
    background: linear-gradient(135deg, #f5a623, #f5a623);
    color: #ffff;
    margin: 0 1rem;
    margin-top: 15px;
}

.tool-html-minifier-content-page {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}

.tool-html-minifier-content-page ul li {
    list-style-type: initial;
    margin-left: 15px;
}

.tool-html-minifier-content-page ol li {
    list-style-type: initial;
    margin-left: 15px;
}

.html-minifier-faq-container {
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.html-minifier-faq-item {
    margin-bottom: 8px;
}

.html-minifier-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 24px 0;
    font-size: 18px;
    color: #100025;
    font-weight: 500;
    line-height: 28px;
    font-family: 'Inter', sans-serif;
}

.html-minifier-faq-answer {
    display: none;
    font-size: 16px;
    font-weight: 400;
    color: #6E7D88;
    line-height: 24px;
}

.html-minifier-divider {
    border: 0;
    border-top: 0.1px solid #EEE;
    margin: 0;
}

/* Navbar and mobile styles */
.html-minifier-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    width: 100%;
}

.html-minifier-navbar h1 {
    color: white;
    font-size: 20px;
}

.html-minifier-coderspace-log-in-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    color: #6E00FF;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.html-minifier-coderspace-log-in-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.html-minifier-mobile-navbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    width: 100%;
}

.html-minifier-menu-icon {
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.html-minifier-mobile-navigation-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: #1e1e2f;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
    transition: left 0.3s ease;
}

.html-minifier-mobile-navigation-menu.active {
    left: 0;
}

.html-minifier-mobile-navigation-logo {
    width: 150px;
    margin-bottom: 2rem;
}

.html-minifier-navigation-login-btn {
    background: #6E00FF;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.html-minifier-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px 0;
    color: white;
}

.html-minifier-timer-breadcrumb-tools {
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
    letter-spacing: -0.4px
}

.html-minifier-timer-breadcrumb {
    font-size: 14px;

}

/* CodeMirror Custom Styles */
.html-minifier-wrapper .CodeMirror {
    height: auto;
    border-radius: 10px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.html-minifier-wrapper .CodeMirror-gutters {
    border-right: 1px solid #39394e;
    background-color: #1e1e2f;
}

.html-minifier-wrapper .CodeMirror-linenumber {
    color: #6E00FF;
}

/* Responsive Styles */
@media (max-width: 1330px) {
    .html-minifier-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 50px;
    }

    .html-minifier-card {
        width: 100%;
    }

    .html-minifier-result-card {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .html-minifier-bg-stars {
        padding: 50px 100px;
    }
}

@media (max-width: 850px) {
    .html-minifier-card-header span {
        font-size: 20px;
    }

    .html-minifier-navbar h1 {
        font-size: 20px;
    }

    .html-minifier-card-icons i {
        width: 2rem;
        height: 2rem;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .html-minifier-navbar {
        display: none;
    }

    .html-minifier-mobile-navbar {
        display: flex;
    }

    .html-minifier-bg-stars {
        padding: 50px 80px;
    }

    .html-minifier-wrapper {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }

    .html-minifier-card, .html-minifier-result-card {
        width: 100%;
    }

    .primary-button {
        width: 100%;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
    }

    .html-minifier-feature {
        font-size: 14px;
        padding: 0.8rem;
    }

    .html-minifier-wrapper .CodeMirror {
        font-size: 12px;
    }
}

@media (max-width: 580px) {
    .html-minifier-bg-stars {
        padding: 50px 50px;
    }

    .html-minifier-card-content {
        padding: 1rem;
    }

    .html-minifier-card-header {
        padding: 1rem 1rem 0 1rem;
        display: grid;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
    }

    .html-minifier-card-header span {
        font-size: 18px;
    }

    .html-minifier-option label {
        font-size: 14px;
    }

    .primary-button {
        font-size: 14px;
    }

    .html-minifier-features {
        margin: 0;
    }

    .html-minifier-result-success {
        margin: 1rem 0;
    }

    .html-minifier-result-error {
        margin: 1rem 0;
    }

    .html-minifier-result-warning {
        margin: 1rem 0;
    }

    .html-minifier-wrapper {
        margin: 1rem 0 3rem 0;
    }
}

@media (max-width: 450px) {
    .html-minifier-bg-stars {
        padding: 50px 20px;
    }
}

.CodeMirror-wrap {
    width: 100% !important;
}

.html-minifier-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


.html-minifier-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1f2937;
    border-radius: 8px;
    padding: 10px 16px;
    color: #f9fafb;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    width: fit-content;
}

.html-minifier-option:hover {
    background-color: #374151;
}

.html-minifier-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.html-minifier-option span {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.html-minifier-option span::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    background-color: #111827;
    display: inline-block;
    transition: background-color 0.3s, border-color 0.3s;
}

.html-minifier-option input[type="checkbox"]:checked + span::before {
    background-color: #10b981;
    border-color: #10b981;
}
