/* Licențe EAM - Design modern cu carduri */
:root {
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --accent: #0ea5e9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --status-pending: #f59e0b;
  --status-pending-bg: #fef3c7;
  --status-accepted: #059669;
  --status-accepted-bg: #d1fae5;
  --status-rejected: #dc2626;
  --status-rejected-bg: #fee2e2;
}

* { box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Navbar modernă */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
}
.app-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.app-header .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.app-header .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.app-header .nav-links a,
.app-header .nav-links span {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.app-header .nav-links a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.app-header .nav-links .user-info {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-right: 0.25rem;
}
.app-header .nav-links .logout {
  background: rgba(255,255,255,0.2);
  font-weight: 500;
}
.app-header .nav-links .logout:hover { background: rgba(255,255,255,0.3); }

/* Carduri */
.app-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.app-card:hover { box-shadow: var(--shadow-lg); }
.app-card .card-header {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.app-card .card-body { padding: 1.25rem; }

/* Status badge-uri */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pending { background: var(--status-pending-bg); color: #b45309; }
.status-accepted { background: var(--status-accepted-bg); color: #047857; }
.status-rejected { background: var(--status-rejected-bg); color: #b91c1c; }

/* Card cerere (student / profesor) */
.request-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.request-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.request-card .request-title { font-weight: 600; font-size: 1.05rem; color: var(--text); margin-bottom: 0.35rem; }
.request-card .request-meta { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.request-card .request-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.request-card .request-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Butoane */
.btn-app {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-app-primary { background: var(--primary); color: #fff; }
.btn-app-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-app-success { background: #059669; color: #fff; }
.btn-app-success:hover { background: #047857; color: #fff; }
.btn-app-outline-danger { background: transparent; color: #dc2626; border: 2px solid #dc2626; }
.btn-app-outline-danger:hover { background: #dc2626; color: #fff; }
.btn-app.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* Pagini auth (login / register) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, #e0e7ff 0%, #f1f5f9 50%, #e2e8f0 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 2rem;
}
.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.auth-card .form-label { font-weight: 500; color: var(--text); }
.auth-card .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
}
.auth-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.auth-card .btn-primary {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: var(--primary);
  border: none;
}
.auth-card .btn-primary:hover { background: var(--primary-hover); }
.auth-card .auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-card .auth-footer a { color: var(--primary); font-weight: 500; }

/* Layout pagini cu header */
.app-page { padding: 1.5rem 0 3rem; }
.app-page .page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text); }

/* Wizard steps */
.wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.wizard-step {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.wizard-step.active { background: var(--primary); color: #fff; }
.wizard-step.done { background: var(--status-accepted-bg); color: var(--status-accepted); }

/* Alerte */
.alert-app {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  border: none;
}
.alert-app.alert-success { background: var(--status-accepted-bg); color: #047857; }
.alert-app.alert-danger { background: var(--status-rejected-bg); color: #b91c1c; }

/* Tabele în carduri (admin / secretariat) */
.app-card .table { margin-bottom: 0; }
.app-card .table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.app-card .table td { padding: 0.85rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border); }
.app-card .table tbody tr:last-child td { border-bottom: none; }
.app-card .table tbody tr:hover { background: #f8fafc; }

/* Form în card */
.form-card .form-label { font-weight: 500; color: var(--text); }
.form-card .form-select,
.form-card .form-control { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.form-card .form-select:focus,
.form-card .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
