/* -----------------------Header Section Css - Start----------------------- */
* {
         margin: 0;
         padding: 0;
         box-sizing: border-box;
      }

      body {
         font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
         background-color: #f5f5f5 !important;
         max-width: 1400px !important;
         margin: 0 auto !important;
      }

      .header {
         background: white;
         padding: 15px 20px;
         border-bottom: 3px solid #4a90e2;
         display: flex;
         justify-content: space-between;
         align-items: center;
      }

      .header h1 {
         color: #4a90e2;
         font-size: 20px;
         font-weight: 600;
      }

      .user-info {
         display: flex;
         align-items: center;
         gap: 10px;
      }

      .user-avatar {
         width: 32px;
         height: 32px;
         background: #4a90e2;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         color: white;
         font-weight: bold;
      }

      .smart-campus {
         color: #4a90e2;
         font-weight: 600;
      }

      .filters {
         background: white;
         padding: 20px;
         display: flex;
         justify-content: space-around;
         gap: 15px;
         align-items: center;
         flex-wrap: wrap;
         
      }

      .filter-group {
         display: flex;
         align-items: center;
         gap: 10px;
      }

      .search-input,
      .select-input {
         padding: 10px 15px;
         border: 2px solid #ddd;
         border-radius: 5px;
         font-size: 14px;
         min-width: 200px;
      }

      .select-input {
         min-width: 150px;
         background: white;
      }

      .year-input {
         padding: 10px 15px;
         border: 2px solid #4a90e2;
         border-radius: 5px;
         background: white;
         color: #4a90e2;
         font-weight: 600;
         min-width: 100px;
      }

      .calendar-btn {
         background: #4a90e2;
         color: white;
         border: none;
         padding: 10px 15px;
         border-radius: 5px;
         cursor: pointer;
         font-size: 16px;
      }

      .student-card {
         background: #F4FFE9;
         margin: 20px;
         margin-bottom: 0px;
         border-radius: 10px;
         padding: 20px;
         position: relative;
      }

      .student-header {
         display: flex;
         justify-content: space-between;
         align-items: center;
         border-bottom: 2px solid #ADF0C7;
         padding-bottom: 20px;
      }
      .student-header-std-name{
         width:40%;
         display: flex;
         justify-content: left;
         align-items: center;
         column-gap: 20px;
      }
      .student-name {
         font-size: 24px;
         font-weight: 600;
         color: #333;
      }
       .status-badges {
         display: flex;
         gap: 10px;
         width:60%;
         justify-content: space-between;
         align-items: center;
      }
      .badge {
         display: flex;
         flex-direction: row;
         color: white;
         font-size: 14px;
         justify-content: space-between;
         align-items: center;
         background-color: white;
      }

       .status-badge {
         display: flex;
         align-items: center;
         border: 1px solid #e5e7eb; /* light gray */
         background-color: #f1f5f9; /* light bg */
         padding: 8px 12px;
         width: fit-content;
         max-width: 100%;
         box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
         gap: 10px;
       }

       .badge-blue .status-badge-icon{
         background-color: #D6DEEE;
       }
       .badge-green .status-badge-icon{
         background-color: #D5F4DE;
       }
       .badge-yellow .status-badge-icon{
         background-color: #FFECDB;
       }
       .badge-red .status-badge-icon{
         background-color: #F2CECE;
       }
       .status-badge-icon {
         padding: 7px;
       }
       
       .status-badge-icon .icon {
         width: 24px;
         height: 24px;
         color: #1e3a8a; /* dark blue */
       }
       
       .status-badge-data {
         display: flex;
         flex-direction: column;
         justify-content: center;
         padding:0 9px;
       }
       
       .status-badge-data-1 {
         font-weight: 600;
         font-size: 14px;
         color: #1f2937; /* gray-800 */
         margin: 0;
       }
       
       .status-badge-data-2 {
         font-size: 10px;
         color: #6b7280; /* gray-500 */
         margin: 2px 0 0;
       }
       
      .student-details {
         font-size: 14px;
         color: #666;
      }

      .student-content {
         display: flex;
         gap: 20px;
         justify-content: space-between;
      }
      .student-info{
         width:40%;
      }

      .parent-info {
         display: flex;
         gap: 40px;
         justify-content: space-evenly;
         width:35%
       }
       
       .parent {
         display: flex;
         flex-direction: column;
         align-items: center;
         width: 180px;
       }
       
       .parent-photo-container {
         width: 100%;
         height: auto;
         display: flex;
         align-items: flex-start;
         justify-content: flex-start;
         overflow: hidden;
         margin-bottom: 10px;
       }
       
       .parent-photo {
         width: 60%;
         height: 100%;
         object-fit: cover;
       }
       
       .parent-details {
         text-align: left;
         width: 100%;
       }
       
       .parent-details h4 {
         margin: 0;
         font-size: 16px;
         color: #222;
       }
       
       .parent-details p {
         margin: 2px 0;
         font-size: 14px;
         color: #555;
       }
       
      .student-content-data {
         display: flex;
         align-items: center;
         justify-content: left;
         width:25%
       }
       
       .student-photo-wrapper {
         display: flex;
         flex-direction: column;
         align-items: flex-start;
         justify-content: flex-start;
         height: 100%;
       }
       
       .student-photo-container {
         width: 200px;
         height: auto;
         background-color: #f3f3f3;
         display: flex;
         align-items: center;
         justify-content: center;
         overflow: hidden;
       }
       
       .student-photo {
         width: 100%;
         height: 100%;
         object-fit: cover;
       }
       
       .student-photo-info {
         margin-top: 8px;
         display: flex;
         flex-direction: row;
         align-items: flex-start;
         max-width: 100%;
         width: 100%;
       }
       
       .info-label {
         font-weight: 600;
         color: #333;
         font-size: 14px;
       }
       
       .info-value {
         font-size: 14px;
         color: #666;
         height: 100%;
         margin: 1px 0 0 2px;
       }
       
       .info-grid{
         height: 100%;
         display: flex;
         justify-content: flex-start;
         align-items: flex-start;
         flex-direction: column;
         gap: 10%;
         padding-left: 15%;
         padding-top: 15px;
         background: white;
         border-radius: 10px;
        border: 2px solid #2dc75c;
       }
      .last-updated {
         font-size: 14px;
         color: #666;
      }
      .student-details-footer{
         display: flex;
         justify-content: space-between;
         padding: 0 5px;
         align-items: center;
         padding: 30px;
      }
      .status-legend {
         display: flex;
         gap: 60px;
         font-size: 15px;
      }

      .legend-item {
         display: flex;
         align-items: center;
         gap: 5px;
         justify-content: center;
         padding: 10px 0;
      }

      .legend-color {
         width: 12px;
         height: 12px;
         border-radius: 2px;
      }

      .legend-green {
         background: #adf0c7;
      }

      .legend-yellow {
         background: #ff9800;
      }

      .legend-orange {
         background: #ff5722;
      }

      .tabs {
         background: white;
         margin: 0 20px;
         border-radius: 5px;
         overflow: hidden;
         box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }

      .tab-nav {
         display: flex;
         background: #f8f9fa;
         border-bottom: 1px solid #ddd;
      }

      .tab-button {
         background: none;
         border: none;
         padding: 15px 20px;
         cursor: pointer;
         font-size: 14px;
         font-weight: 500;
         color: #666;
         border-bottom: 3px solid transparent;
         transition: all 0.3s ease;
      }

      .tab-button:hover {
         background: #e9ecef;
         color: #333;
      }

      .tab-button.active {
         color: #4812bf;
         border-bottom-color: #4a90e2;
         background: white;
      }

      .tab-content {
         padding: 20px;
         display: none;
         background: #f5f5f5;
      }

      .tab-content.active {
         display: block;
      }

      .content-grid {
         display: grid;
         grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
         gap: 20px;
      }

      .content-card {
         background: #f8f9fa;
         padding: 20px;
         border-radius: 8px;
         border-left: 4px solid #4a90e2;
      }

      .content-card h3 {
         color: #333;
         margin-bottom: 10px;
      }

      .content-card p {
         color: #666;
         line-height: 1.5;
      }

      .tab-loading {
         padding: 1rem;
         color: #666;
         font-style: italic;
         animation: fadeIn 0.3s ease-in-out;
      }

      @keyframes fadeIn {
         from {
            opacity: 0;
         }

         to {
            opacity: 1;
         }
      }
/* Header Section Css - End */

/* -----------------------Student Overview - Start----------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e1e8ed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f8;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

/* Academic Performance Card */
.academic-card {
    grid-column: 1 / 3;
}

.academic-card .card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.grade-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.subject-grade {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.subject-name {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.grade-value {
    font-size: 24px;
    font-weight: bold;
    color: #1e293b;
}

/* Attendance Card */
.attendance-card .card-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.attendance-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #059669;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Behavior Card */
.behavior-card .card-icon {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #92400e;
}

.behavior-metrics {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.behavior-item {
    text-align: center;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    min-width: 80px;
}

.behavior-score {
    font-size: 20px;
    font-weight: bold;
    color: #d97706;
}

/* Recent Activities Card */
.activities-card,.progress-card {
    grid-column: 1 / 3;
}

.activities-card .card-icon {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #be185d;
}

.activity-list {
    space-y: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.activity-date {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 12px;
    min-width: 60px;
    text-align: center;
}

.activity-text {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

/* Quick Actions Card */
.actions-card .card-icon {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #7c3aed;
}

.action-buttons {
    display: grid;
    gap: 12px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Progress Card */
.progress-card .card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.progress-item {
    margin: 16px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.chart-container {
    position: relative;
    height: 200px;
    margin: 20px 0;
}

/* Status indicators */
.status-good { color: #059669; }
.status-warning { color: #d97706; }
.status-urgent { color: #dc2626; }

/* Responsive design */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }
    .academic-card, .activities-card {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .academic-card, .activities-card {
        grid-column: 1;
    }
    .grade-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Student Overview - End */

/* For term tabs */
.term-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.term-tab {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.term-tab.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
/* Attendance Summary Cards */
.attendance-card {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.attendance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.card-present { background: linear-gradient(135deg, #27ae60, #229954); }
.card-leave { background: linear-gradient(135deg, #3498db, #2980b9); }
.card-absent { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.card-late { background: linear-gradient(135deg, #f39c12, #e67e22); }

.card-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-label {
  font-size: 14px;
  opacity: 0.9;
}

.card-percentage {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

#login_page_img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.small-student-photo{
  display:none;
  width: 80px;
  height: 80px;

}

.student-content img,.small-student-photo{
  border: 2px solid #2dc75c;
  border-radius: 10px;
}
#qawsedrf123454{
  display:flex;
  justify-content: space-between;
  align-items: center;
  /* margin-top: 10px; */
}
#qdjfjfjbody #student-content{
  display : flex;
}

#student-content {
  display : none;
}

#student-content.hide{
  display : none !important;
}

.student-photo-info.small{
  display: inline-flex;
  justify-content: center;
  width:60% !important;
  margin:0px;
  padding-right:120px;
}

#qewrtyuipdf8{
  margin:10px 0;
}

.smart-campus-logo{
  height : 40px;
  width : auto;
  border-left: 1px solid blue;
  padding-left: 10px;
}