@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=DM+Sans:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f0f2f5;
  color: #333;
  min-height: 100vh;
}

/* Login page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #1B2D6B;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.login-logo h1 {
  font-size: 20px;
  font-weight: 600;
  color: #1B2D6B;
}

.login-logo p {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.login-form-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.login-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.login-form-card input[type="password"] {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.login-form-card input[type="password"]:focus {
  border-color: #1B2D6B;
}

.login-form-card button {
  width: 100%;
  background: #1B2D6B;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s;
}

.login-form-card button:hover {
  background: #152350;
}

.login-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

.login-help {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #aaa;
}

/* Index page */
.index-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px;
}

.index-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1B2D6B;
  margin-bottom: 24px;
}

.index-header .badge {
  background: #1B2D6B;
  color: white;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  flex-shrink: 0;
}

.index-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1B2D6B;
}

.index-header .logout {
  margin-left: auto;
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.index-header .logout:hover {
  color: #c0392b;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-row {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.tool-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tool-row.border-red    { border-left: 4px solid #c0392b; }
.tool-row.border-blue   { border-left: 4px solid #2980b9; }
.tool-row.border-green  { border-left: 4px solid #27ae60; }

.tool-row .name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.tool-row .desc {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.tool-row .arrow {
  color: #1B2D6B;
  font-size: 20px;
  flex-shrink: 0;
}
