/* assets/css/styles.css */
/* Neon Glow Blue Theme - Konsisten dengan waverif & onlineverif */
:::root{
  --bg:#041018;
  --panel:#0a0e27;
  --card:#1a1f3a;
  --muted:#90a4ad;
  --accent:#00aeff;
  --accent-2:#00d4ff;
  --glass: rgba(0,174,255,0.1);
  --white:#e6f7fb;
  --radius:12px;
  --sidebar-w:280px;
  --max-w:1400px;
}

/* base */
*{box-sizing:border-box;margin:0;padding:0}
html,body{
  height:100%;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color:var(--white);
  background:linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  -webkit-font-smoothing:antialiased;
}

/* header */
.site-header{
  position:fixed;
  left:0;
  right:0;
  top:0;
  background:linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  backdrop-filter: blur(12px);
  padding:16px 0;
  z-index:100;
  border-bottom:2px solid rgba(0,174,255,0.2);
  box-shadow:0 8px 32px rgba(0,0,0,0.5);
}

.header-inner{
  max-width:var(--max-w);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-avatar{
  width:52px;
  height:52px;
  border-radius:12px;
  object-fit:cover;
  border:2px solid rgba(0,174,255,0.4);
  box-shadow:0 0 20px rgba(0,174,255,0.3);
}

.brand-text{
  display:flex;
  flex-direction:column;
}

.brand-title{
  font-weight:700;
  font-size:20px;
  color: #00aeff;
  text-shadow:0 0 20px rgba(0,174,255,0.5);
  line-height:1.2;
}

.brand-sub{
  font-size:13px;
  color: #90a4ad;
  line-height:1.2;
}

.admin-btn{
  background:linear-gradient(135deg, #0066cc 0%, #00aeff 100%);
  color:white;
  padding:10px 24px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  border:2px solid rgba(0,174,255,0.5);
  box-shadow:0 4px 15px rgba(0,174,255,0.3);
  transition:all 0.3s ease;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.admin-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 25px rgba(0,174,255,0.5);
  background:linear-gradient(135deg, #0088ff 0%, #00d4ff 100%);
}

/* layout */
.app-shell{
  display:flex;
  padding-top:100px;
  min-height:calc(100vh - 120px);
  gap:24px;
  max-width:var(--max-w);
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;
}

/* sidebar */
.sidebar{
  width:var(--sidebar-w);
  padding:24px;
  position:sticky;
  top:110px;
  height:calc(100vh - 130px);
  background:linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  border-radius:16px;
  border:2px solid rgba(0,174,255,0.2);
  box-shadow:0 10px 40px rgba(0,0,0,0.6);
  display:flex;
  flex-direction:column;
  gap:16px;
}

.sidebar-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}

.sidebar-brand .sb-title{
  font-weight:700;
  font-size:20px;
  letter-spacing:0.5px;
  color: #f3f6f4;
  text-shadow:0 0 15px rgba(0,174,255,0.4);
}

/* sidebar nav buttons */
.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow-y:auto;
  flex:1;
  padding-right:4px;
}

.sidebar-nav::-webkit-scrollbar{
  width:6px;
}

.sidebar-nav::-webkit-scrollbar-track{
  background:rgba(0,0,0,0.2);
  border-radius:3px;
}

.sidebar-nav::-webkit-scrollbar-thumb{
  background:rgba(0,174,255,0.4);
  border-radius:3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover{
  background:rgba(0,174,255,0.6);
}

.sb-btn{
  background:rgba(15, 23, 42, 0.8);
  border:2px solid rgba(0,174,255,0.3);
  color:var(--white);
  padding:14px 16px;
  border-radius:10px;
  text-align:left;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:all 0.3s ease;
  box-shadow:0 4px 12px rgba(0,0,0,0.4);
}

.sb-btn:hover{
  background:rgba(0,174,255,0.08);
  border-color:var(--accent);
  transform:translateX(6px);
  box-shadow:0 6px 20px rgba(0,174,255,0.3);
}

.sb-btn.active{
  background:linear-gradient(90deg, rgba(0,174,255,0.15), rgba(0,212,255,0.08));
  border-color:var(--accent);
  color:var(--accent);
  box-shadow:0 6px 20px rgba(0,174,255,0.4);
}

/* pagination */
.sidebar-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding-top:12px;
  border-top:1px solid rgba(0,174,255,0.1);
}

.pg{
  background:rgba(15, 23, 42, 0.8);
  border:2px solid rgba(0,174,255,0.3);
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
  color:var(--white);
  transition:all 0.3s ease;
  font-weight:600;
  font-size:14px;
}

.pg:hover{
  background:rgba(0,174,255,0.1);
  border-color:var(--accent);
  box-shadow:0 4px 15px rgba(0,174,255,0.2);
}

.pg-info{
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

/* main area */
.main-area{
  flex:1;
  padding:0;
}

.mainView{
  max-width:100%;
  background:linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
  border-radius:16px;
  padding:32px;
  border:2px solid rgba(0,174,255,0.2);
  box-shadow:0 12px 40px rgba(0,0,0,0.6);
  min-height:calc(100vh - 150px);
}

/* welcome */
.welcome h2{
  margin:0 0 12px;
  color:#f3f6f4;
  font-size:32px;
  font-weight:700;
  text-shadow:0 0 20px rgba(0,174,255,0.5);
}

.welcome .muted{
  color: #f3f6f4;
  font-size:16px;
  margin:8px 0 16px;
}

.welcome p{
  color: #eeeeee;
  line-height:1.8;
  font-size:15px;
}

/* Tool containers - matching waverif style */
.tool-container{
  background:transparent;
}

.tool-header{
  text-align:center;
  margin-bottom:24px;
}

.tool-header h3{
  color:var(--accent);
  font-size:28px;
  font-weight:700;
  text-shadow:0 0 20px rgba(0,174,255,0.5);
  margin:0;
}

.tool-container label{
  display:block;
  color:#e0e0e0;
  font-weight:600;
  margin-top:20px;
  margin-bottom:10px;
  font-size:14px;
  letter-spacing:0.5px;
}

.tool-container input[type="text"],
.tool-container select,
.tool-container textarea{
  width:100%;
  background:rgba(15, 23, 42, 0.8);
  border:2px solid rgba(0,174,255,0.3);
  border-radius:10px;
  padding:14px;
  color:#ffffff;
  font-size:14px;
  font-family:'Consolas', 'Monaco', monospace;
  transition:all 0.3s ease;
  box-shadow:inset 0 2px 8px rgba(0,0,0,0.3);
  box-sizing:border-box;
}

.tool-container input:focus,
.tool-container select:focus,
.tool-container textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 20px rgba(0,174,255,0.4), inset 0 2px 8px rgba(0,0,0,0.3);
  background:rgba(15, 23, 42, 0.95);
}

.tool-container textarea::placeholder,
.tool-container input::placeholder{
  color:#6b7280;
}

.tool-container .btn{
  background:linear-gradient(135deg, #0066cc 0%, #00aeff 100%);
  color:white;
  border:2px solid rgba(0,174,255,0.5);
  padding:14px 28px;
  border-radius:10px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:all 0.3s ease;
  margin-right:12px;
  margin-top:10px;
  box-shadow:0 4px 15px rgba(0,174,255,0.3);
  text-transform:uppercase;
  letter-spacing:1px;
  display:inline-block;
}

.tool-container .btn:hover{
  transform:translateY(-3px);
  box-shadow:0 6px 25px rgba(0,174,255,0.5);
  background:linear-gradient(135deg, #0088ff 0%, #00d4ff 100%);
}

.tool-container .btn.small{
  padding:12px 24px;
  font-size:13px;
}

.tool-container .btn.export{
  background:linear-gradient(135deg, #00cc66 0%, #00ff88 100%);
  border-color:rgba(0,255,136,0.5);
  box-shadow:0 4px 15px rgba(0,204,102,0.3);
}

.tool-container .btn.export:hover{
  background:linear-gradient(135deg, #00ff88 0%, #00ffaa 100%);
  box-shadow:0 6px 25px rgba(0,255,136,0.5);
}

/* checkbox groups */
.checkbox-groups{
  margin-top:20px;
  padding:20px;
  background:rgba(15, 23, 42, 0.6);
  border-radius:12px;
  border:2px solid rgba(0,174,255,0.2);
  box-shadow:inset 0 2px 8px rgba(0,0,0,0.2);
}

.checkbox-groups > label:first-child{
  color:var(--accent);
  font-weight:bold;
  margin-bottom:15px;
  display:block;
  font-size:15px;
  text-shadow:0 0 10px rgba(0,174,255,0.3);
  margin-top:0;
}

.checkbox-groups > div{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.checkbox-groups > div label{
  cursor:pointer;
  padding:10px 16px;
  background:rgba(30, 41, 59, 0.8);
  border:1px solid rgba(0,174,255,0.3);
  border-radius:8px;
  transition:all 0.3s ease;
  color:#e0e0e0;
  font-size:13px;
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
}

.checkbox-groups > div label:hover{
  background:rgba(0,174,255,0.15);
  border-color:var(--accent);
  box-shadow:0 0 15px rgba(0,174,255,0.3);
  transform:translateY(-2px);
}

.checkbox-groups input[type="checkbox"]{
  margin:0;
  width:18px;
  height:18px;
  cursor:pointer;
  accent-color:var(--accent);
}

/* output box */
.output-box{
  margin-top:20px;
  white-space:pre-wrap;
  background:rgba(15, 23, 42, 0.8);
  padding:20px;
  border-radius:12px;
  border:2px solid rgba(0,174,255,0.3);
  min-height:100px;
  color:#e0e0e0;
  font-family:'Consolas', 'Monaco', monospace;
  font-size:13px;
  line-height:1.7;
  box-shadow:inset 0 2px 8px rgba(0,0,0,0.3), 0 0 20px rgba(0,174,255,0.1);
  max-height:600px;
  overflow-y:auto;
}

.output-box::-webkit-scrollbar{
  width:8px;
}

.output-box::-webkit-scrollbar-track{
  background:rgba(15, 23, 42, 0.5);
  border-radius:4px;
}

.output-box::-webkit-scrollbar-thumb{
  background:rgba(0,174,255,0.5);
  border-radius:4px;
}

.output-box::-webkit-scrollbar-thumb:hover{
  background:rgba(0,174,255,0.7);
}

.output-box:empty::before{
  content:'Hasil akan muncul di sini...';
  color:#6b7280;
  font-style:italic;
}

.result-section{
  display:none;
  margin-top:20px;
}

.result-header{
  color:var(--accent);
  font-size:18px;
  font-weight:600;
  margin-bottom:15px;
  text-shadow:0 0 10px rgba(0,174,255,0.3);
}

/* Loading spinner */
.center{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:200px;
}

@keyframes spin{
  to{transform:rotate(360deg)}
}

/* Responsive */
@media (max-width:980px){
  .app-shell{
    flex-direction:column;
    padding-top:100px;
  }
  
  .sidebar{
    position:relative;
    width:100%;
    height:auto;
    top:0;
    max-height:400px;
  }
  
  .mainView{
    min-height:400px;
  }
  
  .header-inner{
    padding:0 16px;
  }
}