* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Fira Code', monospace;
    background: linear-gradient(135deg, #dbeafe, #f0fdfa);
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1f2937;
}

header {
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    background: rgba(240, 249, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.7rem;
    font-weight: bold;
    color: #2563eb;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

header button {
    padding: 0.7rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background 0.3s;
}

header button:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

header button:active {
    transform: translateY(1px);
}

.tabs {
    display: flex;
    background: rgba(240, 249, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-weight: 500;
    text-transform: uppercase;
}

.tab.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: inset 0 -4px 0 #2563eb;
}

.tab:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.editor-container {
    flex: none;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: #f8fafc;
    height: 100vh;

}

textarea,
iframe {
    flex: 1;
    width: 100%;
    padding: 1.2rem;
    font-size: 1rem;
    border: none;
    outline: none;
    resize: none;
    background: rgba(255, 255, 255, 0.85);
    color: #1e293b;
    font-family: 'Fira Code', monospace;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.CodeMirror {
    height: 100%;
    width: 100%;
    max-width: 100vw;
    font-size: 16px;
}

iframe {
    background: white;
    border-top: 1px solid #e2e8f0;
}

.hidden {
    display: none;
}


.tool-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 2rem;
}


@media (max-width: 768px) {

    
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .editor-container {
        height: calc(100vh - 200px);
    }

    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1.6rem;
    }

    header button {
        width: 100%;
        padding: 0.7rem;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.8rem 1rem;
        
    }

    

    textarea,
    iframe {
        font-size: 0.9rem;
        padding: 1rem;
    }
}