/* Smart Panel — Panel module
   © 2026 SV Group / Company — Internal
*/

header{
  height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
}

.left-head{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:18px;
  font-weight:700;
  letter-spacing:.3px;
}

.logo-badge{
  width:36px;
  height:36px;
  border-radius:12px;
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  box-shadow:0 10px 24px rgba(37,99,235,.20);
}

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

/* Icon button (Info) */
.info-btn{
  width:38px;
  height:38px;
  border-radius:14px;
  padding:0;
}
.info-btn svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:var(--accent);
  stroke-width:2.3;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Main center */
main{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 18px 28px;
}

/* Apps Grid (2 columns) */
.apps-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
  width:min(760px, 100%);
}

/* App card */
.app{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  background:var(--card);
  border:1px solid var(--border);
  color:var(--text);
  box-shadow:var(--shadow);
  transition:transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  height:100%;
}
.app:hover{
  transform:translateX(6px);
  border-color:var(--focus);
  box-shadow:var(--shadow2);
}

.icon{
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(37,99,235,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:var(--accent);
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.app-info{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.app-info strong{ font-size:15px; }
.app-info span{ font-size:13px; color:var(--muted); }

/* Status badge (footer right) */
.status-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  user-select:none;
  white-space:nowrap;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}

.status-text{
  line-height:1.1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.status-text strong{ font-size:12px; color:var(--text); }
.status-text span{ font-size:12px; color:var(--muted); }

/* Overlay / Modal */
.overlay{
  position:fixed;
  inset:0;
  background:var(--overlay);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:50;
}
.overlay[aria-hidden="false"]{ display:flex; }

.modal{
  width:min(860px, 100%);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  box-shadow:0 30px 80px rgba(2,6,23,.28);
  backdrop-filter:saturate(160%) blur(14px);
  overflow:hidden;
}

.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 18px 12px;
  border-bottom:1px solid var(--border);
}

.modal-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.modal-title strong{ font-size:16px; }
.modal-title span{ font-size:12px; color:var(--muted); }

.close-btn{
  width:40px;
  height:40px;
  border-radius:14px;
  padding:0;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .14s ease, border-color .14s ease;
}
.close-btn:hover{
  transform:translateY(-1px);
  border-color:var(--focus);
}
.close-btn svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:var(--text);
  stroke-width:2.3;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.modal-body{
  padding:16px 18px 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.card{
  padding:14px 14px;
}

.card h3{
  font-size:13px;
  letter-spacing:.2px;
  margin-bottom:10px;
  color:var(--text);
}

.kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:8px 10px;
  font-size:12.5px;
}

.kv .k{ color:var(--muted); }
.kv .v{ color:var(--text); word-break:break-word; }

.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(37,99,235,.06);
  color:var(--accent);
  font-size:12.5px;
  transition:transform .14s ease, border-color .14s ease;
}
.link:hover{
  transform:translateY(-1px);
  border-color:var(--focus);
}

.link svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.code{
  margin-top:10px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
  line-height:1.5;
  background:rgba(15,23,42,.04);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
  overflow:auto;
  max-height:220px;
  white-space:pre;
}

/* Responsive */
@media(max-width:780px){
  header{padding:0 18px}
  .apps-grid{
    grid-template-columns:1fr;
    width:100%;
  }
  .modal-body{grid-template-columns:1fr}
  .kv{grid-template-columns:130px 1fr}
  .status-badge{ justify-content:center; }
}
