/* =========================================
   Global Reset & Base
========================================= */

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

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;

  --primary: #4f46e5;     /* Indigo / creative tech tone */
  --primary-hover: #4338ca;

  --border: #e5e7eb;
  --card: #f9fafb;

  --radius: 8px;
  --shadow: 0 6px 20px rgba(0,0,0,0.06);

  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  padding: 2rem;
}


/* =========================================
   Layout
========================================= */

.container {
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}


/* =========================================
   Typography
========================================= */

h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

code,
pre {
  font-family: var(--mono);
}


/* =========================================
   Navigation / Header
========================================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

header a {
  text-decoration: none;
  color: var(--fg);
  margin-right: 1.25rem;
  font-weight: 500;
}

header a:hover {
  color: var(--primary);
}


/* =========================================
   Forms & Inputs
========================================= */

form {
  margin-top: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}


/* =========================================
   Buttons
========================================= */

button,
.button {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: var(--primary-hover);
}

.button.secondary {
  background: #e5e7eb;
  color: #111;
}

.button.secondary:hover {
  background: #d1d5db;
}


/* =========================================
   Tool Output
========================================= */

.output {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 1.05rem;
  word-break: break-all;
}

.copy {
  margin-top: 0.75rem;
}


/* =========================================
   Tables (Admin / Redirect Manager)
========================================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  color: var(--muted);
}


/* =========================================
   Alerts
========================================= */

.notice {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.notice.error {
  background: #fee2e2;
  color: #991b1b;
}

.notice.success {
  background: #dcfce7;
  color: #166534;
}


/* =========================================
   Footer
========================================= */

footer {
  margin-top: 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}