/* Global font override: use Roboto Slab for all text */
:root { --font-text: "Roboto Slab", serif; }

/* Soft green theme tokens */
:root{
  --ki-green-50: #f6fff8;    /* card + row hover */
  --ki-green-75: #f1fff6;    /* inputs bg */
  --ki-green-100: #E9FFF0;   /* table header exact shade */
  --ki-green-150: #def6e6;   /* borders subtle */
  --ki-green-200: #cdeecf;   /* borders */
  --ki-green-300: #a7e3b3;   /* focus */
  --ki-green-600: #16a34a;   /* accent */
  --ki-shadow: 0 2px 8px rgba(0,0,0,.06);
}

html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, label,
button, input, select, textarea,
table, th, td, small, strong, em,
.menu-title, .page-title, .breadcrumb, .card, .nav, .list, .form-control,
.content-wrapper, .footer {
  font-family: var(--font-text) !important;
}

/* Keep icon fonts from being overridden by the global font */
i[class^="icon-"]::before,
i[class*=" icon-"]::before { font-family: "simple-line-icons" !important; }
.fa::before, .fas::before, .far::before, .fa-solid::before, .fa-regular::before { font-family: "Font Awesome 6 Free" !important; }
.fab::before, .fa-brands::before { font-family: "Font Awesome 6 Brands" !important; }

/* ---------------------------------------------
   Cards / Containers
--------------------------------------------- */
.card,
.table-section,
.content-wrapper .card,
.modal-content{
  background: linear-gradient(135deg, var(--ki-green-50) 0%, #ffffff 55%);
  border: 1px solid var(--ki-green-150);
  border-radius: 12px;
  box-shadow: var(--ki-shadow);
}

/* ---------------------------------------------
   Tables (soft green header, no vertical dividers)
--------------------------------------------- */
.table-section thead tr,
table thead tr,
.table thead tr{
  background: var(--ki-green-100) !important;
}
table thead th,
.table thead th{
  border: 0 !important;
  color: #1f2937;
  font-weight: 600;
}
table{
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}
table thead th:first-child{ border-top-left-radius: 8px; }
table thead th:last-child{ border-top-right-radius: 8px; }
/* remove vertical borders and keep only row separators */
table td, table th{ padding: 12px 12px; border-left: 0 !important; border-right: 0 !important; }
table tbody tr{ border-bottom: 1px solid var(--ki-green-150); }
table tbody tr:hover{ background: var(--ki-green-50); }

/* Data table wrappers that use .table classes */
.table{ background: transparent; border-color: transparent !important; }
.table thead th{ background: var(--ki-green-100); border-color: transparent !important; }
.table > :not(caption) > * > *{ border-left: 0 !important; border-right: 0 !important; }
.table-bordered{ border: 0 !important; }
.table-bordered > :not(caption) > *{ border-width: 0 !important; }
.table tbody tr:hover{ background: var(--ki-green-50); }

/* ---------------------------------------------
   Inputs / Selects / Textareas (match AddTeacherNewJoinPage)
--------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="password"],
select,
textarea,
.form-control{
  height: 38px;
    background: linear-gradient(180deg, #fbfff900 0%, #f6fff600 100%);
    border: 1px solid #bfe8c9 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, .10), 0 0 0 2px #eaf8ef73 inset;
    transition: border-color .15s 
ease, box-shadow .15s 
ease, background .15s 
ease;
}

input:focus, select:focus, textarea:focus, .form-control:focus{
  outline: none !important;
  border-color: #17b463 !important;
  background: #ffffff;
  /* Gentle focus ring + light outer shadow */
  box-shadow: 0 3px 12px rgba(34,197,94,.14), 0 0 0 2px #e3f8ea inset;
}

/* Lighter placeholders for the green fields */
::placeholder{ color:#9aa7a0; opacity:1; }

/* ---------------------------------------------
   Utility helpers
--------------------------------------------- */
.bg-soft-card{ background: linear-gradient(135deg, var(--ki-green-50) 0%, #ffffff 55%); }

.input-soft{ background: linear-gradient(135deg, var(--ki-green-75) 0%, #ffffff 60%); }
.p-datatable .p-datatable-thead > tr > th{
  background: var(--ki-green-100) !important;
}

/* ---------------------------------------------
   Student Profile • quick card and contacts
--------------------------------------------- */
.profile-container{ padding:20px 0; }

.sp-card{
  display:flex; align-items:center; gap:18px;
  padding:28px; border:1px solid var(--ki-green-200);
  border-radius:16px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.sp-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.sp-edit{
  position:absolute; top:12px; right:14px;
  font-size:13px; color: var(--ki-green-600); text-decoration:none;
  font-weight:600; transition: all 0.2s ease;
  padding: 6px 12px; border-radius: 8px;
}
.sp-edit:hover{
  background: var(--ki-green-100);
  text-decoration:none;
  transform: scale(1.05);
}
.sp-avatar-wrap{ position:relative; min-width:80px; }
.sp-avatar{
  width:80px; height:80px; border-radius:50%;
  object-fit:cover; display:block;
  border: 3px solid var(--ki-green-200);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.sp-badge{
  position:absolute; right:0; bottom:0; width:24px; height:24px;
  border-radius:50%; background:var(--ki-green-600); color:#fff; display:grid; place-items:center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  border: 2px solid #fff;
}
.sp-info{ flex:1; min-width:0; }
.sp-name{ font-weight:800; font-size:22px; color:#111827; line-height:1.2; margin-bottom: 8px; }
.sp-meta{
  color:#6b7280; display:flex; gap:16px; font-size:14px;
  flex-wrap: wrap;
}
.sp-meta span{
  display: inline-flex; align-items: center;
  background: var(--ki-green-100);
  padding: 4px 10px; border-radius: 6px;
  font-weight: 600;
}
.sp-meta i{ font-size: 12px; opacity: 0.8; }
.sp-dob{
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  background: var(--ki-green-50);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.cc-card{
  background:#fff; border:1px solid var(--ki-green-150);
  border-radius:16px; box-shadow: 0 4px 12px rgba(0,0,0,.08);
  padding:20px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cc-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.cc-head{ display:flex; align-items:center; gap:12px; margin-bottom:16px; padding-bottom: 12px; border-bottom: 1px solid var(--ki-green-150); }
.cc-icon{ width:40px; height:40px; border-radius:10px; background:var(--ki-green-600); color:#fff; display:grid; place-items:center; font-size: 18px; }
.cc-title{ font-weight:700; color:#111827; font-size: 16px; }

.cc-person{ display:flex; align-items:center; gap:12px; margin:8px 0 14px; }
.cc-avatar{
  width:36px; height:36px; border-radius:50%;
  background: linear-gradient(135deg, #8b5e3c 0%, #a67c5a 100%);
  display:inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.cc-avatar-mother{
  background: linear-gradient(135deg, #d946a6 0%, #ec4899 100%);
}
.cc-person-text{ line-height:1.3; }
.cc-person-name{ font-weight:700; color:#1f2937; font-size: 15px; }
.cc-person-role{ font-size:13px; color:#7b8794; margin-top: 2px; }

.cc-phones{
  display:flex; align-items:center; gap:12px;
  border:1px solid var(--ki-green-200);
  border-radius:10px; padding:10px 14px;
  background: var(--ki-green-50);
  transition: all 0.2s ease;
}
.cc-phones:hover{
  background: var(--ki-green-100);
  border-color: var(--ki-green-300);
}
.cc-phone-icon{ width:32px; height:32px; border-radius:8px; background:var(--ki-green-600); color:#fff; display:grid; place-items:center; font-size: 14px; }
.cc-phone-list{ display:flex; align-items:center; gap:10px; color:#1f2937; font-weight:600; font-size: 14px; }
.cc-sep{ color:#7b8794; margin:0 4px; }

/* ---------------------------------------------
   Student Information card (form grid)
--------------------------------------------- */
.si-card{
  border:1px solid var(--ki-green-150);
  border-radius:16px;
  background: linear-gradient(135deg,#ffffff 0%, var(--ki-green-50) 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.si-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.si-header{
  position:relative; padding:20px 24px 12px;
  text-align:center;
  border-bottom:2px solid var(--ki-green-150);
  background: var(--ki-green-50);
  border-radius: 16px 16px 0 0;
}
.si-title{
  font-weight:800; color:#111827;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.si-sub{ font-size:13px; color:#6b7280; margin-top:6px; font-weight: 500; }
.si-edit{
  position:absolute; top:16px; right:18px;
  color: var(--ki-green-600); font-weight:600;
  text-decoration:none; font-size:13px;
  padding: 6px 12px; border-radius: 8px;
  transition: all 0.2s ease;
}
.si-edit:hover{
  background: var(--ki-green-100);
  text-decoration:none;
  transform: scale(1.05);
}
.si-body{ padding:24px; }
.si-grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px 20px; }
.si-item{ display:flex; flex-direction:column; min-width:0; }
.si-label{
  font-weight:700; color:#0f172a;
  font-size:14px; margin-bottom:10px;
  display:block;
  letter-spacing: -0.01em;
}
.si-item .form-control{
  background: linear-gradient(180deg, #ffffff 0%, #fbfff9 100%);
  border:1px solid #bfe8c9 !important;
  border-radius:10px !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, .10), 0 0 0 2px #eaf8ef73 inset;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  transition: all 0.2s ease;
}
.si-item .form-control:focus{
  box-shadow: 0 3px 12px rgba(34,197,94,.14), 0 0 0 3px #e3f8ea inset;
  transform: translateY(-1px);
}
.si-textarea{ min-height:120px; resize:vertical; }
.si-row-2{ grid-row: span 2; }
/* exact 2-col grid alignment helpers */
.si-span-2{ grid-column: 1 / -1; }
.si-empty{ min-height: 0; }
@media (max-width: 992px){ .si-grid-2{ grid-template-columns:1fr; } }

/* Chips for subjects selection (visual-only here) */
.si-chips{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
  margin-top:10px;
}
.si-chip{
  width:100%; height:38px; padding:0 16px;
  border-radius:10px;
  border:2px solid #bfe8c9;
  background:linear-gradient(135deg,#ffffff 0%, #f6fff6 100%);
  color:#0f172a;
  font-weight:700;
  font-size: 13px;
  line-height:34px;
  text-align:center;
  box-shadow:0 2px 4px rgba(0,0,0,.06), 0 0 0 2px #eaf8ef73 inset;
  transition: all 0.2s ease;
  cursor: default;
}
.si-chip:focus, .si-chip:hover{
  outline:none;
  border-color:#17b463;
  box-shadow: 0 4px 8px rgba(0,0,0,.1), 0 0 0 3px #e3f8ea;
  transform: translateY(-2px);
}
@media (max-width: 1200px){ .si-chips{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (max-width: 992px){ .si-chips{ grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width: 576px){ .si-chips{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }

/* Academic Info + ID Card */
.equal-col{ display:flex; }
.ai-card{
  border:1px solid var(--ki-green-150);
  border-radius:16px;
  background:#fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  width:100%;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.ai-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 20px;
  border-bottom:2px solid var(--ki-green-150);
  background: var(--ki-green-50);
  border-radius: 16px 16px 0 0;
}
.ai-icon{
  width:40px; height:40px;
  border-radius:10px;
  background:var(--ki-green-600);
  color:#fff;
  display:grid;
  place-items:center;
  font-size: 18px;
}
.ai-title{ font-weight:800; color:#111827; font-size: 16px; }
.ai-body{ padding:20px; }
.ai-grid{ display:grid; grid-template-columns:1fr; gap:16px; }

.id-wrap{
  border:2px solid var(--ki-green-150);
  border-radius:12px;
  background: linear-gradient(135deg, var(--ki-green-50) 0%, #ffffff 55%);
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 220px;
}
.id-img{
  width:100%;
  max-height:260px;
  object-fit:contain;
  border-radius:10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.id-actions{ display:flex; justify-content:center; padding-top:16px; }
.id-btn{
  background: var(--ki-green-600);
  color:#fff;
  border:0;
  border-radius:10px;
  padding:12px 24px;
  font-weight:700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.id-btn:hover{
  background: #138f4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  color: #fff;
}

/* Doc chips at bottom */
.doc-chips{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top: 20px;
}
.doc-chip{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:auto;
  padding:12px 18px;
  border-radius:12px;
  border:2px solid #bfe8c9;
  background: linear-gradient(135deg, #ffffff 0%, #f6fff6 100%);
  color:#0f172a;
  font-weight:700;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 0 0 2px #ecf9f1 inset;
  transition: all 0.2s ease;
  cursor: pointer;
}
.doc-chip .doc-text{ white-space:nowrap; }
.dc-ico{
  width:28px; height:28px;
  border-radius:50%;
  background:var(--ki-green-600);
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: all 0.2s ease;
}
.dc-ico i{ font-size:13px; line-height:1; }
.doc-chip:hover{
  border-color:#17b463;
  box-shadow: 0 4px 10px rgba(0,0,0,.1), 0 0 0 3px #e3f8ea inset;
  transform: translateY(-3px);
}
.doc-chip:hover .dc-ico{
  transform: scale(1.1);
  background: #138f4e;
}
