/* Stage 117 - Modern Elegant UI Responsive Final */
:root{
  --ys117-bg:#f4f7fb;
  --ys117-card:#ffffff;
  --ys117-text:#0f172a;
  --ys117-muted:#64748b;
  --ys117-line:#e2e8f0;
  --ys117-primary:#0f5eea;
  --ys117-primary-2:#063b9f;
  --ys117-accent:#facc15;
  --ys117-green:#16a34a;
  --ys117-red:#ef4444;
  --ys117-shadow:0 18px 55px rgba(15,23,42,.10);
  --ys117-shadow-soft:0 10px 28px rgba(15,23,42,.07);
  --ys117-radius:22px;
  --ys117-radius-sm:14px;
}
html{scroll-behavior:smooth}
body.ys-dashboard-unified,body.ys-app-unified,body.ys-public-unified,body.ys-modern-login{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
  background:var(--ys117-bg)!important;
  color:var(--ys117-text)!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}
/* Dashboard shell */
body.ys-dashboard-unified .app, body.ys-app-unified .app{background:linear-gradient(135deg,#f8fbff 0%,#edf4ff 48%,#f8fafc 100%)}
body.ys-dashboard-unified .sidebar{
  background:linear-gradient(180deg,#071a40 0%,#0f172a 48%,#111827 100%)!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  box-shadow:14px 0 45px rgba(15,23,42,.14);
}
body.ys-dashboard-unified .brand{font-size:20px!important;letter-spacing:-.03em;color:#fff!important}
body.ys-dashboard-unified .role{color:#cbd5e1!important}
body.ys-dashboard-unified .nav-section{border-color:rgba(226,232,240,.12)!important;background:rgba(255,255,255,.045)!important;border-radius:16px!important}
body.ys-dashboard-unified .nav-section[open]{background:rgba(255,255,255,.075)!important;box-shadow:0 18px 38px rgba(2,6,23,.20)!important}
body.ys-dashboard-unified .nav-section-title{color:#f8fafc!important;font-size:12px!important;letter-spacing:.03em}
body.ys-dashboard-unified .nav-section-links a, body.ys-dashboard-unified .nav a{
  border-radius:13px!important;
  transition:.18s ease!important;
}
body.ys-dashboard-unified .nav a:hover,body.ys-dashboard-unified .nav .active{
  background:linear-gradient(135deg,rgba(15,94,234,.22),rgba(250,204,21,.14))!important;
  color:#fff!important;
  border-color:rgba(250,204,21,.24)!important;
  transform:translateX(2px);
}
body.ys-dashboard-unified .content{padding:28px!important;background:transparent!important}
body.ys-dashboard-unified .topbar{
  position:sticky;top:0;z-index:40;
  background:rgba(244,247,251,.78);backdrop-filter:blur(16px);
  border:1px solid rgba(226,232,240,.72);border-radius:22px;
  padding:14px 16px;box-shadow:var(--ys117-shadow-soft);margin-bottom:22px!important;
}
body.ys-dashboard-unified .card,body.ys-dashboard-unified .premium-card,body.ys-dashboard-unified .form-card,body.ys-dashboard-unified .mobile-action-card{
  border:1px solid rgba(226,232,240,.92)!important;
  border-radius:var(--ys117-radius)!important;
  box-shadow:var(--ys117-shadow-soft)!important;
  background:rgba(255,255,255,.94)!important;
}
body.ys-dashboard-unified .card:hover{box-shadow:var(--ys117-shadow)!important}
body.ys-dashboard-unified .hero, body.ys-dashboard-unified .compact-hero{
  background:radial-gradient(circle at 12% 20%,rgba(250,204,21,.22),transparent 28%),linear-gradient(135deg,#081a3c,#0f5eea 58%,#0f172a)!important;
  border-radius:28px!important;box-shadow:0 24px 70px rgba(15,94,234,.18)!important;
}
body.ys-dashboard-unified .grid{gap:18px!important}
body.ys-dashboard-unified .number{letter-spacing:-.04em!important}
body.ys-dashboard-unified .btn,body.ys-dashboard-unified .btn-primary,body.ys-dashboard-unified .btn-secondary,body.ys-dashboard-unified .btn-success,body.ys-dashboard-unified .btn-warning,body.ys-dashboard-unified .btn-danger{
  border-radius:14px!important;padding:11px 15px!important;font-weight:850!important;box-shadow:0 10px 24px rgba(15,23,42,.08);transition:.16s ease!important
}
body.ys-dashboard-unified .btn:hover,body.ys-dashboard-unified .btn-primary:hover,body.ys-dashboard-unified .btn-secondary:hover{transform:translateY(-1px);box-shadow:0 16px 32px rgba(15,23,42,.12)}
body.ys-dashboard-unified .table{border:1px solid var(--ys117-line)!important;border-radius:18px!important;overflow:hidden;background:white!important;box-shadow:var(--ys117-shadow-soft)}
body.ys-dashboard-unified .table th{background:#f1f5f9!important;color:#334155!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.03em}
body.ys-dashboard-unified .table td{background:#fff!important;color:#1e293b!important}
body.ys-dashboard-unified .status,body.ys-dashboard-unified .badge,body.ys-dashboard-unified .pill{border-radius:999px!important;font-weight:850!important}
body.ys-dashboard-unified input,body.ys-dashboard-unified select,body.ys-dashboard-unified textarea{
  border-radius:14px!important;border:1px solid #cbd5e1!important;background:#fff!important;box-shadow:0 1px 0 rgba(15,23,42,.03)
}
/* Public website */
body.ys-public-unified .header{
  position:sticky;top:0;z-index:80;background:rgba(255,255,255,.84)!important;backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(226,232,240,.82)!important;box-shadow:0 14px 38px rgba(15,23,42,.06)!important;
}
body.ys-public-unified .brand{font-weight:950!important;letter-spacing:-.04em!important;color:#0f172a!important}
body.ys-public-unified .nav-link,body.ys-public-unified .nav-summary{border-radius:999px!important}
body.ys-public-unified .hero{
  background:radial-gradient(circle at 12% 18%,rgba(250,204,21,.24),transparent 26%),radial-gradient(circle at 80% 10%,rgba(56,189,248,.20),transparent 30%),linear-gradient(135deg,#071a40 0%,#0f5eea 58%,#0f172a 100%)!important;
}
body.ys-public-unified .hero h1{letter-spacing:-.055em!important}
body.ys-public-unified .section{background:transparent!important}
body.ys-public-unified .premium-card,body.ys-public-unified .dark-card,body.ys-public-unified .timeline-item,body.ys-public-unified .form-card{
  border-radius:28px!important;box-shadow:0 24px 70px rgba(15,23,42,.10)!important;border:1px solid rgba(226,232,240,.92)!important;
}
body.ys-public-unified .btn{border-radius:999px!important;font-weight:900!important;box-shadow:0 14px 36px rgba(15,94,234,.16)}
body.ys-public-unified .wa-float{border-radius:999px!important;box-shadow:0 18px 55px rgba(34,197,94,.38)!important}
/* Auth page */
body.ys-modern-login .ys-page{background:radial-gradient(circle at 14% 12%,rgba(15,94,234,.18),transparent 28%),radial-gradient(circle at 86% 18%,rgba(250,204,21,.16),transparent 28%),linear-gradient(135deg,#f8fbff,#eef6ff)!important;padding:24px!important}
body.ys-modern-login .ys-browser{border-radius:30px!important;min-height:auto!important;box-shadow:0 34px 110px rgba(15,23,42,.16)!important}
body.ys-modern-login .ys-browser-top{background:rgba(255,255,255,.86)!important;backdrop-filter:blur(18px)}
body.ys-modern-login .ys-shell{min-height:720px!important;grid-template-columns:1fr 520px!important;background:linear-gradient(135deg,#ffffff,#f8fbff)!important}
body.ys-modern-login .ys-hero{background:radial-gradient(circle at 20% 18%,rgba(250,204,21,.26),transparent 26%),linear-gradient(135deg,#071a40,#0f5eea 56%,#0f172a)!important;position:relative!important;overflow:hidden!important}
body.ys-modern-login .ys-hero:after{content:"Ys Comindo Service";position:absolute;left:46px;bottom:44px;color:#fff;font-size:42px;font-weight:950;letter-spacing:-.055em;max-width:420px;line-height:.98;text-shadow:0 18px 50px rgba(0,0,0,.25)}
body.ys-modern-login .ys-card{border-radius:30px!important;border:1px solid rgba(226,232,240,.95)!important;box-shadow:0 25px 80px rgba(15,23,42,.12)!important}
body.ys-modern-login .ys-title{font-size:32px!important;letter-spacing:-.045em!important;color:#0f172a!important}
body.ys-modern-login .ys-subtitle{color:#64748b!important;margin-top:-6px;margin-bottom:20px;line-height:1.5;font-size:14px;text-align:center}
body.ys-modern-login .ys-btn{border-radius:16px!important;min-height:52px!important;font-weight:900!important;transition:.18s ease!important}
body.ys-modern-login .ys-btn:hover{transform:translateY(-1px);box-shadow:0 18px 38px rgba(15,23,42,.12)!important}
body.ys-modern-login .ys-btn-gmail-official{background:#fff!important;color:#1f2937!important;border:1px solid #dadce0!important;display:flex!important;gap:12px!important;align-items:center!important;justify-content:center!important;text-decoration:none!important;margin-bottom:12px!important}
body.ys-modern-login .ys-btn-gmail-official svg{width:22px;height:22px;flex:0 0 auto}
body.ys-modern-login .ys-field input{border-radius:15px!important;border:1px solid #cbd5e1!important;background:#fff!important}
body.ys-modern-login .ys-login-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px 14px;color:#475569;font-size:12px;line-height:1.45;margin-top:14px}
/* Responsive */
@media (max-width:1180px){
  body.ys-dashboard-unified .sidebar{width:254px!important}
  body.ys-dashboard-unified .content{margin-left:254px!important;width:calc(100% - 254px)!important;padding:22px!important}
  body.ys-modern-login .ys-shell{grid-template-columns:1fr 480px!important}
}
@media (max-width:900px){
  body.ys-dashboard-unified .app{display:block!important}
  body.ys-dashboard-unified .sidebar{position:relative!important;width:auto!important;min-height:auto!important;border-radius:0 0 26px 26px;padding:14px!important}
  body.ys-dashboard-unified .content{margin-left:0!important;width:100%!important;padding:16px 14px 92px!important}
  body.ys-dashboard-unified .topbar{position:relative!important;display:flex!important;border-radius:18px!important;margin-bottom:16px!important;align-items:flex-start!important;gap:12px!important;flex-direction:column!important}
  body.ys-dashboard-unified .grid{grid-template-columns:1fr!important;gap:12px!important}
  body.ys-dashboard-unified .card{padding:16px!important;border-radius:18px!important}
  body.ys-dashboard-unified .table{display:block!important;overflow-x:auto!important;white-space:nowrap!important;border-radius:16px!important}
  body.ys-dashboard-unified .number{font-size:25px!important}
  body.ys-dashboard-unified .hero{padding:20px!important;border-radius:22px!important}
  body.ys-dashboard-unified .actions{gap:8px!important}.actions .btn,.actions .btn-primary,.actions .btn-secondary{width:100%;justify-content:center;text-align:center}
  body.ys-public-unified .hero h1{font-size:38px!important}
  body.ys-public-unified .section{padding:44px 5%!important}
  body.ys-public-unified .wa-float{left:14px;right:14px;bottom:14px;text-align:center;padding:13px 14px!important}
  body.ys-modern-login .ys-page{padding:12px!important;align-items:flex-start!important}
  body.ys-modern-login .ys-browser{border-radius:22px!important;width:100%!important}
  body.ys-modern-login .ys-browser-top{display:none!important}
  body.ys-modern-login .ys-shell{display:block!important;min-height:auto!important}
  body.ys-modern-login .ys-hero{display:none!important}
  body.ys-modern-login .ys-login-side{padding:18px!important}
  body.ys-modern-login .ys-card{border-radius:24px!important;padding:20px!important}
  body.ys-modern-login .ys-title{font-size:27px!important}
}
@media (min-width:901px) and (max-width:1180px){
  body.ys-dashboard-unified .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ys-public-unified .hero h1{font-size:54px!important}
}
@media (min-width:1181px){
  body.ys-dashboard-unified .grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important}
  body.ys-dashboard-unified .content{max-width:calc(100vw - 292px)!important}
}
/* Print and accessibility */
@media print{.sidebar,.topbar,.wa-float,.mobile-bottom-nav,.notification-menu{display:none!important}.content{margin:0!important;width:100%!important;padding:0!important}.card{box-shadow:none!important}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
