/* ===== Material-like CSS (statique, sans JS) ===== */

:root {
  --primary: #1976d2;        /* Material Blue 700 */
  --primary-dark: #115293;
  --primary-light: #e3f2fd;

  --surface: #ffffff;
  --background: #f5f5f5;
  --divider: #e0e0e0;

  --text: #212121;
  --text-secondary: #616161;

  --radius: 6px;
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

/* Top bar */
.topbar {
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Layout */
.container {
  max-width: 900px;
  margin: auto;
  padding: 24px;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Buttons */
button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 2px rgba(0,0,0,0.15),
              0 1px 5px rgba(0,0,0,0.2);
  transition: box-shadow 0.2s, background 0.2s;
}

button:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 6px rgba(0,0,0,0.25);
}

button:active {
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

button.outlined {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--divider);
  box-shadow: none;
}

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

button.text {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  padding: 6px 8px;
}

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


/* Inputs */
label {
  display: block;
  margin-top: 16px;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 8px 4px;
  font-size: 14px;
  border: none;
  border-bottom: 2px solid #bbb;
  background: transparent;
}

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

/* Titles */
h1, h2 {
  margin-top: 0;
  font-weight: 500;
  font-size: 30px;
}

/* ===== Buttons (Material-like) ===== */

button.outlined {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

button.outlined:hover {
  background: rgba(98, 0, 238, 0.08);
}

button.text {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
  padding: 8px 12px;
}

button.text:hover {
  background: rgba(98, 0, 238, 0.12);
}

/* ===== Links ===== */

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* ===== Tables ===== */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12),
              0 1px 2px rgba(0,0,0,0.24);
}

thead th {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-bottom: 2px solid var(--divider);
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}

tbody tr:hover {
  background: #f9f9f9;
}

tbody tr:last-child td {
  border-bottom: none;
}
