:root {
  --primary: #3498db;
  --secondary: #2c3e50;
  --success: #2ecc71;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #1abc9c;
  --light: #ecf0f1;
  --dark: #34495e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f7fa;
  margin-left: 250px;
  padding-top: 70px;
}

.main-content {
  padding: 30px;
  min-height: calc(100vh - 70px);
}

/* Dashboard Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s;
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.stat-card i {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

/* Add the users-cog icon CSS if not already present */
.fa-users-cog:before {
  content: "\f509";
}
.stat-card h3 {
  color: #7f8c8d;
  margin-bottom: 10px;
  font-size: 16px;
}

.stat-card .count {
  font-size: 28px;
  font-weight: 700;
}

.stat-card .sub-count {
  font-size: 14px;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}

.bg-pink { background: linear-gradient(135deg, #e84393, #fd79a8); color: white; }
.bg-teal { background: linear-gradient(135deg, #00b894, #55efc4); color: white; }
.bg-indigo { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; }
.bg-amber { background: linear-gradient(135deg, #fdcb6e, #ffeaa7); color: #2d3436; }
.bg-blue { background: linear-gradient(135deg, #3498db, #2980b9); color: white; }
.bg-green { background: linear-gradient(135deg, #2ecc71, #27ae60); color: white; }
.bg-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: white; }
.bg-orange { background: linear-gradient(135deg, #e67e22, #d35400); color: white; }

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.card h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card ul {
  list-style: none;
}

.card ul li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card ul li:last-child {
  border-bottom: none;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: var(--light);
  color: var(--dark);
}

.btn-secondary:hover {
  background: #bdc3c7;
}

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #7f8c8d;
  font-size: 16px;
  transition: all 0.3s;
  padding: 5px;
}

.btn-icon:hover {
  color: var(--primary);
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #34495e;
}

.data-table tr:hover {
  background: #f8f9fa;
}
.student-photo, .teacher-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge.active {
  background: #d4edda;
  color: #155724;
}
.badge.inactive {
  background: #f8d7da;
  color: #721c24;
}
.badge.overdue {
  background: #fff3cd;
  color: #856404;
}

/* Dues List Styles */
.dues-controls {
  margin-bottom: 20px;
}

.summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}

.summary-item {
  display: flex;
  flex-direction: column;
}

.summary-item span:first-child {
  font-size: 14px;
  color: #7f8c8d;
}

.summary-item .amount {
  font-size: 18px;
  font-weight: 700;
}
.summary-item .overdue {
  color: #e74c3c;
}

.summary-item .present {
  color: #2ecc71;
}
.summary-item .absent {
  color: #e74c3c;
}

.summary-item .paid {
  color: #2ecc71;
}

.summary-item .pending {
  color: #f39c12;
}

.badge.warning {
  background: #fff3cd;
  color: #856404;
}

/* Teacher Salary */
.total-row {
  font-weight: bold;
  background: #f8f9fa;
}

/* Teacher Attendance */
.attendance-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.attendance-controls .form-group {
  margin-bottom: 0;
}
/* Fee Collection Page Styles */
.hidden {
  display: none;
}

.fee-search {
  margin-bottom: 20px;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.student-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.student-details h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.student-details p {
  margin: 5px 0;
  color: #7f8c8d;
}

.fee-details {
  margin-bottom: 30px;
}

.discount-options {
  display: flex;
  gap: 10px;
}

.discount-options input {
  width: 100px;
}

.payment-details {
  margin-top: 30px;
}
/* Forms */
.form-group {
  margin-bottom: 20px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7f8c8d;
}

.close-btn:hover {
  color: #e74c3c;
}

/* Class Details */
.class-details {
  padding: 10px;
}

.detail-row {
  margin-bottom: 15px;
  display: flex;
}

.detail-row .label {
  font-weight: 600;
  width: 150px;
  color: #34495e;
}

.section-badges {
  display: flex;
  gap: 5px;
}

.section-badges .badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: #3498db;
  color: white;
  font-size: 12px;
}
/* Teacher form styling */
select[multiple] {
  height: auto;
  min-height: 100px;
}
/* Academic Calendar Styles */
.calendar-view {
    margin-top: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th, .calendar-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.calendar-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.calendar-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.calendar-table tr:hover {
    background-color: #f1f1f1;
}
/* Timetable Styles */
.timetable-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.timetable-table th, .timetable-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.timetable-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.timetable-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.timetable-table tr:hover {
  background-color: #f1f1f1;
}

/* Transport form styling */
#transport-details {
background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
  transition: all 0.3s ease;
  display: none;
  flex-wrap: wrap;
  gap: 20px;
}
#transport-details {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
  transition: all 0.3s ease;
}

#transport-option {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr !important;
  }
  
  .student-info {
    flex-direction: column;
    text-align: center;
  }
  
  .discount-options {
    flex-direction: column;
    gap: 5px;
  }
  
  .discount-options input {
    width: 100%;
  }
}
@media (max-width: 768px) {
  body {
    margin-left: 0;
  }
  
  :host {
    margin-left: 0 !important;
  }
}