/* Main CSS - Matraquinha Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Quicksand:wght@500;700&display=swap');

:root {
  /* Colors */
  --color-primary: #EC2078;
  /* Pink (Pantone 213 C) */
  --color-primary-soft: #fdf2f7;
  /* Very Light Pink */
  --color-primary-hover: #c91160;

  --color-secondary-blue: #25A7DF;
  /* Blue (Pantone 2191 XGC) */
  --color-secondary-orange: #FFA726;
  /* Orange (Pantone 123 U) */

  --color-bg: #f8fafc;
  /* Light/Cool Grey Background */
  --color-card-bg: #ffffff;

  --color-text-main: #1e293b;
  /* Slate 800 */
  --color-text-muted: #64748b;
  /* Slate 500 */

  --color-border: #e2e8f0;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;

  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;

  /* Dimensions & Spacing */
  --radius-card: 16px;
  --radius-btn: 12px;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --max-width: 1100px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-title,
.brand-name,
.btn,
.nav-link {
  font-family: 'Quicksand', sans-serif;
}

/* Layout Shell */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  /* Explicitly keep body font for subtitle? Or Quicksand? usually subtitle aligns with title. let's keep Poppins for contrast or Quicksand. Image says Quicksand for subtitles. */
  font-family: 'Quicksand', sans-serif;
}

.user-badge {
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-weight: 500;
}

/* Navigation */
.app-nav {
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.nav-list {
  display: flex;
  gap: 12px;
}

.nav-link {
  flex: 0 0 auto;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 700;
  /* Quicksand looks better slightly bold */
}

.nav-link:hover {
  background: #fff;
  color: var(--color-primary);
}

.nav-link.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Components: Card */
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-family: 'Poppins', sans-serif;
}

/* Components: Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-main);
  transition: all 0.2s;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 6px -1px rgba(236, 32, 120, 0.2), 0 2px 4px -1px rgba(236, 32, 120, 0.1);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.btn-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: #fecaca;
}

/* Components: Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-main);
  font-family: 'Quicksand', sans-serif;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  background: #fff;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary-blue);
  /* Use secondary blue for focus ring? or Primary? Primary pink might be too strong for text areas. Let's try blue for focus to use the palette. */
  box-shadow: 0 0 0 3px rgba(37, 167, 223, 0.15);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Components: Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  min-width: 600px;
}

.table th,
.table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--color-text-muted);
  font-family: 'Quicksand', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Utilities */
.pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: #f3f4f6;
  color: var(--color-text-muted);
}

.pill-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: transparent;
}

.pill-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: transparent;
}

/* Login Page Only */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #fcebf2 0%, #e0f2fe 100%);
  /* Subtle gradient using brand light colors (Pink to Blue) */
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}