@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300&family=Tinos&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tinos', serif;
  letter-spacing: 0.6px;
}

body{
  overflow: scroll;
  background-color: var(--secondarydarkbg);
}

:root {
  --blue: #6695ed;
  --ligthred: #ee7036;
  --red: #a71666;
  --yellow: #F7B204;
  --lightyellow: #f7cb9a;
  --darkpurple: #2E2A3D;
  --lightGreen: #b6c796;
  --purple: #6b5b85;
  --brown: #835F56;
  --darkbrown: #4d1b1c;
  --gray: #BBBED5;
  --lightpurple: #969DDC;
  --littledarkpurple: #7877A1;
  --white: #E8EBF6;
  --darkwhite: #E6EAF5;
  --green: #45958e;
  --darkgreen: #507150;
  --lightbrown: #C7B2A3;
  --primarydarkbg: #141736; 
  --secondarydarkbg: #24263A;
  --primaryhover: #3B394E;
  --modal-bg-color: rgba(0, 0, 0, 0.8);
  --modal-content-bg: #fff;
  --modal-width: 900px;
  --modal-padding: 20px;
  --modal-border-radius: 8px;
  --close-button-color: #333;
  --lavender: #483d8a;
  --pink: #ff349a;
}

/* Scroll barın genel genişliği */
::-webkit-scrollbar {
  width: 8px; /* Dikey scroll bar için genişlik */
  height: 8px; /* Yatay scroll bar için yükseklik */
}

/* Scroll bar arka planı */
::-webkit-scrollbar-track {
  background: var(--primaryhover);
  border-radius: 10px;
}

/* Scroll barın hareketli kısmı */
::-webkit-scrollbar-thumb {
  background: var(--lightGreen);
  border-radius: 10px;
}

.sticky-column {
  position: sticky;
  left: 0; /* Sticks the element to the left edge */
  background-color: #00000034; /* Optional: to avoid overlap issues */
  z-index: 1; /* Ensures it stays on top of other elements when sticky */
}

.definput{
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: none;
  border: none;
  border-bottom: 1px solid var(--darkbrown);
  color: var(--primarydarkbg);
  background: none;
  outline: none;
}

.defwhite{
  color:var(--white);
  border-bottom: 1px solid var(--white);
}

.definput::placeholder{
  color: var(--brown);
}

.defwhite::placeholder{
  color: var(--darkwhite);
}

hr{
  border-bottom: 1px solid var(--primarydarkbg);
  margin: 5px;
}

.autoPaymentPin {
  width: 100%;
  display: block;
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid var(--ligthred);
  border-radius: 5px;
  outline: none;
  color: var(--white);
  background-color: var(--close-button-color);
  white-space: wrap !important;
}

.autoPaymentPin textarea{
  width: 100%;
  height: 120px;
  font-size: 12px;
  background-color: none;
  background: none;
  outline: none;
  border: none;
  color: var(--white);
}

.telafiCounterPin{
  width: 100%;
  background-color: var(--darkbrown);
  color: var(--white);
  border: none;
  border-radius: 5px;
  padding: 5px;
  white-space: wrap;
  margin-bottom: 5px;
}

.telafiCounterPin .btn-diver{
  width: 100%;
  display: flex;
  padding: 3px;
  justify-content: center;
}

.telafiCounterPin textarea{
  width: 100%;
  height: 120px;
  font-size: 12px;
  background-color: none;
  background: none;
  outline: none;
  border: none;
  color: var(--white);
}

.calculateQuoteP{
  width: 100%;
  padding: 5px;
  font-size: 10px;
  color: white;
  bottom: 0;
  align-self: baseline;
}

.denemeButton{
  background-color: var(--pink) !important; 
  color: white !important;
  padding: 5px 10px !important;
  font-size: 14px !important;
}

.btn{
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: var(--primarydarkbg);
  color: var(--white);
  cursor: pointer;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 10px;
}

.bg-green{
  background-color: var(--green) !important;
  color: var(--white) !important;
}

.bg-darkgreen{
  background-color: var(--darkgreen) !important;
  color: var(--white) !important;
}

.bg-pink{
  background-color: var(--pink) !important;
  color: var(--white) !important;
}

.bg-purple{
  background-color: var(--purple) !important;
  color: var(--white) !important;
}

.bg-blue{
  background-color: var(--blue) !important;
  color: var(--white) !important;
}

.bg-red{
  background-color: var(--red) !important;
  color: var(--white) !important;
}

.bg-lightred{
  background-color: var(--ligthred) !important;
  color: var(--white) !important;
}

.btn:hover {
  background-color: var(--primaryhover) !important;
}


.pinDiv{
  width: 100%;
  display: flex;
  justify-content: start;
  background-color: var(--brown);
  color: white;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-expander{
  font-size: 30px;
  padding: 0;
  width: fit-content;
  background: none;
  background-color: none;
  outline: none;
  border: none;
}

.btn-envelope{
  font-size: 20px;
  padding: 0;
  width: 60px;
  margin-right: 5px;
  background-color: var(--ligthred);
}

.btn-trash{
  font-size: 20px;
  padding: 0;
  width: 60px;
  background-color: var(--red);
}


.user-avatar {
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 50%;
  margin: 5px;
  transition: 0.5s ease;

}

.user-avatar:hover {
  transform: scale(4);
}

.pupilButton{
  width: 100% !important;
  display: flex;
  white-space: wrap;
  justify-content: center;
  align-items: center;
  place-items: center;
  font-size: 16px;
  background-color: var(--green);
}

.pupilButton:hover{
  background-color: var(--ligthred) !important;
}

.pupilFirstLaterButton{
  background-color: var(--ligthred) !important;
  color: var(--white);
}

.pupilLaterButton{
  background-color: var(--darkgreen) !important;
  color: var(--white);
  padding: 10px;
  cursor: pointer;
}

.laterErtelemePupil{
  background-color: var(--ligthred) !important;
  color: var(--white);
}



.modal-overlay {
  z-index: 99999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  width: var(--modal-width);
  background-color: var(--modal-content-bg);
  padding: var(--modal-padding);
  border-radius: var(--modal-border-radius);
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-height: 70vh;
  overflow: auto;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 40px;
  color: var(--close-button-color);
  cursor: pointer;
}

#modalContent{
  margin-top: 20px;
}

.randMessager{
  font-size: 30px;
  cursor: pointer;
  color: var(--ligthred);
}

.randDeleter{
  font-size: 30px;
  cursor: pointer;
  color: var(--red);
}

.smallMenuButton{
  position: relative;
  margin:0;
  padding: 0;
  border-radius:50%;
  width:30px;
  height: 30px ;
  font-size: 16px;
  background-color: var(--ligthred);
  color:var(--white);
  top:0;
  right:0;
  transition: ease 0.5s;
  cursor: pointer;
}

.smallMenuButton:hover{
 background-color: var(--white); 
 color:var(--ligthred);
}

.closeMenuButton {
 position: relative;
 margin: 0;
 padding: 0;
 border-radius: 50%;
 width:2vw !important;
 height: 2vw !important;
 font-size: 0.8vw !important;
 background-color: rgb(255, 0, 51);
 color: white;
 top: 0;
 right: 0;
 transition: ease 0.5s;
}

.closeMenuButton:hover {
 background-color: seashell;
 color: rgb(255, 0, 51);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 260px;
  background: var(--primarydarkbg);
  z-index: 100;
  transition: all 0.5s ease;
}

.sidebar.close {
  width: 78px;
}

.sidebar .logo-details {
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
}

.sidebar .logo-details i {
  font-size: 30px;
  color: var(--white);
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 50px;
}

.sidebar .logo-details .logo_name {
  font-size: 22px;
  color: var(--white);
  font-weight: 600;
  transition: 0.3s ease;
  transition-delay: 0.1s;
}

.sidebar.close .logo-details .logo_name {
  transition-delay: 0s;
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links {
  height: 100%;
  padding: 0 0 150px 0;
  overflow: auto;
}

.sidebar.close .nav-links {
  overflow: visible;
}

.sidebar .nav-links::-webkit-scrollbar {
  display: none;
}

.sidebar .nav-links li {
  position: relative;
  list-style: none;
  transition: all 0.4s ease;
}

.sidebar .nav-links li:hover {
  background: var(--primaryhover);
}

.sidebar .nav-links li .icon-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar.close .nav-links li .icon-link {
  display: block;
}

.sidebar .nav-links li i {
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 50px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar .nav-links li.showMenu i.arrow {
  transform: rotate(-180deg);
}

.sidebar.close .nav-links i.arrow {
  display: none;
}

.sidebar .nav-links li a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar .nav-links li a .link_name {
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  transition: all 0.4s ease;
}

.sidebar.close .nav-links li a .link_name {
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links li .sub-menu {
  padding: 6px 6px 14px 80px;
  margin-top: -10px;
  background: var(--primarydarkbg);
  display: none;
}

.sidebar .nav-links li.showMenu .sub-menu {
  display: block;
}

.sidebar .nav-links li .sub-menu a {
  color: var(--white);
  font-size: 15px;
  padding: 5px 0;
  white-space: nowrap;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.sidebar .nav-links li .sub-menu a:hover {
  opacity: 1;
}

.sidebar.close .nav-links li .sub-menu {
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
}

.sidebar.close .nav-links li:hover .sub-menu {
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}

.sidebar .nav-links li .sub-menu .link_name {
  display: none;
}

.sidebar.close .nav-links li .sub-menu .link_name {
  font-size: 18px;
  opacity: 1;
  display: block;
}

.sidebar .nav-links li .sub-menu.blank {
  opacity: 1;
  pointer-events: auto;
  padding: 3px 20px 6px 16px;
  opacity: 0;
  pointer-events: none;
}

.sidebar .nav-links li:hover .sub-menu.blank {
  top: 50%;
  transform: translateY(-50%);
}

.sidebar .profile-details {
  position: fixed;
  bottom: 0;
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--darkpurple);
  padding: 12px 0;
  transition: all 0.5s ease;
}

.sidebar.close .profile-details {
  background: none;
}

.sidebar.close .profile-details {
  width: 78px;
}

.sidebar .profile-details .profile-content {
  display: flex;
  align-items: center;
}

.sidebar .profile-details img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 14px 0 12px;
  background: var(--darkpurple);
  transition: all 0.5s ease;
}

.sidebar.close .profile-details img {
  padding: 10px;
}

.sidebar .profile-details .profile_name,
.sidebar .profile-details .job {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job {
  display: none;
}

.sidebar .profile-details .job {
  font-size: 12px;
}

.home-section {
  position: relative;
  background: var(--secondarydarkbg);
  height: 100%;
  left: 260px;
  width: calc(100% - 260px);
  transition: all 0.5s ease;
}

.sidebar.close~.home-section {
  left: 78px;
  width: calc(100% - 78px);
}

.home-section .home-content {
  width: 100%;
  z-index: 999;
  height: 60px;
  display: flex;
  align-items: center;
  overflow-x: auto; /* Yatay kaydırma için */
  white-space: nowrap; /* Elemanların tek satırda kalmasını sağlar */
}

.home-section .home-content .bx-menu,
.home-section .home-content .text {
  color: var(--white);
  font-size: 35px;
}

.home-section .home-content .bx-menu {
  margin: 0 15px;
  cursor: pointer;
}

.home-section .home-content .text {
  font-size: 26px;
  font-weight: 600;
}

.pupilCounter {
  background: var(--green);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 10px;
  width: fit-content;
  margin-left: 16px;
  cursor: pointer;
}

.notificationCounter {
  background: var(--red);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 10px;
  width: fit-content;
  margin-left: 16px;
  cursor: pointer;
}


.hideText {
  display: inline;
}

.chevronsTableDiv {
  margin-left: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  place-items: center;
}

.chevronButton {
  background-color: none;
  background: none;
  outline: none;
  border: none;
  border-radius: 50%;
  font-size: 40px;
  color: var(--white);
  margin-top: 10px;
  cursor: pointer;
}

.chevronTableWhich {
  margin-left: 4px;
  margin-right: 4px;
  font-size: 20px;
  justify-items: center;
  color: white;
}

.searchPupilDiv {
  background: var(--purple);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 10px;
  width: fit-content;
  margin-left: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  place-items: center;
}

.searchPupilDiv input[type="search"] {
  border: none;
  background-color: none;
  background: none;
  font-size: 16px;
  color: var(--white);
  outline: none;
  padding-left: 4px;
}

.searchPupilDiv input[type="search"]::placeholder {
  color: var(--darkwhite);
}

.menuSelectors{
  background: var(--primarydarkbg);
  color: var(--white);
  padding: 8px 10px;
  border-radius: 10px;
  width: fit-content;
  margin-left: 16px;
  border: none;
  outline: none;
  cursor: pointer;
}

.menuSelectors:hover{
  background-color: var(--primaryhover);
}

#programTable {
  display: block; /* Flex değil, block olmalı ki sticky çalışsın */
  overflow-x: auto; /* Yatay kaydırma için */
  max-height: 100vh; /* Yükseklik ayarlayın; gerekirse değiştirin */
}

.programTable {
  width: 97%;
  border-collapse: collapse;
  margin: auto;
  z-index: 99;
}

.programTable thead {
  background: var(--primarydarkbg);
  position: sticky;
  white-space: nowrap;
  top: 0;
  z-index: 10; /* Başlıkların her zaman üstte görünmesi için */
}

.programTable th {
  color: var(--white);
  padding: 12px;
  text-align: left;
  border: 1px solid var(--secondarydarkbg);
  cursor: pointer;
}

.programTable td {
  vertical-align: top;
  padding: 10px;
  text-align: left;
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  color: var(--darkwhite);
}

/* Satırların üzerine gelince arka plan rengi değişsin */
.programTable tr:hover {
  background-color: var(--primaryhover);
}

.programTable tr:nth-child(even) {
  background-color: var(--primarydarkbg);
}

.programTable tr:nth-child(even):hover {
  background-color: var(--primaryhover);
}

.pupilUpdaterDiv h6{
  margin: 5px;
}

.whiteTable {
  width: 97%;
  border-collapse: collapse;
  margin: auto;
  z-index: 99;
}

.whiteTable thead {
  background: var(--primarydarkbg);
  position: sticky;
  white-space: nowrap;
  top: 0;
  z-index: 10; /* Başlıkların her zaman üstte görünmesi için */
}

.whiteTable th {
  color: var(--white);
  padding: 12px;
  text-align: left;
  border: 1px solid var(--secondarydarkbg);
  cursor: pointer;
}

.whiteTable td {
  vertical-align: top;
  padding: 10px;
  text-align: left;
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  color: var(--darkwhite);
}



/* Alternatif satır renkleri */


/* Popup stili */
.popup {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 999999;
}

/* Gösterildiğinde görünür ve animasyonlu olacak */
.popup.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  position: absolute;
  top: 4px;
  right: 4px;
}

/* Varsayılan olarak gizli olacak */
.hidden {
  display: none;
}

.notification {
  border-radius: 10px;
  padding: 5px;
  margin: 5px;
  display: flex;
  justify-content: start;
  font-size: 20px;
}

.pupilSearch {
  border-width: 3px; 
  border-style: dotted !important;
  animation: pulseBorder 1s ease-in-out infinite;
}

.documentCard{
  border: none;
  border-radius: 8px;
  background: var(--darkpurple);
  padding: 20px;
  color: white;
  width: 200px;
  min-width: 200px;
  margin: 5px;
}

@keyframes pulseBorder {
  0% {
    border-color: red;
  }
  50% {
    border-color: green;
  }
  100% {
    border-color: blue;
  }
}

@media (max-width: 820px) {
  .hideText {
    display: none;
  }
}

@media (max-width: 420px) {
  .sidebar.close .nav-links li .sub-menu {
    display: none;
  }
}

