@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:transparent;}
::-webkit-scrollbar-thumb{border-radius:5px; 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; 
    padding: 0; 
    margin: 0;
}
.editor-container { 
    width: 900px; 
    background: transparent; 
    overflow: hidden; 
    border: none;
}
.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 {
    line-height: 1.2em;
    color: #fff;
    text-shadow: 0 0 2px #333;
    margin: 0;
    padding: 0; 
    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 8px 15px 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 #0f172a; */
    border: none;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    transition: 0.6s ease;
}
.tab-content.active { display: block; }
.tab-content:focus {
    /* background: rgba(17, 27, 45, 1); */
    color: #22d3ee;
    border: none;
    /* 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); */
    transition: 0.6s ease;
}
#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 {
    background: transparent;
    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;
}
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);
}