:root {
  --primary-color: #179a3d;
  --secondary-color: #fff;
  --gray: #cccbcb;
  --text: #333;
  --bg-color: #f8f8f8;
  --red-color: #d9560c;
  --danger-color: #d9350c;
  --text-color: #777;
  --light-grey: #f1f1f1;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
}

.grey-text{
  color: var(--text-color);
}

.upper{
  text-transform: uppercase;
}

/* --- backgrounds ---- */
.bg-white{
  background-color: var(--secondary-color);
}

/* --- colors --- */
.green{
  color: var(--primary-color);
}

.red{
  color: var(--danger-color);
}

/*-------index--------*/

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.split-background {
  display: flex;
  height: 100vh;
}

.multi-line{
  white-space: pre-wrap;
}

.green-side {
  flex: 1;
  background-color: var( --primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.white-side {
  flex: 1;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-content {
  width: 80%;
  text-align: center;
  background-color: var( --primary-color);
  border-radius: 10px; /* Rounded corners */
  padding: 20px;
}

.login-content2 {
  text-align: center;
  background-color: var(--primary-color);
  border-radius: 60%;
  padding: 103px;
  padding-left: 139px;
}

.form-control {
  border-radius: none;
}

.form-control.bg::placeholder {
  color: var(--secondary-color);
}

a.forgot-password {
  color: var(--secondary-color);
  padding-left: 12px;
  padding-top: 23px;
  text-decoration: none;
}

a.forgot-password:hover{
  color: var(--text);
}

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

.form-control.bg{
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color) !important;
}


.forgot-password {
  color: lightgray;
}

/* Centering the form within its container */
.login-content form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*---------index end*/

 /* Custom CSS for the sidebar and transitions */
 .sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 1;
}



.sidebar a {
  padding: 20px 15px;
  text-decoration: none;
  font-size: 16px;
  color: var(--bg-color);
  display: block;
  transition: 0.3s;
}

.sidebar a span{
  margin-left: 15px
}

.sidebar a .bi-chevron-right{
  margin-left: auto;
}

.sidebar a:hover {
  color: var(--primary-color);
  background-color: var(--bg-color);
}

.list-unstyled#sidebar-ul {
  width: 250px;
  border-right: none;
  border-top: 1px solid var(--primary-color);
  border-left: 1px solid var(--primary-color);
}


.sidebar-item {
  border: none;
  outline: none;
  background-color: var(--primary-color);
  padding: 0;
  font-size: 18px;
  margin-left: 0px;
  margin-right: -10px;
}

.active-item {
  background-color: var(--secondary-color); 
  color: var(--primary-color);
}

.active-item a span {
    margin-left: 15px;
    color: var(--primary-color);
}

.active-item a i{
  color: var(--primary-color);
}

/* Style the active class, and buttons on mouse-over */
/* .sidebar-item.active a{
  background-color: var(--bg-color) !important;
  color: var(--primary-color);

} */

.bi.bi-list.fa-times{
  color: #000;
}

.burger-icon i {
  font-size: 30px;
  color: #000;
}
/*--------------side bar css end----------------*/

/*--------------content css start--------------------*/

.content {
  margin-left: 0;
  padding: 20px;
  background-color: var(--bg-color);
}

p.great{
  margin: 0;
}

.box{
  background-color: var(--secondary-color);
  border-radius: 8px;
}

.box-center{
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.box-left-content{
  text-align: left;
  padding: 20px;
}

.red{
  color: var(--red-color);
}

/*--------------barGrap css---------------*/


.bar-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0;
}

.attendance_bar{
  width: 10px; /* Adjust the width and spacing as needed */
  background-color: var(--gray); /* Change the color as needed */
  margin-bottom: 0;
  margin-right: 10px; /* Adjust the spacing between bars */
  align-self: flex-end; /* Align the bars to the bottom */
  transition: background-color 0.3s; /* Add a smooth transition effect */
}

.attendance_bar:hover{
  background-color: var(--primary-color);
}

.bar1, .bar2, .bar3, .bar4, .bar5, .bar6, .bar7, .bar8, .bar9, .bar10, .bar11, .bar12, .bar13, .bar14, .bar15, .bar16, .bar17, .bar18, .bar19, .bar20 {
  flex: 0 0 calc(20% - 10px); /* Adjust the width and spacing as needed */
  background-color: var(--gray); /* Change the color as needed */
  margin-bottom: 0;
  margin-right: 10px; /* Adjust the spacing between bars */
  align-self: flex-end; /* Align the bars to the bottom */
  transition: background-color 0.3s; /* Add a smooth transition effect */
}

/* Change the background color on hover */
.bar1:hover, .bar2:hover, .bar3:hover, .bar4:hover, .bar5:hover, .bar6:hover, .bar7:hover, .bar8:hover, .bar9:hover, .bar10:hover,
.bar11:hover, .bar12:hover, .bar13:hover, .bar14:hover, .bar15:hover, .bar16:hover, .bar17:hover, .bar18:hover, .bar19:hover, .bar20:hover {
  background-color: var(--primary-color);
}

/* Specify different heights for each bar */
.bar:nth-child(1) {
  height: 80px;
}

.bar:nth-child(2) {
  height: 120px;
}

.bar:nth-child(3) {
  height: 60px;
}

.bar:nth-child(4) {
  height: 140px;
}

.bar:nth-child(5) {
  height: 90px;
}


/*--------------barGrap css ends----------*/

/*--------------Teachers css-----------------*/

.list-group-item{
  background-color: var(--bg-color);
  border: none;
}

#number {
  font-size: 30px;
  background-color: var(--primary-color) !important;
  padding: 12px;
}

.btn.btn-primary {
  background-color: var(--primary-color);
  border: 1px solid #fff !important;
  color: var(--bg-color) !important;
}

a.btn.btn-primary:hover{
  background-color: var(--bg-color);
  border: 1px solid var(--primary-color);
  color: var(--primary-color) !important;
}

button#signin-btn {
  background-color: var(--bg-color) !important;
  border: 1px solid #fff !important;
  color: var(--primary-color) !important;
}

button#signin-btn:hover{
  background-color: var(--primary-color) !important;
  border: 1px solid var(--bg-color);
  color: var(--bg-color) !important;
}


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

.btn.btn-primary.right{
  background-color: var(--primary-color);
  border: none;
  color: var(--secondary-color);
  margin-right: 0;
}

.btn.btn-primary.right:hover{
  background-color: var(--bg-color) !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.col-4.text-end{
  padding: 0;
}

.header-col{
  padding: 0;
}

.addButton{
  color: var(--bg-color) !important;
}

.details{
  width: 50%;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
  z-index: 1040; /* Adjust the z-index to be above Bootstrap's default */
}


/*---------Pop UP Form--------*/

.modal-header{
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.form-control{
  border-color: var(--primary-color);
}
/*---------GRADE----------*/



.list-unstyled:hover{

    border: 1px solid var(--primary-color);
}

#popupFormLabel{
  font-size: 29px;
  padding-left: 15px;
}

#teacher-list-id a{
  text-decoration: none;
  color: var(--text);
  font-weight: bolder;
  background-color: transparent;
}

#teacher-list-id2 a{
  text-decoration: none;
  color: var(--text);
  font-weight: bolder;
  background-color: transparent;
}

.active-list-item {
  background-color: var(--primary-color); /* Change this to your desired active background color */
  color: #fff; /* Change text color for active item if needed */
}

ul {
    padding-left: 0rem;
}

.modal-content.grade{
  margin-top: 318px;
  width: 646px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 146%;
  color: var(--bs-modal-color);
  pointer-events: auto;
  background-color: var(--bs-modal-bg);
  background-clip: padding-box;
  border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
  border-radius: var(--bs-modal-border-radius);
  outline: 0;
}

#SearchByName {
  width: 280px;
  height: 46px;
  margin-top: 15px;
}

.modal-footer.grade{
  margin-left: 33px;
    border-top: none;
}

.no-list-style {
  list-style: none; /* Remove default list markers */
  padding: 0; /* Remove default padding */
}

.no-list-style li {
  margin-bottom: 10px; /* Add some spacing between list items */
}

.no-list-style li a {
  text-decoration: none; /* Remove underline from links */
  color: #000; /* Set the link color to your preference */
  display: block; /* Make the links block-level to fill the entire <li> */
}


td li a {
  text-decoration: none;
  color: var(--text);
}

/*--------tables----------*/

.grades-table {

  border-collapse: separate;

}

.grades-tr td a {
  color: var(--text);
  text-decoration: none;
}

.grades-tr td a:hover{
  color: var(--primary-color);
}

.grades-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px; /* 10px is the desired gap size */
  background-color: var(--bg-color);
}

.grades-tr {
  background-color: white;
}

.grades-tr:hover {
  background-color: var(--gray);
  cursor: pointer;
}

/* Style the table header */
.grades-tr th {
  background-color: var(--secondary-color);
  color: var(--text);
  padding: 21px;
  text-align: left;
}

/* Style the table data cells */
.grades-tr td {
  padding: 20px;
  text-align: left;
}

/* Add styling for the chevron icon */
.grades-tr i.bi-chevron-right {
  color: var(--primary-color);
}

/*--------tables----------*/

/*------------subjects----------*/

.btn.btn-secondary.w-30 {
  margin-left: 10px !important;
}


@media screen and (max-width: 768px) {
  .sidebar {
    width: 0px;
    transition: width 0.3s ease-in-out; /* Adjust the duration and easing as needed */
}

  .col-sm-12.col-md-4.text-center{
    margin-bottom: 30px;
  }

  a.Signin-a {
    display: flex;
    padding-bottom: 11px;
    width: 48%;
    text-decoration: none;
}


  .login-content {
    width: 80%;
    text-align: center;
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 0px;
    padding-top: 29px !important;
}

.content {
    margin-top: 40px;
    margin-left: 0;
    background-color: var(--bg-color);
}

.burger-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: white;
    color: #000 !important;
    border-radius: 50%;
    font-size: 24px;
}

.burger-icon {
  position: fixed;
  top: 13px;
  left: 10px;
  z-index: 2;
  cursor: pointer;
  color: #000 !important;
}


.burger-icon.active i::before {
    content: '\00d7'; /* Unicode for X symbol */
}

.classList .list-unstyled {
  width: 100% !important;
  border: 1px solid var(--bg-color);
}


.login-content {
  width: 80%;
  text-align: center;
  background-color: var(--primary-color);
  border-radius: 10px;
  padding: 0px;
}


.split-background {
  position: relative;
}

.white-side {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 38%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.green-side {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 82%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.details {
  width: 100%;
}

.mb-3.signin.details {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: start;
}

.Signin-a {
  margin-right: 10px; /* Add some spacing between the link and the button */
}

.btn.btn-primary {
  width: 140px;
  margin: 16px;
  margin-left: 0px;
  background-color: var(--primary-color);
  border: 1px solid #fff !important;
  color: var(--bg-color) !important;
}

div#popupForm.modal.fade.show{
  padding-right: 0px !important;
  display: block;
  padding-left: 0px;
}

}

@media screen and (min-width: 768px) {


  .sidebar {
      width: 260px !important;
  }
  .content {
      margin-left: 250px;
  }
  .burger-icon {
    display: none;
  }

  .classList .list-unstyled{
    width: 317px;
    border: 1px solid var(--bg-color);
  }

  .container-fluid.table{
    margin: 0;
    padding: 15px;
    padding-left: 37px;
  }

  #teacher-list-id a {
    text-decoration: none;
    color: var(--text);
    font-weight: bolder;
    background-color: transparent;
}
#teacher-list-id2 a {
  text-decoration: none;
  color: var(--text);
  font-weight: bolder;
  background-color: transparent;
}
}

a.no-style{
  text-decoration: none;
  color: var(--text);
  display: block;
}


/* Fees */

.fees_statement_header{
  background-color: var(--primary-color);
  padding-top: 20px;
}

.fees_statement_header h4{
  color: var(--secondary-color);
  margin-top: 10px;
}

.statement_list_item{
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray);
}

.marks-input{
  width: 50px;
  padding: 5px;
}


/*Messages*/
.message-bubble{
  padding: 10px;
  color: var(--text);
  background-color: var(--light-grey);
  border-radius: 10px;
  margin: 20px;
  white-space: pre-wrap;
}

.message-bubble p{
  margin-top: 20px;
  font-weight: 300;
  color: var(--red-color);
}

.message-bubble a.edit{
  color: var(--secondary-color);
  background-color: var(--primary-color);
  display: block;
  text-align: right;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 20px;
  padding: 10px;
}

.message-bubble a.delete{
  color: var(--secondary-color);
  background-color: var(--danger-color);
  display: block;
  text-align: right;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 20px;
  padding: 10px;
  margin-left: 10px;
}

.message-bubble:hover{
  border: 1px solid var(--primary-color);
}

.messagesblock{
  height: 80vh;
  width: 100%
}
.messagebottom{
  margin-top: auto;
  width: 100%
}

.my-message{
  background-color: #c8e59f;
  margin-right: 100px;
}

.from-message{
  background-color: #9fd5e5;
  margin-left: 100px;
}

.message-bubble .timestamp{
  display: block;
  color: var(--text-color);
  font-size: 10px;
}

.message-row {
  display: flex;
  align-items: start;
  gap: 10px;
}

/* Back Button */
.back-btn{
  border-color: var(--primary-color);
}

.back-btn:hover {
  background-color: var(--primary-color); 
  color: var(--bg-color); 
}


.fas.fa-arrow-left{
  color: var(--primary-color);
}

.back-btn:hover .fas.fa-arrow-left {
  color: var(--bg-color); 
}

/* View Event*/

.card.event{
  border-color: var(--primary-color);
}

h6.card-subtitle.date{
  color: var(--red-color);
}