/**
 * @file style.css
 * @description Core stylesheet for the Light Theme version of the application.
 *
 * @copyright 2025
 *
 * MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/* ===========================
   Reset Styles
   =========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb; /* blue */
  --accent-light: #3b82f6;
  --danger: #dc2626;
}

/* Page base */
html, body {
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all 150ms ease;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
  background: #f1f5f9;
}

/* Main content */
.container {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}

/* Card */
.card {
  width: 100%;
  max-width: 760px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Typography */
.card h1, .card h2 {
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Form */
label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: var(--text);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  font-size: 0.95rem;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 120ms ease, box-shadow 120ms ease;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* Message / Helper text */
.message {
  margin-top: 10px;
  font-size: 0.95rem;
}

.tiny {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Result box */
.result {
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  color: var(--text);
  margin-top: 12px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid var(--border);
}

/* Actions group */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 720px) {
  .card {
    padding: 20px;
    margin: 0 8px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-brand {
    font-size: 1rem;
  }
}

/* Utility */
.center { text-align: center; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.success { color: #15803d; }
