:root {
  --clr-primary: #FF00A8;
  --clr-primary-dark: #C800D1;
  --clr-bg-light: #F9F9FB;
  --clr-bg: #FFFFFF;
  --clr-text: #333333;
  --radius: 12px;
  --transition: 0.3s ease-in-out;
  --gradient-primary: linear-gradient(135deg, #FF00A8 0%, #C800D1 100%);
}

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

.controls{
    margin: auto;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

#addStudentBtn, #saveBtn{
    font-size: 1.1rem;
    font-weight: 400;
    margin-right: 10px;

}

.as_form{
    width: 90%;
    margin: auto;
}

body {
  background: var(--clr-bg-light);
  color: var(--clr-text);
}

/* HERO BANNER */
.hero-add {
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.hero-add .hero-content {
  max-width: 900px;
  margin: 0 auto;
}
.hero-add h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.6s var(--transition) both;
}
.hero-add p {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeIn 0.6s var(--transition) both 0.2s;
}

/* FORM CARD WRAPPER */
.add-students-page {
  padding: 2rem 0;
}
.form-card {
  background: var(--clr-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 800px;
  margin: -3rem auto 2rem;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.6s var(--transition) both 0.4s;
}

/* STUDENT CARD */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.student-card {
  background: var(--clr-bg);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.student-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* CARD HEADER ICON + TITLE */
.student-card header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.student-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}
.student-card h3 {
  font-size: 1.25rem;
  color: var(--clr-primary-dark);
  font-weight: 600;
}

/* FORM FIELDS */
.field-row {
  margin-bottom: 1rem;
}
.field-row label {
  display: flex;
  align-items: center;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--clr-text);
}
.field-row label i {
  margin-right: 0.5rem;
  color: var(--clr-primary);
}
.field-row label span {
  color: #e74c3c;
  margin-left: 0.25rem;
  font-weight: 400;
}
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(255,0,168,0.2);
}

/* FORM ACTIONS */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn i {
  margin-right: 0.5rem;
}
/* Primary */
.btn.primary {
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.75rem 1.6rem;
  font-weight: 500;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
/* Outline */
.btn.outline {
  background: #fff;
  border: 2px solid var(--clr-text);
  color: var(--clr-text);
  padding: 0.65rem 1.4rem;
}
.btn.outline:hover {
  background: #f5f5f5;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .student-card { padding: 1.25rem; }
  .hero-add h1 { font-size: 2.25rem; }
}
@media (max-width: 480px) {
  .field-row { margin-bottom: 0.75rem; }
  .form-actions { flex-direction: column; align-items: stretch; }
}
