@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

        :root {
            --primary-color: #1e293b; /* Dark grayish-blue */
            --secondary-color: #334155; /* Slightly lighter grayish-blue */
            --accent-color:#1e293b; /* Sky blue */
            --text-color: #f8fafc; /* Very light gray */
            --light-bg: #f0f9ff; /* Light blue background */
            --border-color: #e2e8f0; /* Light gray border */
            --border-radius: 6px;
            --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            font-family: var(--font-family);
            color: var(--primary-color);
            line-height: 1.6;
            margin: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .container {
            max-width: 960px;
            margin:10px auto;
            background: #fff;
            border-radius: var(--border-radius);
           
        }
        
        header{
            width: 100%;
            padding: 4px 0;
            display: flex;
            justify-content: center;
            background-color: var(--accent-color);
            color: var(--text-color);
            position: sticky;
            top: 0px;
            box-shadow: 0 0 1.5rem var(--primary-color);
            z-index: 2;   
        }

        header h1{
            text-align: center;
            margin: 0;
            padding:2px;
            font-size: 2.5rem;
            font-family: "Montserrat", sans-serif;
        }
        header img{
            width: 85px;
            height:70px;
            position: absolute;
            left:1rem;
            top:0.2rem ;
            border-radius:0.6rem;
        }

        .header {
            width: 100%;
            color: var(--primary-color);
            text-align: center;
            padding:  10px 0;
            border-radius: var(--border-radius);
        }

        .header h1 {
            margin-bottom: 7px;
            font-size: 2.2rem;
        }

        .header p {
            font-size: 1.1rem;
            opacity: 0.8;
        }

        .code-navigation {
            color: var(--text-color);
            display: flex;
            justify-content:left;
            padding: 8px 0.5rem;
        }

        .code-navigation button {
            background: var(--secondary-color);
            color: var(--text-color);
            border: none;
            border-radius: var(--border-radius);
            padding: 8px 15px;
            margin:0 0.5rem ;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .code-navigation button.active {
            background-color: var(--accent-color);
        }

        .code-navigation button:hover {
            background-color: var(--accent-color);
            box-shadow: 0 0 0.5rem #0f172a;
        }

        .editor-wrapper {
            display: flex;
            gap: 15px;
            padding: 15px;
        }

        .editor-section {
            flex-grow: 1;
            display: none; /* Initially hide all editor sections */
        }

        .editor-section.active {
            display: block; /* Show the active editor section */
        }
        ::-webkit-scrollbar{
            display: none;
        }

        .editor-header {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 1.2rem;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 5px;
        }

        .CodeMirror { /* Style the CodeMirror editor */
            background-color:#0f172afb !important;
            color:white !important;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            margin-bottom: 10px;
            height: 400px; 
            max-width:960px ;/* Fixed height for desktop view */
        }
        .CodeMirror-gutters{
            background-color:#f0f0f0  !important;
            color: #555;
        }
        .CodeMirror-linenumber{
            color: #0f172a !important;
        }
        .CodeMirror-cursor{
            border-left:1px solid #fff !important;
        }

        .CodeMirror-scroll {
            overflow: auto !important; /* Ensure scrollbar appears when needed */
        }

        .controls {
            padding: 15px;
            text-align: center;
            border-top: 1px solid var(--border-color);
        }

        .controls button {
            padding: 12px 25px;
            background: var(--accent-color);
            color: var(--text-color);
            border: none;
            font-size: 1.1rem;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .controls button:hover {
            background:#334155;
        }

        .output-section {
            padding: 15px;
            border-top: 1px solid var(--border-color);
        }

        .output-header {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 1.2rem;
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 5px;
        }

        iframe {
            width: 100%;
            height: 350px;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            background-color: #fff;
        }

        .info-section {
            max-width: 960px;
            margin: 20px auto;
            background: #fff;
            padding: 30px;
            border-radius: var(--border-radius);
        }

        .info-section h1, .info-section h2 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .info-section p {
            margin-bottom: 15px;
            color: var(--secondary-color);
        }

        .info-section ul {
            margin-left: 20px;
            margin-bottom: 20px;
            color: var(--secondary-color);
        }

        .info-section code {
            background-color: #e0f2fe;
            padding: 4px 8px;
            border-radius: 4px;
            color: var(--accent-color);
            font-weight: 500;
            font-size: 0.95em;
        }

        .info-section pre {
            background: #0f172a;
            color: #f8fafc;
            padding: 15px;
            border-radius: 6px;
            overflow-x: auto;
            font-size: 0.9em;
            margin-bottom: 20px;
        }

        .info-section pre code {
            color: inherit;
            background: none;
            font-family: 'Courier New', Courier, monospace;
        }

        footer {
            position: relative;
            top:4rem;
            text-align: center;
            padding:8px;
            font-size: 0.9rem;
            color: var(--secondary-color);
            opacity: 0.7;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .code-navigation {
                display: none;
            }

            .editor-wrapper {
                flex-direction: column;
            }

            .editor-section {
                display: block !important; /* Show all editors on smaller screens */
                margin-bottom: 15px;
                border: 1px solid var(--border-color);
                border-radius: var(--border-radius);
                padding: 15px;
            }

            .CodeMirror {
                height: 250px; /* Adjust height for smaller screens */
            }

            iframe {
                height: 250px;
            }
            body{
                  width: 100%;
                  padding: 0;
                  margin: 0;
            }
            .container{
                  width: 98%;
            }
            .header h1 {
                  margin-bottom: 5px;
                  font-size:1.9rem;
            }
            .header p {
               font-size: 1rem;
             }
              
             header img{
                left :0.3rem;
                width: 80px;
                height: 60px;
                top: 0.2rem;
             }
             header h1{
                  font-size: 2.2rem;
                margin-left:3.5rem;
             }
            .info-section {
                padding: 15px;
            }

            .info-section pre {
                font-size: 0.85em;
            }
        }
