:root {
  --primary: #4f46e5;
  --secondary: #ec4899;
  --background: #f8fafc;
  --text: #1e293b;
  --white: #ffffff;
  --gray: #64748b;
  --success: #10b981;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --glass: rgba(255, 255, 255, 0.7);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Glassmorphism Header */
header {
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

h1 {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
  border-radius: 0.4rem;
  transition: 0.3s;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Forms & Cards */
.card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: none;
}

.card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  outline: none;
  transition: boarder 0.3s;
}

input:focus {
  border-color: var(--primary);
}

button.btn-submit {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
}

button.btn-submit:hover {
  filter: brightness(1.1);
}

/* Search Results Table */
.search-bar {
  margin-bottom: 2rem;
  position: relative;
}

.search-bar input {
  padding-left: 3rem;
  font-size: 1.1rem;
}

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

th {
  text-align: left;
  color: var(--gray);
  border-bottom: 2px solid #f1f5f9;
  padding: 1rem;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-new {
  background: #dcfce7;
  color: #166534;
}

.badge-old {
  background: #fef9c3;
  color: #854d0e;
}

/* Section Responsables */
.guardians-section {
  margin-top: 2rem;
  border-top: 2px solid #f1f5f9;
  padding-top: 2rem;
}

.guardian-row {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.guardian-row h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guardian-row h3::before {
  content: "👤";
}