@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Fira+Code&display=swap');
html {scroll-behavior: smooth;}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#f1f1f1}
::-webkit-scrollbar-thumb{background:linear-gradient(0,rgba(255,0,0,0.8) 0,rgba(7,0,211,0.8) 100%)}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(0,rgba(255,0,0,1) 0,rgba(7,0,211,1) 100%)}
body { 
    background: #0f172a; 
    font-family: 'Inter', sans-serif; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding: 30px 20px; 
    margin: 0;
}
.editor-container { 
    width: 98%; 
    box-sizing: border-box;
    background: #1e293b; 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.1);
}
.header { 
    background: linear-gradient(90deg, #3b82f6, #2563eb); 
    color: #fff; 
    padding: 20px; 
    font-size: 1.75rem; 
    font-weight: 700; 
    letter-spacing: -0.5px;
    /* display: flex; */
    align-items: center;
    gap: 10px;
    display: block;
}
.header::before {
    content: '📝';
}
.kiri {
    float: right;
    margin: -10px 5px 0 0;
    font-size: 0.9rem;
    font-weight: 300;
}
.curut {
    margin: 0;
    padding: 0; 
    color: #fff;
    line-height: 1.2em;
    text-shadow: 0 0 2px #333;
    padding-left: 5px;
    border-left: 3px solid #fff;
    border-bottom: 1px dotted #999; 
    transition: 0.6s ease;
}
.curut:hover, .tutup:hover{
    color: #FC6406;
    cursor: pointer;
}
.tutup, .titit {
    font-size: 1.2rem;
    color: #fff;
}
.totot {
    float: right !important;
    margin: 10px 10px 0 0;
}
a { 
    text-decoration: none; 
    color: #fff; 
    border-bottom: 1px dotted #999;
    text-shadow: 0 0 2px #333;
    transition: 0.6s ease;
} a:hover { 
    color: #FC6406; 
}
.tabs { 
    display: flex; 
    background: #334155; 
    padding: 5px;
    gap: 5px;
}
.tab-btn { 
    flex: 1; 
    padding: 12px;  
    background: rgba(59, 130, 246, 0.1);
    color: #94a3b8; 
    font-weight: 600;
    cursor: pointer; 
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}
.tab-btn:hover { 
    background: rgba(255,255,255,0.05); 
    color: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.4); 
}
.tab-btn.active { 
    background: #0f172a; 
    color: #3b82f6; 
    border: 1px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.view-btn.active { color: #10b981; border: 1px solid #10b981; }
/*
.tab-btn:last-child { background: #475569; color: #fff; border: 1px solid #3b82f6}
.tab-btn:last-child:hover { background: #64748b; }
*/
.tab-content { 
    background: rgba(15, 23, 42, 0.95);
    width: 100%;
    height: 450px; 
    padding: 25px; 
    overflow-y: auto;
    overflow-x: hidden;
    display: none; 
    outline: none;
    color: #e2e8f0;
    font-family: 'Fira Code', monospace; 
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    transition: background 0.3s ease, border 0.3s ease;
}
.tab-content.active { display: block; }
.tab-content:focus {
    background: rgba(17, 27, 45, 1);
    color: #22d3ee;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 1px solid #facc15;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(34, 211, 238, 0.02);
}
#view-tab:focus {
    border: none;
    box-shadow: none;
}
.tab-content::-webkit-scrollbar { width: 8px; }
.tab-content::-webkit-scrollbar-track { background: #0f172a; }
.tab-content::-webkit-scrollbar-thumb { 
    background: #334155; 
    border-radius: 10px; 
    border: 2px solid #0f172a;
}
.tab-content::-webkit-scrollbar-thumb:hover { background: #3b82f6; }
#view-tab { 
    background: transparent; 
    padding: 5px;
    overflow: hidden;
}
#preview-area {
    width: 100%;
    height: 440px;
    margin-top: -90px;
}
.code-line {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
    padding: 2px 0;
    transition: all 0.2s ease;
}
.code-line:hover {
    background: rgba(59, 130, 246, 0.05);
    border-bottom: 1px dotted rgba(59, 130, 246, 0.3);
}
.tab-content {
    line-height: 1.6; 
}
.side-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: right 0.6s ease;
}
#toggle-panel:checked ~ .side-panel {
    right: 0;
}
.overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
}
#toggle-panel:checked ~ .overlay {
    display: block;
}
#terminal-btn { position:fixed; bottom:20px; left:20px; background:#f5f5f5; padding:6px 10px 6px 10px; border-radius:5px; cursor:pointer; box-shadow:0 0 8px #111; z-index:9999; opacity:0.6; transition: all 0.8s ease;}
#terminal-btn:hover {box-shadow:0 0 12px #000; opacity:1; transition: all 0.8s ease;}
#terminal-screen { position:fixed !important; top:20%; left:25%; width:50%; height:300px; background:rgba(0,0,0,0.9); border: 1px solid #333; color:#00ff00; font-family:'Courier New', Courier, monospace; padding:10px; z-index:10000; border-radius:8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); overflow: hidden !important;}
#terminal-logs {overflow-y: auto !important;}
#terminal-logs::-webkit-scrollbar { width: 8px; }
#terminal-logs::-webkit-scrollbar-track { background:transparent !important; }
#terminal-logs::-webkit-scrollbar-thumb { background:#333; border-radius: 10px; border:none;}
#terminal-input, #terminal-input:focus { background:transparent; border:none; font-family:'Courier New', Courier, monospace; color:#fff; letter-spacing: .15em; width:80%; outline:none; font-size:14px; }
#terminal-content p { margin: 5px 0; line-height: 1.2; }
#custom-menu { display: none; position: absolute; background: rgba(30, 30, 30, 0.9); color: #0f0; border: 1px solid #0f0; padding: 10px; z-index: 99999; border-radius: 5px; min-width: 200px; font-family: monospace; box-shadow: 0 0 10px rgba(0,255,0,0.5); }
#custom-menu div { padding: 8px; cursor: pointer; }
#custom-menu div:hover { background: #0f0; color: #000; }
table, td, tr, textarea {
    font-size: 12px !important;
    background: transparent !important;
    word-break: break-all;
}
table {  
    background: rgba(15, 23, 42, 0.95);   
    border: 1px solid #c0c0c0;
    width: 100%;
}
td {
    padding: 2px;
    width: auto;
    border-bottom: 1px dotted #c0c0c0;
}
.td1 {
    text-align: center;
    width: auto;
}
.td2 {
    background: rgba(59, 130, 246, 0.05);   
    margin: 0; 
    padding: 2px; 
}
.td2:hover {
    background: #111;
}
textarea {
    background: transparent !important;
    font-family: 'Fira Code', monospace !important;
    width: 70px;
    heigt: auto;
    font-size: 12px;
    color: #22d3ee;
    border: none; 
    outline: none; 
    resize: none;    
    overflow: hidden;
    cursor: default;
}
.yy {
    background: #3b82f6;
    font-size: 12px !important;
    color: #fff;
    text-align: center;
    padding: 5px;
}
.yxy {
    font-size: 14px !important;
}
.xxx {
    background: rgba(59, 130, 246, 0.5);
    font-size: 12px !important; 
    font-weight: normal;
    color: #e2e8f0;  
    padding-left: 5px;
}
.tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
    gap: 4px;
    text-align: center;
}
.dot-color {
    width: 14px;
    height: 14px;
    background-color: #3b82f6;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}
.cssmodal {
    display: flex;
    position: fixed;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: top 0s .5s, opacity .3s 0s;
}
.cssmodal:target {
    top: 0;
    opacity: 1;
    transition: none;
}
.cssmodal figure {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #000;
    width: 95%;
    max-width: 600px;
    position: relative;
    padding: 1.5em;
    opacity: 0;
    border-radius: 15px;
    box-shadow: 0 0 8px #000;
    transition: all 0.8s ease;
}
.cssmodal.dialog figure {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 15px;
    padding-top: 10px;
    color: #111;
    box-shadow: 0 0 8px #000;
    transition: all 0.8s ease;
}
.cssmodal.dialog figure h2 {
    margin-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    color: #fff;
}
.cssmodal:target figure {
    opacity: 1;
}
.cssmodal.dialog .smallclose {
    text-decoration: none;
    position: absolute;
    right: 20px;
    top: 0px;
    font-size: 36px;
    border-bottom: 1px solid #eee;
}
.cssmodal .veil {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: rgba(0,0,0,.7);
    content: "";
    cursor: default;
    visibility: hidden;
    transition:  all 0.8s ease;
}
.cssmodal .veil::before, .cssmodal .veil::after {
    content: "";
    display: block;
    position: fixed;
    width: 50px;
    height: 6;
    background: #fff;
    top: 50%;
    cursor: pointer;
    text-indent: -1000px;
    z-index: 10;
    top: 30px;
    right: 5px;
    transform: rotate(0);
    transition:  all 0.8s ease;
}
.cssmodal:target .veil {
    visibility: visible;
}
.cssmodal:target .veil::before, .cssmodal:target .veil::after {
    transform: rotate(45deg);
}
.cssmodal:target .veil::after {
    transform: rotate(-45deg);
}
.about-p {
    background: rgba(0,0,0,0.4); 
    color:#c0c0c0; 
    line-height: 1.6em;
    padding: 15px; 
    border-radius: 8px;
}
.faq-container {
    max-height: 300px;
    overflow-y: auto; 
    text-align: left;
    font-size: 14px;
}
details {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
    line-height: 1.6em;
    margin-bottom: 8px;
    margin-right: 5px;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.8s ease;
}
summary {
    cursor: pointer;
    outline: none;   
}
summary:hover {
    color: #22d3ee;
    transition: all 0.8s ease;
}
.answer {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #3b82f6;
    color: #ccc;
    font-style: italic;
    transition: all 0.8s ease;
}
.faq-container::-webkit-scrollbar {
    width: 6px;
}
.faq-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.faq-container::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
}
.faq-container::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
    cursor: grab;
}