:root{
     --bg: #0f1221;
     --body-bg: #0b0f1d;
     --panel: #14182b;
     --muted: #8b93a7;
     --txt: #e9ecf1;
     --brand: #7dd3fc;
     --brand-2: #60a5fa;
     --ok: #22c55e;
     --warn: #eab308;
     --err: #ef4444;
     --radius: 18px;
     --gap: 14px;
}

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

html, body{
     height: 100%;
}

body{
     font-family: sans-serif;
     background: linear-gradient(180deg, var(--body-bg),var(--bg) 35%);
     color: var(--txt);
}

body > header{
     padding: 18px 20px;

     background:
          radial-gradient(
               1200px 200px at 20% -50%,
               rgba(125, 211, 252, 0.18),
               transparent 60%
          ),
          linear-gradient(
               180deg,
               #0d1224,
               #0a0f1f
          );

     border-bottom: 1px solid rgba(255,255,255,0.08);
     box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}


.container{
     max-width: 1200px;
     margin-inline: auto;
     padding: 14px;
     justify-content: space-between;

}

.brand{
     display: flex; /*1-D layout structure */
     align-items: center;
     gap: 10px;
     font-weight: 700;
}

.brand .logo{
     inline-size: 50px;
     block-size: 50px;
     border-radius: 7px;

     background: url("https://programming-ocean.com/code-editors/newlogo.png")
     center / cover no-repeat;
}

.title{
     font-size: clamp(18px, 2vw, 22px);
}

main{
     max-width: 1516px;
     margin-inline: auto;
     padding: 18px;
     display: grid; /*for designing and structuring 2-d Layouts in CSS */
     grid-template-columns: 1fr 330px;
     gap: var(--gap);
}

@media (max-width: 1100px){
     main {
          grid-template-columns: 1fr;
     }
}

.card{
     background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: var(--radius);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.panel{
     padding: 16px;

}
h2,h3{
     margin: 0 0 12px;
}

.muted{
     color: var(--muted);
     font-size: 13px;
}

.stack{
     display: flex;
     flex-direction: column;
     gap: 10px;
}

.row{
     display: flex;
     flex-direction: row;
     align-items: center;
     gap: 10px;
     flex-wrap: wrap;
     justify-content: space-between;
}

.btn{
     appearance: none;
     border: none;
     background: linear-gradient(180deg, var(--brand-2), var(--brand));
     color: #0b111f;
     font-weight: 700;
     padding: 10px 14px;
     border: 12px;
     cursor: pointer;
     box-shadow: 0 10px 24px rgba(96, 165, 250, 0.35);
}

.btn.secondary{
     background: transparent;
     border: 1px solid rgba(255, 255, 255, 0.15);
     color: var(--txt);
     box-shadow: none;
}

.btn.warn{
     background: linear-gradient(180deg, #f59e0b, #eab308);
}

.btn.ok{
     background: linear-gradient(180deg, #34d399, #22c55e);
}

.btn.err{
     background: linear-gradient(180deg, #fb7185, #ef4444);
}

.select, select, .text{
     background: rgba(255, 255, 255,0.03);
     border: 1px solid rgba(255, 255, 255, 0.12);
     color: var(--txt);
     padding: 10px 12px;
     border-radius: 12px;
}

textarea.text{
     width: 100%;
     min-height: 120px;
}

.tabs{
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
}

.tab{
     padding: 8px 12px;
     border-radius: 10px;
     border: 1px solid rgba(255, 255, 255, 0.14);
     background: rgba(255, 255, 255, 0.03);
     cursor: pointer;
     font-weight: 700;
     color: #FFF;
}

.tab.active{
     background: linear-gradient(180deg, rgba(125, 211, 252, 0.18), rgba(96, 165, 250, 0.18));
     color: #00FF00 !important;
}

.editor-wrap{
     position: relative;
     border: 1px solid rgba(255, 255, 255, 0.12);
     border-radius: 14px;
     overflow: hidden;
     min-height: 280px;
     background-color: #0b1020;
}

.editor{
     inline-size: 100%;
     block-size: 380px;
}

iframe.preview{
     inline-size: 100%;
     block-size: 380px;
     border: 1px solid rgba(255, 255, 255, 0.12);
     border-radius: 14px;
     background-color: #FFF;
}

.out{
     background-color: #0a0e1a;
     border: 1px solid rgba(255, 255, 255, 0.12);
     border-radius: 12px;
     padding: 10px;
     min-height: 160px;
     overflow: auto;
     white-space: pre-wrap;
}

.footer{
     font-size: 17px;
     text-align: center;
     padding: 12px;
}

.kbd{
     font-family: ui-monospace,SFMono-Regular, Menlo, Consolas, "Cascadia Code",monospace;
     background-color: #0e1324;
     border: 1px solid rgba(255, 255, 255, 0.15);
     border-radius: 8px;
     padding: 2px 6px;
}

label{
     font-size: 17px;
     color: var(--muted);
}


.editor-controls{
     display: inline-flex;        
     align-items: center;
     justify-content: flex-start; 

     margin: 6px 0 4px;
     padding: 6px 10px;

     border-radius: 10px;
     background: rgba(255,255,255,0.04);
     border: 1px solid rgba(255,255,255,0.10);

     width: fit-content;        
     max-width: 100%;
}

.controls-left{
     display: flex;
     align-items: center;
     gap: 8px;
     margin-right: 16px; 
     padding-right: 14px;
     border-right: 1px solid rgba(255,255,255,0.12);
}

.controls-right{
     display: flex;
     align-items: center;
     gap: 6px;
}


.control-label{
     font-size: 13px;
     color: var(--muted);
}

.zoom-btn{
     appearance: none;
     border: 1px solid rgba(255,255,255,0.22);
     background: rgba(255,255,255,0.04);
     color: var(--txt);
     font-weight: 700;

     padding: 4px 10px;
     font-size: 13px;
     line-height: 1;

     border-radius: 8px;
     cursor: pointer;
}


.zoom-btn:hover{
     background: rgba(125,211,252,0.15);
     border-color: rgba(125,211,252,0.6);
}

.editor-controls .select{
     padding: 5px 10px;
     font-size: 13px;
     height: 29px;
}
.align{
     margin-top: 15px;
}
.footer {
     margin-top: 20px;
     padding: 18px 12px;
     border-top: 1px solid rgba(255,255,255,0.12);
     background: rgba(0, 0, 0, 0.2);
   }
   
   .footer-content {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     flex-direction: column;
     gap: 10px;
     align-items: center;
     text-align: center;
   }
   
   .footer-content p {
     font-size: 14px;
     color: var(--muted);
   }
   
   .social-links {
     display: flex;
     gap: 16px;
     flex-wrap: wrap;
     justify-content: center;
   }
   
   .social-links a {
     font-size: 14px;
     color: var(--brand);
     text-decoration: none;
     font-weight: 600;
     transition: color 0.2s ease, transform 0.2s ease;
   }
   
   .social-links a:hover {
     color: var(--brand-2);
     transform: translateY(-2px);
   }
   
