/* Root Variables */
:root {
  --primary-color: #11115B; /* Primary Blue */
  --secondary-color: #0C3AC7; /* Light Blue (can be used as accent) */
  --white: #ffffff;
  --light-gray: #ecf0f1; /* Light background */
  --dark-gray: #7f8c8d; /* Text color */
  --notification-color: #f1c40f; /* Notification color */
  --hover-color: #d0eaff; /* Hover effect */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
}

/* Body & Global Styles */
body {
  font-family: var(--font-primary);
  margin: 0;
  padding: 0;
}


/* Header Styles */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  padding: 10px 10px 20px 10px;
  font-size: 36px;
  font-weight: 700;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  opacity: 0;
  transform: translateY(-50px);
  animation: headerslideInFromTop 1s forwards ease-out;
}

.app-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;  
}

.left-img,
.right-img {
  width: 50px; /* Adjust size as needed */
  height: 50px;
}

.right-img {
  border-radius: 50%;
}

.app-title {
  font-size: 27px;
  font-weight: 700;
  text-align: center;
  flex-grow: 1;
}

/* Student Info Styles */
.student-info {
  display: flex;
  align-items: center;
  justify-content: center;
  //margin-top: 30px;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s forwards ease-out;
}

.student-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 20px;
  border: 4px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.student-info .text {
  color: var(--white);
  text-align: left;
  font-family: var(--font-secondary);
}

.student-info .text .name {
  font-size: 18px;
  font-weight: 300;
  color: var(--white);
}

.student-info .text .description {
  font-size: 16px;
  color: var(--light-gray);
  font-weight: 100;
  //margin-top: 10px;
  line-height: 1.5;
}



/* Box Styles */
.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px; 
  padding: 20px;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px; 
  padding: 0px 5px 5px 5px;
}

.box {
  background-color: var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  opacity: 1;
  animation: slideIn 1s forwards ease-out;
}

.box .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
}

.box .label {
  font-size: 16px;
  color: var(--dark-gray);
  margin-top: 10px;
}

/* Notification Styles */
.notification-container {
  border-radius: 12px;
  //margin-top: 10px;
  padding: 15px;
  max-width: 100%;
  opacity: 0;
  animation: fadeInAfterDelay 2s forwards 1s;
}

.notification {
  background-color: var(--notification-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--white);
  font-size: 16px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  animation: vibrate 0.4s ease-out 6;
}

.notification:hover {
  background-color: var(--hover-color);
  text-decoration: none;
}
.nav-item:hover{
    text-decoration: none;
}
.notification i {
  margin-right: 10px;
  font-size: 20px;
}

/* Body Part Container */
.bodypart {
  flex-grow: 1; 
  margin: 10px 0 90px 0;
}

/* Table Container */
.chart-container {
  margin: 30px auto;
  width: 100%;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow-x: auto;
  text-align: center;
}

/* Chart Animations */
#chartContainer1 {
  animation: chartAnimationTop 1s ease-out;
}

#chartContainer2 {
  animation: chartAnimationBottom 1s ease-out;
}

/* View Toggle Link */
.view-toggle {
  margin-top: 20px;
  color: var(--primary-color);
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: color 0.3s ease;
}

.view-toggle:hover {
  color: #1f6d8c;
}

/* Heading Styles */
.chart-heading {
  text-align: center;
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Table Styling */
.table-container {
  margin: 30px auto;
  width: 90%;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  animation: tableAnimation 1s ease-out;
}

/* Table Layout */
.markstable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: var(--light-gray);
  table-layout: fixed;
}

.markstable th,
.markstable td {
  padding: 12px 20px;
  text-align: center;
  word-wrap: break-word;
}

.markstable th { 
  color: var(--white);
  text-transform: uppercase;
  background-color: var(--primary-color);
}

.markstable td {
  background-color: var(--white);
}

.markstable tr:hover td {
  background-color: var(--hover-color);
}

/* Responsive Table */
@media (max-width: 768px) {
  .markstable {
    font-size: 10px;
  }
}

/* Profile Container */
.profile-container {
  margin: 20px auto;
  width: 80%;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

/* Profile Picture Style */
/* Background image behind the profile picture */
.profile-header {
    position: relative;
    width: 100%;
    height: 180px;
    background-image: url('../../images/profile.jpg'); /* <-- Replace with your image path */
    background-size: cover;
    background-position: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
profile-info{
    margin-top: 20px;
}
.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 5px solid var(--primary-color);
  margin-bottom: 20px;
}
/* Profile Table */
.profile-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s forwards;
}

.profile-table th,
.profile-table td {
  padding: 10px;
  text-align: left;
  font-size: 16px;
  color: #333;
}

.profile-table th {
  font-weight: bold;
  color: var(--primary-color);
}

/* General Button Class */
.btn {
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Danger Class (Red color) */
.danger {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.5s forwards;
  background-color: #e74c3c; /* Red color */
  color: var(--white);
}

.danger:hover {
  background-color: #c0392b; /* Darker red for hover effect */
  color: var(--white);
  text-decoration: none;
}

/* Primary Class (Blue color) */
.primary {
    margin-top: 20px;
  width: 80%;
  background-color: var(--primary-color); /* Blue color */
  color: var(--white);
}

.primary:hover {
  background-color: var(--secondary-color); /* Darker blue for hover effect */
  color: var(--white);
  text-decoration: none;
}
    /* Basic styles for links */
 .menu-link {
  display: flex;
  font-size: 12px;
  align-items: center;
  background-color: var(--secondary-color); /* Green background */
  color: var(--white); /* White text */
  padding: 12px 12px; /* Padding */
  margin: 6px 0; /* Vertical spacing */
  text-decoration: none; /* Remove underline */
  border-radius: 8px; /* Rounded corners */
  text-align: center;
  cursor: pointer; /* Change cursor on hover */
  font-size: 16px; /* Text size */
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s forwards ease-out;
}

.menu-link i {
  margin-right: 12px; /* Space between icon and text */
}

.menu-link:hover {
  background-color: var(--primary-color); /* Darker green on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
  color: var(--white);
  text-decoration: none;
}


/* Additional styling for better hover effects */
.menu-link:active {
  transform: scale(0.98); /* Slight shrink on click */
}


    .form-control {
        border: none;
        border-bottom: 2px solid #ddd;
        border-radius: 0;
        margin-bottom: 20px;
        padding: 10px 0;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .form-control:focus {
        outline: none;
        border-bottom: 2px solid #007bff;
        box-shadow: 0 1px 5px white;
    }

    .form-group label {
        font-weight: 600;
    }

    .custom-control-label {
        font-size: 14px;
    }
    
    
    .attendance-card-header{
        text-align: center;
        font-size: 1rem;
        font-weight: 400;
        color: var(--primary-color);
    }

  .tabs {
    display: flex;
    justify-content: center;
    border-radius: 8px;
  }
  .tab {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    background-color: transparent;
    transition: background-color 0.3s;
  }
  .tab:hover, .active-tab {
    background-color: var(--light-gray);
    border-radius: 5px;
  }
  .tab-content {
    display: none;
  }
  .tab-content.active {
    display: block;
  }
  
  
  .calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Table Header Styling */
.calendar th {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 12px;
}

/* Table Cell Styling */
.calendar td {
    height: 80px; /* Ensures consistent height */
    position: relative;
    font-size: 10px;
    padding: 8px;
}

.calendar td div {
    position: absolute;
    top: 5px;
    left: 5px;
}

/* Status Colors - Red, Green, Blue, Black */
.calendar td .status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.calendar td .status[data-status="A"] {
    color: red;
}

.calendar td .status[data-status="P"] {
    color: green;
}

.calendar td .status[data-status="L"] {
    color: blue;
}

.calendar td .status[data-status="-"] {
    color: black;
}

/* Adjustments for Spacing Between Rows and Columns */
.calendar tbody tr {
    height: 80px;
}

.calendar tbody tr td {
    width: 14.28%; /* Ensures 7 equal columns */
}

/* Form Styling */
.at-form-group {
    margin-bottom: 20px;
    display: flex; /* Flexbox for better alignment */
    justify-content: center; /* Center the form input horizontally */
}

.at-form-control {
    width: 60%; /* Adjust to a reasonable width for the input */
    max-width: 350px; /* Make sure it doesn't stretch too much */
    padding: 12px 15px; /* Add padding for comfort */
    font-size: 18px; /* Larger font size for readability */
    border: none; /* Remove the default border */
    border-bottom: 2px solid var(--primary-color); /* Underlined border */
}

/* Responsive Design: Adjust form size on small screens */
@media (max-width: 768px) {
    .at-form-control {
        width: 90%; /* Full width for smaller screens */
        font-size: 16px; /* Adjust font size */
    }
}

.logout-btn {
  padding: 10px 20px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.logout-btn:hover {
  background-color: #cc0000;
  color: var(--white);
  text-decoration: none;
}

    /* Profile Container */
    .notification-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      opacity: 0; /* Initially hidden */
      transform: translateY(20px); /* Initially moved down */
      animation: fadeInUpContainer 1s forwards; /* Container fade-in */
      padding: 0px 30px;
    }

    /* Notification Section */
    .notification {
      display: flex;
      align-items: center; /* Align items horizontally */
      padding: 15px;
      margin-bottom: 15px;
      border-radius: 12px; /* Rounded corners */
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for floating effect */
      opacity: 0; /* Initially hidden */
      transform: translateY(20px); /* Initially moved down */
      animation: fadeInUp 0.8s ease-in-out forwards; /* Animation for fade-in and move-up */
      transition: transform 0.3s ease-in-out, box-shadow 0.3s ease; /* Hover transition */
      width: 100%;
      max-width: 500px; /* Limit max width for large screens */
    }

    /* Hover effect */
    .notification:hover {
      transform: translateY(-5px); /* Lift effect on hover */
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
    }

    /* Animation for fading in and moving up */
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Animation for the container */
    @keyframes fadeInUpContainer {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Adding different animation delays for each notification */
    .notification:nth-child(1) {
      animation-delay: 0.2s;
    }
    .notification:nth-child(2) {
      animation-delay: 0.4s;
    }
    .notification:nth-child(3) {
      animation-delay: 0.6s;
    }
    .notification:nth-child(4) {
      animation-delay: 0.8s;
    }
    .notification:nth-child(5) {
      animation-delay: 1.0s;
    }
    .notification:nth-child(6) {
      animation-delay: 1.2s;
    }    .notification:nth-child(7) {
      animation-delay: 1.4s;
    }
    .notification:nth-child(8) {
      animation-delay: 1.6s;
    }
    .notification:nth-child(9) {
      animation-delay: 1.8s;
    }
    .notification:nth-child(10) {
      animation-delay: 2.0s;
    }
    
    /* Icon Style */
    .notification-icon {
      font-size: 28px;
      margin-right: 20px;
      color: #2980b9;
      transition: color 0.3s ease; /* Icon color transition */
    }

    /* Hover effect for icon */
    .notification:hover .notification-icon {
      color: #e74c3c; /* Change icon color on hover */
    }

    .notification-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .notification-message {
      font-size: 18px;
      font-weight: 500;
      color: #333;
    }

    .notification-time {
      font-size: 14px;
      color: #7f8c8d;
      margin-top: 5px;
      text-align: right; /* Align time to the right */
      width: 100%;
      position: relative;
      left: 0;
    }
    
    .new-badge {
    background-color: var(--notification-color);
    color: white;
    font-size: 7px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
    }
    @keyframes pulse {
        0% { opacity: 1; }
        50% { opacity: 0.4; }
        100% { opacity: 1; }
    }