#mainContainer p {
  padding-top: 10px;
  text-align: center;
  color: black;
}

.text-month {
  min-width: 200px;
}

#mainContainer h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
}

.day-container.today-highlight {
  box-shadow: 0 0 6px 2px rgba(76, 175, 80, 0.8) !important;
}

.day-container.current-week {
  box-shadow: 0 0 1.5px 1px rgba(100, 100, 100, 0.8)
}

#mainContainer {
  filter: drop-shadow(0 0 0.4rem black);
}

body {
  background-image: url("../images/background.png") !important;
  margin: 10 !important;
  background-size: cover !important;
}


a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: #1AD2B0;
}

h1,
h4 {
  color: black;
}

#home-particle {
  position: fixed;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.disabled-tab {
  cursor: default;
  pointer-events: none;
  color: grey !important;
}

.form {
  top: 80%;
  height: 100%;
  width: 40%;
  left: 30%;
  position: relative;
}

.dx-tabs {
  border: none !important;
  border-top: 1px solid #4d4d4d !important;
  border-radius: 35px;
}

.header {
  background: #323232;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  text-align: center;
  align-content: center;
  font-size: 32;
}

#title {
  text-align: center;
  color: #F6A611;
  font-weight: bolder;
  font-size: x-large;
  padding: 5px;
}

.content {
  background: #e4e4e4;
}

#btnSendMark {
  width: 100%;
}

.footer {
  background: #323232;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
}

.footer p {
  font-size: small;
}

.tab-switch {
  transition: ease-in-out 200ms;
  display: none;
}

#data-grid-users {
  min-height: 15rem;
}

#data-grid-roles {
  min-height: 15rem;
}

#data-grid-password {
  min-height: 15rem;
}

#data-grid-own-lessons {
  min-height: 20rem;
}

#data-grid-own-marks {
  min-height: 20rem;
}

.gridTitle {
  filter: drop-shadow(0 0 0.4rem black);
  color: black;
  font-weight: bold;
}

.adminContainer {
  margin: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0.1px 5px 12px black);
  flex-wrap: wrap;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px darkgray;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: gray;
  border-radius: 10px;
}

#statschart {
  height: 440px;
  width: 100%;
}

#statschart.pointer-on-bars .dxc-series rect {
  cursor: pointer;
}

.stats-button-container {
  text-align: center;
  height: 40px;
  position: absolute;
  top: 7px;
  left: 0;
}

.statsContainer {
  margin: 80px;  
  margin-top: 40px !important;
  filter: drop-shadow(0.1px 5px 12px black);
  background-color: #2a2a2a;
  margin-bottom: 0px;
}

.marksContainer {
  margin: 80px;
  margin-top: 40px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0.1px 5px 12px black);
  flex-wrap: wrap;
  background-color: #2a2a2a;
}

.toolbarContainer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0.1px 5px 12px black);
  flex-wrap: wrap;
  background-color: #2a2a2a;
  margin-left: 80px;
  margin-right: 80px;
}

#yearDropDownStats {
  filter: drop-shadow(0.1px 5px 12px black);
  width: 50%;
}

#userSelectFieldStats {  
  filter: drop-shadow(0.1px 5px 12px black);
  width: 50%;
}

#calendar {
  width: 100%;
  height: 85vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: auto;
  flex-direction: column;
}

.grid {
  display: grid;
  width: 90%;
  height: 90%;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(auto-fill, 1fr);
  gap: 8px;
}

.grid-cols-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gap-4 {
  gap: 16px;
}

.border {
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
  color: black;
  overflow: hidden; 
  position: relative;
}

.border:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.border .day-number {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.grid > .header {
  margin-bottom: 2px;
}

.events-container {
  position: relative;
  flex-grow: 1;
  overflow-y: auto;
  max-height: calc(100% - 40px);
  padding-top: 10px;
}

.event-item {
  background-color: #007bff;
  color: white;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  width: 100%;
}

.event-item:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.event-item:active {
  transform: scale(0.98); 
}

.event-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 120px;
  padding: 10px;
  display: none;
}

.event-menu.visible {
  display: block; 
}

.event-menu .menu-item {
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.event-menu .menu-item:hover {
  background-color: #f0f0f0;
}

.event-menu .menu-item:active {
  background-color: #e0e0e0;
}

.input,
.textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus,
.textarea:focus {
  border-color: #007bff;
}

.button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #007bff;
  color: black;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

#color-picker {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 1rem;
}

#buttons-end {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.outline-red-500 {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.grid > .border .flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px;
}

.day-container {
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.event-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 3px; 
}

.event-item {
  background-color: #007bff;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item:hover {
  opacity: 0.8;
}

.dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog > div {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dialog h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.input, .textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: #5d9fcf;
}

.textarea {
  height: 100px;
}

.button {
  padding: 10px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #45a049;
}

.button:active {
  background-color: #3e8e41;
}

#color-picker button {
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

#color-picker button:hover {
  transform: scale(1.1);
}

#buttons-end {
  display: flex;
  justify-content: space-between;
}

.text-xl {
  font-size: x-large !important;
  color: black;
}

.font-bold {
  font-weight: bold !important;
}

#saveLogin {
  height: fit-content;
  padding: 5px;
}