/* school-custom.css */

/* General Refinements */
body {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.content-wrapper {
  background-color: #f4f6f9;
}

.box {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #3c8dbc; /* Default brand color */
}

.box-header.with-border {
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 20px;
}

.box-body {
  padding: 20px;
}

/* Form Controls */
.form-control {
  border-radius: 4px;
  box-shadow: none;
  border-color: #d2d6de;
  height: 38px;
}

.form-control:focus {
  border-color: #3c8dbc;
  box-shadow: none;
}

/* Initial Avatar Circle */
.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #555;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 12px;
  float: left;
  text-transform: uppercase;
}

/* Status Dots */
.status-dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.status-dot.active {
  background-color: #28a745;
}
.status-dot.inactive {
  background-color: #ffc107;
}
.status-dot.deleted {
  background-color: #dc3545;
}
.status-dot.transferred {
  background-color: #17a2b8;
}
.status-dot.terminated {
  background-color: #343a40;
}

/* Table Improvements */
.table > tbody > tr > td {
  vertical-align: middle;
  padding: 12px 10px;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

/* Action Buttons */
.btn-action-icon {
  border: none;
  background: transparent;
  color: #777;
  margin: 0 2px;
  font-size: 16px;
  transition: color 0.2s;
}
.btn-action-icon:hover {
  color: #333;
}
.btn-action-icon.edit:hover {
  color: #3c8dbc;
}
.btn-action-icon.status:hover {
  color: #f39c12;
}

/* Nav Tabs Custom */
.nav-tabs-custom {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}
.nav-tabs-custom > .nav-tabs > li.active {
  border-top-color: #3c8dbc;
}

/* Student Module Helpers */
.student-header-actions {
  margin-top: 10px;
  text-align: right;
}
.student-form-footer {
  margin-top: 20px;
}
.student-photo-preview {
  height: 50px;
  object-fit: contain;
}
.student-photo-loading {
  height: 50px;
  opacity: 0.6;
  object-fit: contain;
}
.student-photo-success {
  height: 50px;
  border: 2px solid #00a65a;
  object-fit: contain;
}

/* Student List Specific */
.inline-filter-form {
  display: inline-block;
  margin-right: 10px;
}
.student-avatar-img-container {
  background: none;
  border: none;
  padding: 0;
  float: left;
  margin-right: 12px;
}
.student-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.student-name-container {
  margin-top: 2px;
}
.student-name-link {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  text-decoration: none;
}
.student-meta-info {
  font-size: 12px;
  color: #888;
  margin-left: 52px;
}
.student-parent-name {
  font-weight: 600;
  font-size: 13px;
}
.student-parent-meta {
  font-size: 12px;
  color: #777;
}
.student-class-label {
  font-size: 11px;
}
.student-contact-info {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

/* ================= DASHBOARD STYLES ================= */
.content-header h1 {
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  color: #333;
}

/* Gradients for Small Boxes */
.small-box {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  border: none;
}
.small-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.sb-students {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
}
.sb-classes {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.sb-teachers {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}
.sb-income {
  background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
  color: #fff;
}
.sb-expense {
  background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  color: #fff;
}
.sb-boys {
  background: linear-gradient(135deg, #4fabff 0%, #0084ff 100%);
  color: #fff;
}
.sb-girls {
  background: linear-gradient(135deg, #fb77c4 0%, #f963bc 100%);
  color: #fff;
}

.small-box .icon {
  color: rgba(255, 255, 255, 0.25);
  top: 10px;
}
.small-box h3 {
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.small-box p {
  font-size: 16px;
  font-weight: 500;
}
.small-box-footer {
  background: rgba(0, 0, 0, 0.1) !important;
  border-radius: 0 0 12px 12px;
}

/* Quick Actions */
.quick-action-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  margin-bottom: 20px;
  display: block;
  text-decoration: none;
  color: #555;
  border: 1px solid #eee;
}
.quick-action-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
  color: #333;
}
.quick-action-box i {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

/* Widget Boxes */
.premium-box {
  border-top: none;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}
.premium-box .box-header {
  background: transparent;
  border-bottom: 1px solid #f0f0f0;
  padding: 15px;
}
.premium-box .box-title {
  font-weight: 700;
  color: #444;
}

/* Error Page */
.error-details-box {
  background: #fee;
  border: 1px solid #f00;
  padding: 15px;
  margin-top: 20px;
}

/* 
   FIX: AdminLTE Sidebar Toggle 
   AdminLTE default uses 'fontAwesome' (v4) which breaks with v5.
   We override it to use 'Font Awesome 5 Free' (Solid) 
*/
.main-header .sidebar-toggle {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}
.main-header .sidebar-toggle:before {
  content: "\f0c9" !important; /* fa-bars */
}
