* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #fbfbfd;
  --text:     #1d1d1f;
  --text-sub: #86868b;
  --accent:   #0071e3;
  --border:   #d2d2d7;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0px;
}

h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

button {
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 980px;
  border: none;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
button:hover  { background: #0077ed; transform: scale(1.03); }
button:active { transform: scale(0.97); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 30px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-size: 36px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-right { display: flex; align-items: center; gap: px; flex-direction: column; }
.nav-user { font-size: 13px; color: var(--text-sub); }
.nav-link {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 2px 2px;
  border-radius: 980px;
  transition: background 0.2s;
}
.nav-link:hover { background: rgba(0,0,0,0.05); }
.nav-link.secondary { color: var(--text-sub); }

/* Login */
.login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  padding: 48px 40px;
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-card h1 { font-size: 28px; margin-bottom: 8px; }
.login-card .sub { color: var(--text-sub); font-size: 15px; margin-bottom: 32px; }
.login-card input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.login-card input:focus { border-color: var(--accent); }
.login-card button { width: 100%; margin-top: 8px; }
.login-card .link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
}
.login-card .link:hover { text-decoration: underline; }

/* Hero */
.hero {
  text-align: left;
  padding: 10px 40px 0px 40px;
  max-width: 980px;
  margin: 0;
}
.hero h1 { margin-bottom: 10px;  font-size: 50px;}
.hero .sub {
  font-size: 20px;
  color: var(--text-sub);
}

/* Grid (index tiles) */
.grid {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tile {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.tile h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.tile p { color: var(--text-sub); font-size: 15px; }

/* WS button group (wb page) */
.btn-group {
  max-width: 600px;
  margin: 20px 0 0;
  padding: 20px 40px 0px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: center;
}
.ws-btn {
  background: #fff;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 980px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 20px;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ws-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.03);
}
.empty { text-align: center; color: var(--text-sub); padding: 40px; }

/* Breadcrumb */
.bread {
  max-width: 2200px;
  margin: 20px auto 0;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.bread-btn {
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
.bread-btn:hover { background: rgba(0,113,227,0.08); }
.bread-sep { color: var(--text-sub); }
.bread-current { color: var(--text-sub); }

/* WS wrapper (table page) */
.ws-wrap {
  max-width: 2200px;
  margin: 0 auto;
  padding: 0px 40px 60px;
}
.ws-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2px 0 11px;
}

/* Filter bar */
.ws-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ws-filter input[type="text"] {
  padding: 5px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  min-width: 300px;
  transition: border-color 0.2s;
}
.ws-filter input[type="text"]:focus { border-color: var(--accent); }
.ws-filter button { padding: 5px 20px; font-size: 12px; }
.ws-clear {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 12px;
}
.ws-clear:hover { color: var(--accent); }

/* Table */
.table-wrap {
  background: #fff;
  border-radius: 18px;
  border: 2px solid var(--border);
  overflow-x: auto;
  max-height: 68vh; 
}
.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  
}
.ws-table th,
.ws-table td {
  padding: 8px 20px;
  min-width: 130px;
  text-align: center;
  box-shadow:0 0 0 0.3px var(--border);
  
}
.ws-table th {
  background: #f5f5f7;
  font-weight: 500;
  color: var(--text-sub);
  position: sticky;
  outline: 1px solid var(--border);
  outline-offset: -0px;
  top: 0;

}

.ws-table th a { color: inherit; text-decoration: none; display: block; }
.ws-table th.sorted {
  background: #e6f2ff;   
}
.ws-table th.sorted a {
  color: #0066cc;
  font-weight: bold;
  background: transparent;   
}
.ws-table th a:hover { color: var(--accent); }
.ws-table tbody tr:hover { background: #fafafa; }
.ws-table tbody tr:last-child td { border-bottom: none; }


.footer-bar {
  position: fixed; 
  display:flex;
  justify-content: space-between;
  align-items: center;
  bottom: 0;          
  left: 0;
  right: 0;           
  background:  var(--bg);
  color: var(--text);
  padding: 10px 10px;
  z-index: 100;     
  font-size: 13px;
  color: var(--text-sub)
}

