@import url('https://fonts.googleapis.com/css2?family=Gulzar&display=swap');

/* Mobile-first responsive design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: serif;

}

.urdu {
  font-family: "Gulzar", serif;
  font-weight: 400;
  font-style: normal;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

:root {
  font-size: 16px;
  --blur--bg--opacity: 70%;
  --blur-bg-color: 255 255 255;
  --blur-effect: blur(3px);
  --primary-color: 0 0 0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

.searching-context {
  width: 100px;
  height: 100px;
  position: relative;
  text-align: center;

}

.headings-loader {
  text-align: center;
  display: grid;
  place-items: center;
  margin-top: 70px;
}

.headings-loader svg {
  width: 160px;
  height: 160px;
  display: block;
}

.headings-loader svg path {
  fill: #777;
  animation: fillPulse 1.4s ease-in-out infinite alternate;
}

/* smooth fade between gray tones */
@keyframes fillPulse {
  0% {
    fill: #aaa;
  }

  /* 50%  { fill: #666; } */
  100% {
    fill: #333;
  }
}

.searching-context span,
.searching-context span svg {
  width: 100%;
  height: 100%;
}

.searching-context span.search {
  position: absolute;
  top: 0;
  left: 0;
  animation: hoverSearch 3s ease-in-out infinite;
}

.searching-context span.book svg path {

  fill: rgb(var(--primary-color) / 50%)
}

.searching-context span.search svg path {
  fill: rgb(var(--primary-color) / 70%);
}


@keyframes hoverSearch {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(20px, -10px) rotate(5deg);
  }

  50% {
    transform: translate(40px, 5px) rotate(-5deg);
  }

  75% {
    transform: translate(20px, 10px) rotate(3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.light-beam {
  position: relative;
}

.light-beam::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -5px;
  transform: rotate(7deg);
  width: 100%;
  height: 100%;
  clip-path: polygon(40% 0%, 60% 0%, 89% 91%, 0% 100%);
  background: radial-gradient(circle at 50% 0, rgb(255 255 0) 0%,

      rgb(255 255 0) 30%,

      rgba(255, 255, 0, 0) 100%);
  filter: blur(10px);

  pointer-events: none;
  animation: light-pulse 5s forwards alternate;
}

/* Optional animation keyframes */

@keyframes multi-pulse {

  0%,
  20%,
  100% {
    opacity: 0.2;
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    opacity: 1;
  }
}

:root.yellow-light-active {
  --blur-bg-color: 250 218 94;
}

/* Yellow reading mode active */
:root.yellow-active {
  --blur-bg-color: 250 218 94;
}

/* Dark mode active */
:root.dark-active {
  --blur-bg-color: 0 0 0;
  --primary-color: 255 255 255;
}


::selection {
  background-color: rgb(0 0 0 / 70%);
  color: rgb(255 255 255 / 70%);
}

/* Full scrollbar width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Thumb */
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

/* Settings container */
.settings-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header */
.settings-header {
  background: rgba(var(--primary-color) / 0.1);
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(var(--primary-color) / 0.1);
}

.settings-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.settings-header p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Settings sections */
.settings-section {
  padding: 25px;
  border-bottom: 1px solid rgba(var(--primary-color) / 0.1);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-section h2 .material-symbols-outlined {
  font-size: 1.8rem;
}

/* Setting items */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(var(--primary-color) / 0.05);
}

.setting-item:last-child {
  border-bottom: none;
}

/* Profile Picture Upload */
.profile-picture-upload {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-picture-upload button {
  padding: 8px 16px;
  background: rgb(var(--primary-color) / 0.8);
  color: rgb(var(--blur-bg-color));
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.profile-picture-upload button:hover {
  background: rgb(var(--primary-color));
}

.profile-picture-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(var(--primary-color) / 0.3);
}

.profile-picture-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Settings Input */
.settings-input {
  padding: 10px 12px;
  border: 1px solid rgba(var(--primary-color) / 0.3);
  border-radius: 6px;
  background: rgba(var(--blur-bg-color) / 0.8);
  color: rgb(var(--primary-color));
  font-size: 0.9rem;
  width: 250px;
  outline: none;
  transition: border-color 0.3s ease;
}

.settings-input:focus {
  border-color: rgb(var(--primary-color));
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.setting-label .material-symbols-outlined {
  font-size: 1.5rem;
  opacity: 0.7;
}

.setting-text {
  flex: 1;
}

.setting-text h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.setting-text p {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Controls */
.setting-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Toggle switches */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: rgba(var(--primary-color) / 0.2);
  border-radius: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.active {
  background: rgb(var(--primary-color) / 0.7);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: rgb(var(--blur-bg-color));
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
  left: 26px;
}

.toggle-switch-sammary {
  position: relative;
  width: 50px;
  height: 26px;
  background: rgba(var(--primary-color) / 0.2);
  border-radius: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch-sammary.active {
  background: rgb(var(--primary-color) / 0.7);
}

.toggle-switch-sammary::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: rgb(var(--blur-bg-color));
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch-sammary.active::after {
  left: 26px;
}


/* Sliders */
.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 200px;
}

.slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(var(--primary-color) / 0.2);
  border-radius: 3px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: rgb(var(--primary-color));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}

.slider-value {
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

/* Select dropdown */
.select-container select {
  padding: 8px 12px;
  border: 1px solid rgba(var(--primary-color) / 0.3);
  border-radius: 8px;
  background: rgba(var(--blur-bg-color) / 0.8);
  color: rgb(var(--primary-color));
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 150px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: rgb(var(--primary-color) / 0.8);
  color: rgb(var(--blur-bg-color));
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: rgb(var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn.danger {
  background: #dc3545;
}

.btn.danger:hover {
  background: #c82333;
}

.btn.success {
  background: #28a745;
}

.btn.success:hover {
  background: #218838;
}

/* Theme preview */
.theme-preview {
  width: 100px;
  height: 60px;
  border-radius: 8px;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  border: 1px solid rgba(var(--primary-color) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  transition: var(--transition);
}

/* Font size buttons */
.font-size-buttons {
  display: flex;
  gap: 10px;
}

.font-size-btn {
  padding: 8px 12px;
  border: 1px solid rgba(var(--primary-color) / 0.3);
  border-radius: 6px;
  background: rgba(var(--blur-bg-color) / 0.8);
  color: rgb(var(--primary-color));
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.font-size-btn.active {
  background: rgb(var(--primary-color) / 0.8);
  color: rgb(var(--blur-bg-color));
  border-color: rgb(var(--primary-color));
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

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

.modal {
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  border-radius: 15px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.modal p {
  margin-bottom: 25px;
  opacity: 0.8;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.settings-confirm-modal {
  display: none;
}

.settings-confirm-modal.show {
  display: block;
}

/* Responsive design - min-width media queries */
@media (min-width: 768px) {
  .settings-container {
    margin: 40px auto;
  }

  .settings-section {
    padding: 30px 40px;
  }

  .setting-item {
    padding: 20px 0;
  }
}

@media (min-width: 1024px) {
  .settings-container {
    max-width: 1000px;
  }

  .settings-section h2 {
    font-size: 1.7rem;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
.toggle-switch:focus,
.slider:focus,
select:focus,
.btn:focus,
.font-size-btn:focus {
  outline: 2px solid rgb(var(--primary-color));
  outline-offset: 2px;
}

/* Study Folder Styles */
.study-folder-tab {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  background: transparent;
  width: 95%;
  margin: 20px auto;
  padding: 0;
  animation: fadeIn 0.5s ease-out;
}

/* Folder View */
.folder-view {
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.folder-view h2 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: rgb(var(--primary-color));
}

.folder-view ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.folder-view li {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  color: rgb(var(--primary-color));
}

.folder-view li:hover {
  background: rgba(var(--primary-color) / 0.1);
  transform: translateX(3px);
}

.folder-view li.active {
  background: rgb(var(--primary-color));
  color: rgb(var(--blur-bg-color));
  font-weight: 600;
}

/* Document List */
.document-list {
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.document-list .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.document-list h2 {
  margin: 0;
  font-size: 1.1rem;
  color: rgb(var(--primary-color));
}

.buttons button {
  background: rgb(var(--primary-color));
  border: none;
  color: rgb(var(--blur-bg-color));
  border-radius: 8px;
  padding: 8px 14px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.buttons button:hover {
  background: rgba(var(--primary-color) / 0.8);
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(var(--primary-color) / 0.1);
  color: rgb(var(--primary-color));
}

tbody tr:hover {
  background: rgba(var(--primary-color) / 0.05);
  transition: background 0.3s;
}

/* Statistics + Chart */
.stats-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  flex-wrap: wrap;
}

.chart-container {
  width: 150px;
  height: 150px;
}

.stats-info {
  font-size: 0.95rem;
  color: rgb(var(--primary-color));
}

.stats-info p {
  margin: 5px 0;
}

/* Responsive Design */
@media (min-width: 200px) and (max-width: 768px) {
  .study-folder-tab {
    grid-template-columns: 1fr;
  }

  .stats-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-container {
    margin-bottom: 20px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.d-none {
  display: none !important;
}

body {
  background: #f4f4f6;
}

.disable {
  color: gray !important;
  cursor: not-allowed !important;
}

.disable-bg {
  background-color: lightgray !important;
  cursor: not-allowed !important;
}

/* ===================== ALL POP-UP =================== */
.all-modal-wrapper {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1;
  display: grid;
  /* keep grid for centering */
  place-items: center;
  backdrop-filter: blur(7px);

  /* hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* smooth fade */
  /* transition: opacity 0.2s ease, visibility 0.3s ease; */
}

.all-modal-wrapper.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  min-width: 300px;
  width: 30%;
  max-width: 500px;
  border: 1px solid #000;
  padding: 20px;
  border-radius: 10px;
  background: rgb(var(--blur-bg-color) / 100%);
}

.upload-pdf-modal h4,
.study-tools-modal h4,
.study-tools-modal .tool-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.upload-pdf-modal {
  display: none;
}

.upload-pdf-modal.show {
  display: block;
}

.modal h4 span {
  cursor: pointer;
}

.upload-pdf-modal label[for="pdf-upload"] {
  width: 100%;
  height: 100px;
  display: grid;
  place-items: center;
  border: 2px dashed rgb(var(--primary-color) / 70%);
  text-align: center;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.upload-pdf-modal input[type="file"] {
  display: none;
}

.upload-pdf-modal div input {
  width: 100%;
  height: 30px;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgb(var(--blur-bg-color) / 70%);
  border: 1px solid rgb(var(--primary-color) / 30%);
  margin-bottom: 10px;
}

.upload-pdf-modal div div {
  display: flex;
  justify-content: end;
  column-gap: 5px;
}

.upload-pdf-modal div div button {
  background-color: rgb(var(--primary-color) / 70%);
  color: rgb(var(--blur-bg-color));
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.875rem;
}

.study-tools-modal {
  width: 40%;
  display: none;
}

.study-tools-modal.show {
  display: block;
}

.study-tools-modal .tool-wrapper {
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.study-tools-modal .tool-wrapper .tool {
  margin: 10px;
  text-align: center;
  cursor: pointer;
}

.study-tools-modal .tool-wrapper .tool span {
  padding: 25px;
  background: rgb(var(--primary-color) / 70%);
  color: rgb(var(--blur-bg-color) / 70%);
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 5px;

  &:hover {
    transform: translateY(-10px);
    box-shadow: 0px 7px 7px 0px #7d7d7d;
  }
}

.study-tools-modal .tool-wrapper .tool p {
  font-size: .9rem;
}

/* .all-modal-wrapper .upload-pdf-modal  */
/* Desktop-first: default desktop layout */
.container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  background-image: url(../assets/images/background.jpg);
  background-color: rgba(0, 0, 0, 0.705);
  background-blend-mode: multiply;
  background-size: cover;
  background-attachment: fixed;
  justify-content: center;
}

.container aside.nav {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  width: 300px;
  height: 100vh;
  background-color: rgb(var(--primary-color) / 70%);
  backdrop-filter: blur(10px);
  justify-content: flex-start;
  position: static;
  flex-shrink: 0;
}

.container aside.nav .close-nav .material-symbols-outlined {
  display: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 20px;
  text-align: left;
}

.logo img {
  width: 70px;
}

.logo img.logo1 {
  filter: brightness(40) hue-rotate(61deg);

}

.logo img.logo2 {
  display: none;
}

.logo.lamp_on img.logo1 {
  display: none;
}

.logo.lamp_on img.logo2 {
  display: block;
}

.logo h1 {
  color: rgb(var(--blur-bg-color));
  font-size: clamp(1rem, 4vw, 1.125rem);
  font-weight: 700;
}

.logo p {
  font-size: 0.625rem;
  color: #ffffffb3;
}

.container aside.nav ul {
  list-style: none;
  margin-top: 50px;
}

.container aside.nav ul li {
  padding: clamp(0.75rem, 4vw, 0.9375rem) clamp(0.9375rem, 5vw, 1.25rem);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: rgb(var(--blur-bg-color));
  display: flex;
  align-items: center;
  column-gap: 7px;
  position: relative;
  min-height: 44px;
  /* Touch-friendly */
}

.container aside.nav ul li.active::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: rgb(var(--blur-bg-color));
  left: 0;
  border-top-right-radius: 60px;
  border-bottom-right-radius: 70px;
  top: 0;
  opacity: 1;
}

.container aside.nav ul li i {
  font-size: 1.25rem;
}

.container aside.nav ul li a {
  text-decoration: none;
  color: rgb(var(--blur-bg-color));
  font-size: 1.125rem;
  display: inline-flex;
  width: 100%;
  margin: inherit;
  column-gap: 10px;
}

.container aside.nav ul li a:hover {
  text-decoration: none;
}

.container aside.nav ul li:hover {
  background-color: rgb(255 255 255 / 10%);
  cursor: pointer;
}

.user-profile {
  position: absolute;
  /* changed from relative */
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  column-gap: 10px;
  background-color: rgb(0 0 0 / 10%);
  cursor: pointer;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(var(--blur-bg-color));
}

/* Fixed pseudo-element — moved from img to parent */
.user-profile::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 45px;
  /* adjust to your layout */
  width: 10px;
  height: 10px;
  background-color: #4caf50;
  border: 2px solid rgb(var(--blur-bg-color));
  border-radius: 50%;
}

.user-profile .user-info h4 {
  width: 16ch;
  color: rgb(var(--blur-bg-color));
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.container .wrapper {
  position: relative;
  width: 100%;
  /* comment this to make content compressed and center it CONECTED with line no. 768 and 769 */
}

/* --- CHAT --- */
/* Desktop: main-content row layout */
.main-content {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

/* Desktop: tab-content-wrapper takes available space */
.tab-content-wrapper {
  /* flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; */
  height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Settings tab styling */
.settings-tab {
  width: 95%;
  margin: 20px auto;
  height: calc(100vh - 160px);
  overflow-y: auto;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  padding: 0;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
}

.tab-content-wrapper .content-header {
  width: 95%;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  /* backdrop-filter: var(--blur-effect); */
  padding: 15px 20px;
  border-radius: 10px;
  position: relative;
  z-index: 100;
}

.tab-content-wrapper .content-header .info h4 {
  font-size: clamp(1.125rem, 5vw, 1.25rem);
  font-weight: 600;
}

.tab-content-wrapper .content-header .info p {
  font-size: 0.875rem;
  color: gray;
}

.tab-content-wrapper .content-header .content-header-actions {
  position: relative;
  cursor: pointer;
}


#brightness-settings {
  width: 200px;
  position: absolute;
  top: 18px;
  right: 10px;
  background: rgb(var(--blur-bg-color) / 50%);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(7px);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
}

.tab-content-wrapper .content-header .content-header-actions:hover #brightness-settings {
  display: block;
}


#brightness-settings li {
  list-style: none;
  padding: 10px 15px;
  border-bottom: 1px solid rgb(0 0 0 / 10%);
  text-align: center;
  align-items: center;
  display: flex;
  column-gap: 10px;
  ;
}

#brightness-settings li span span {
  font-size: 0.75rem;
  color: rgb(var(--primary-color));
}

#brightness-settings li:last-child {
  border-bottom: none;
}

#brightness-settings li {
  position: relative;
}

.font-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(var(--blur-bg-color) / 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

#brightness-settings li:hover .font-dropdown,
.font-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.font-dropdown li {
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(var(--primary-color) / 0.1);
  font-size: 0.9rem;
  color: rgb(var(--primary-color));
}

.font-dropdown li:last-child {
  border-bottom: none;
}

.font-dropdown li:hover {
  background: rgba(var(--primary-color) / 0.1);
}

.font-dropdown li.active {
  background: rgb(var(--primary-color) / 0.1);
  font-weight: 600;
}

.font-dropdown li.separator {
  height: 1px;
  background: rgba(var(--primary-color) / 0.2);
  margin: 5px 0;
  padding: 0;
  cursor: default;
  border-bottom: none;
}

.font-dropdown li.separator:hover {
  background: rgba(var(--primary-color) / 0.2);
}

.danger-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 50px;
}

.danger-btn span {
  color: rgb(214 0 0);
}

/* --- END CHAT --- */

/* --- CHAT BODY --- */

.tab-content-wrapper .tab-content .conversation-tab {
  height: calc(100vh - 250px);
  width: 95%;
  margin: 0 auto;
  background: rgb(var(--blur-bg-color) / var(--blur--bg--opacity));
  border-radius: 10px;
  overflow: hidden;
}

.tab-content-wrapper .tab-content .conversation-tab #messages>i {
  font-size: 0.875rem;
  display: block;
  margin: 10px auto;
  text-align: center;
  width: fit-content;
  background-color: rgb(0 0 0 / 10%);
  padding: 5px;
  border-radius: 5px;
  color: rgb(var(--primary-color) / 70%);
}

.tab-content-wrapper .tab-content .conversation-tab #messages {
  list-style: none;
  padding: 20px;
  overflow-y: scroll;
  height: calc(100vh - 240px);
}

.tab-content-wrapper .tab-content .conversation-tab #messages div {
  margin-bottom: 15px;
  padding: 10px 15px;
  width: fit-content;
  max-width: 60%;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: var(--shadow);
}

.tab-content-wrapper .tab-content .conversation-tab #messages div.bot-reply.loading {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px;
}

.tab-content-wrapper .tab-content .conversation-tab #messages div.bot-reply.loading span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: rgb(var(--primary-color) / 70%);
  border-radius: 50%;
  animation: dancing-dot 1s infinite ease-in-out;
}

/* Make each dot bounce with a delay for the "typing" illusion */
.tab-content-wrapper .tab-content .conversation-tab #messages div.bot-reply.loading span:nth-child(1) {
  animation-delay: 0s;
}

.tab-content-wrapper .tab-content .conversation-tab #messages div.bot-reply.loading span:nth-child(2) {
  animation-delay: 0.2s;
}

.tab-content-wrapper .tab-content .conversation-tab #messages div.bot-reply.loading span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Keyframes for the dancing/bouncing motion */
@keyframes dancing-dot {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.tab-content-wrapper .tab-content .conversation-tab #messages div.bot-reply {
  background-color: rgb(var(--blur-bg-color) /var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  border-bottom-left-radius: 0;
  position: relative;
}

.tab-content-wrapper .tab-content .conversation-tab #messages div.bot-reply .material-symbols-outlined {

  cursor: pointer;
  display: block;
  color: rgb(var(--primary-color));
  text-align: right;
  width: 100%;
}

.tab-content-wrapper .tab-content .conversation-tab #messages div.user {
  background-color: rgb(var(--primary-color) / 70%);
  color: rgb(var(--blur-bg-color));
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.tab-content-wrapper .tab-content .conversation-tab #messages div:last-child {
  margin-bottom: 10px;
}


/* --- END CHAT BODY --- */

/* ================= RESPONSIVE DESIGN FOR ALL TABS ================= */

/* Conversation Tab Responsive */
@media (max-width: 768px) {
  /* .conversation-tab {
    padding: 15px;
  } */

  .conversation-tab #messages {
    padding: 15px;
  }

  .conversation-tab #messages div {
    max-width: 85%;
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .conversation-tab #messages div {
    max-width: 90%;
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

/* Exams Questions Tab Responsive */
@media (max-width: 768px) {
  .exams-questions-tab {
    padding: 20px 15px;
  }

  .exam-header h1 {
    font-size: 1.25rem;
  }

  .exam-block {
    padding: 8px 12px;
  }

  .exam-block h2 {
    font-size: 1rem;
  }

  .exam-block p,
  .exam-block li {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .exams-questions-tab {
    padding: 15px 10px;
  }

  .exam-header h1 {
    font-size: 1.125rem;
  }

  .exam-header .meta {
    font-size: 0.75rem;
  }

  .exam-block {
    margin-bottom: 15px;
    padding: 6px 10px;
  }

  .exam-block h2 {
    font-size: 0.9rem;
  }

  .exam-block p,
  .exam-block li {
    font-size: 0.75rem;
  }

  .exam-footer {
    padding-top: 6px;
    font-size: 0.7rem;
  }
}

/* Create Headings Tab Responsive */
@media (max-width: 768px) {
  .create-headings-tab {
    padding: 20px 15px;
  }

  .create-headings-output h2 {
    font-size: 1.25rem;
  }

  #user-input-paragraph {
    padding: 12px;
    font-size: 0.9rem;
  }

  #generated-headings li {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .create-headings-tab {
    padding: 15px 10px;
  }

  .create-headings-output h2 {
    font-size: 1.125rem;
  }

  #user-input-paragraph {
    padding: 10px;
    font-size: 0.8rem;
  }

  #generated-headings li {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
}

/* Manage Folder Tab Responsive */
@media (max-width: 768px) {
  .manage-folder-tab {
    padding: 15px;
  }

  .tab-heading h2 {
    font-size: 1.25rem;
  }

  .tab-heading p {
    font-size: 0.8rem;
  }

  .block-cover {
    gap: 15px;
  }

  .manage-folder-tab-drop textarea {
    height: 120px;
  }

  .manage-folder-tab-controls button {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .ai-script-actions li {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .user-script-preview .title h3 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .manage-folder-tab {
    padding: 10px;
  }

  .tab-heading h2 {
    font-size: 1.125rem;
  }

  .tab-heading p {
    font-size: 0.75rem;
  }

  .block-cover {
    flex-direction: column;
    gap: 10px;
  }

  .manage-folder-tab-drop textarea {
    height: 100px;
    font-size: 0.8rem;
  }

  .manage-folder-tab-controls button {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .ai-script-actions li {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .user-script-preview .title h3 {
    font-size: 0.9rem;
  }

  .user-script-preview .title p {
    font-size: 0.75rem;
  }

  .generated-script {
    font-size: 0.7rem;
  }
}

/* About Tab Responsive */
@media (max-width: 768px) {
  .about-tab {
    padding: 20px 15px;
  }

  .about-card h4 {
    font-size: 1.25rem;
  }

  .developer-intro {
    padding: 15px;
  }

  .developer-intro img {
    width: 80px;
    height: 80px;
  }

  .developer-intro h5 {
    font-size: 1rem;
  }

  .developer-intro span,
  .developer-intro p {
    font-size: 0.8rem;
  }

  .project-details {
    padding: 15px;
  }

  .project-details h3 {
    font-size: 1rem;
  }

  .project-details p,
  .project-details li {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .about-tab {
    padding: 15px 10px;
  }

  .about-card h4 {
    font-size: 1.125rem;
  }

  .about-content {
    flex-direction: column;
  }

  .developer-intro {
    padding: 10px;
    text-align: center;
  }

  .developer-intro img {
    width: 70px;
    height: 70px;
  }

  .developer-intro h5 {
    font-size: 0.9rem;
  }

  .developer-intro span,
  .developer-intro p {
    font-size: 0.75rem;
  }

  .project-details {
    padding: 10px;
  }

  .project-details h3 {
    font-size: 0.9rem;
  }

  .project-details p,
  .project-details li {
    font-size: 0.75rem;
  }
}

/* Settings Tab Responsive */
@media (max-width: 768px) {
  .settings-tab {
    padding: 15px;
  }

  .settings-section {
    padding: 20px 15px;
  }

  .settings-section h2 {
    font-size: 1.375rem;
  }

  .setting-item {
    padding: 12px 0;
  }

  .setting-text h3 {
    font-size: 1rem;
  }

  .setting-text p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .settings-tab {
    padding: 10px;
  }

  .settings-section {
    padding: 15px 10px;
  }

  .settings-section h2 {
    font-size: 1.25rem;
  }

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
  }

  .setting-text h3 {
    font-size: 0.9rem;
  }

  .setting-text p {
    font-size: 0.75rem;
  }

  .setting-control {
    width: 100%;
    justify-content: flex-end;
  }

  .font-size-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .select-container select {
    width: 100%;
  }
}

/* Study Folder Tab Responsive */
@media (max-width: 768px) {
  .study-folder-tab {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  .folder-view {
    padding: 15px;
  }

  .folder-view h2 {
    font-size: 1rem;
  }

  .folder-view li {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .document-list {
    padding: 15px;
  }

  .document-list h2 {
    font-size: 1rem;
  }

  .buttons button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  table th,
  table td {
    padding: 8px;
    font-size: 0.8rem;
  }

  .stats-section {
    flex-direction: column;
    gap: 15px;
  }

  .chart-container {
    width: 120px;
    height: 120px;
  }

  .stats-info {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .study-folder-tab {
    padding: 0;
    gap: 10px;
  }

  .folder-view {
    padding: 10px;
  }

  .folder-view h2 {
    font-size: 0.9rem;
  }

  .folder-view li {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .document-list {
    padding: 10px;
  }

  .document-list h2 {
    font-size: 0.9rem;
  }

  .buttons button {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  table th,
  table td {
    padding: 6px;
    font-size: 0.75rem;
  }

  .stats-section {
    gap: 10px;
  }

  .chart-container {
    width: 100px;
    height: 100px;
  }

  .stats-info {
    font-size: 0.8rem;
  }

  .stats-info p {
    margin: 3px 0;
  }
}


/* --- EXAMS QUESTIONS AREA --- */
.exams-questions-tab {
  display: grid;
  place-items: center;
  width: 95%;
  margin: 20px auto;
  height: calc(100vh - 270px);
  overflow-y: auto;
  /* Glassy background from root vars */
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
  /* /* font-family: "Georgia", "Times New Roman", serif; */
  line-height: 1.6;
}

/* Header */
.exam-header h2 {
  text-align: center;
  color: var(--primary-color, #0b3b5a);
  font-size: 1.375rem;
  margin-bottom: 5px;
}

.exam-header .meta {
  text-align: center;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 20px;
}

/* Section blocks */
.exam-block {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-left: 4px solid rgb(var(--blur-bg-color));
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  border-radius: 6px;
  transition: all 0.3s ease;
}

.exam-block:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.exam-block h2 {
  font-size: 1.125rem;
  color: var(--primary-color, #0b3b5a);
  margin-bottom: 8px;
}

.exam-block ul {
  list-style: disc;
  padding-left: 25px;
  margin: 6px 0;
}

.exam-block li {
  margin-bottom: 8px;
  color: #222;
}

.exam-block p {
  font-size: 0.875rem;
  margin: 4px 0;
}

/* Footer */
.exam-footer {
  border-top: 1px dashed #ddd;
  margin-top: 25px;
  padding-top: 8px;
  font-size: 0.8125rem;
  color: #333;
}

.exam-footer .small-note {
  margin-bottom: 5px;
  color: #555;
}

.exam-footer .date {
  text-align: right;
  font-weight: 500;
}



/* --- END EXAMS QUESTIONS AREA --- */

/* Styles for dynamically created .new-block divs */
.bot-reply {
  /* font-family: 'Arial', sans-serif; */
  line-height: 1.6;
  color: rgb(var(--primary-color) / 90%);
  padding: 0 20px;
  margin-bottom: 100px;
}

.bot-reply h1 {
  text-align: center;
}

.bot-reply h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: inherit;

}

.bot-reply h3 {
  font-size: 1.4em;
  margin-top: 1em;
  margin-bottom: 0.3em;
  position: relative;
  margin-left: 7px;
}

.bot-reply h3::before,
.bot-reply h3::after,
.bot-reply h4::before,
.bot-reply h4::after {
  font-family: "Material Symbols Outlined";
  position: absolute
}

.bot-reply h3::after {
  content: 'chevron_right';
  left: -16px;
}

.bot-reply h3::before {
  content: 'drag_handle';
  left: -25px;
}

.bot-reply h4 {
  font-size: 1.2em;
  margin-top: 0.8em;
  margin-bottom: 0.3em;
  color: inherit;
  position: relative;
  margin-left: 25px;
}

.bot-reply h4::before {
  content: 'subdirectory_arrow_right';
  left: -16px;
  top: -3px;
}

.bot-reply ul {
  margin: 0.3em 0 0.8em 1.5em;
  padding: 0;
}

.bot-reply li {
  margin-bottom: 0.4em;
}

.bot-reply em {
  font-style: italic;
  font-weight: bold;
}

.bot-reply strong {
  font-weight: bold;
}

.bot-reply p:last-child {
  text-align: right;
  margin-top: 70px;
  border-top: 1px solid;
}

.new-block {
  margin-bottom: 1em;
}


/* --- CREATE HEADINGS --- */
.create-headings-tab {
  width: 95%;
  margin: 20px auto;
  height: calc(100vh - 270px);
  overflow-y: auto;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
  /* /* font-family: "Georgia", "Times New Roman", serif; */
  line-height: 1.6;
  color: #111;
}

.create-headings-tab .user-text {
  background: rgb(var(--blur-bg-color) / 70%);
  padding: 10px 15px;
  border-radius: 5px;
  margin: 5px;
}

.create-headings-tab .user-text::before {
  content: 'User Text: ';
  font-weight: bold;
}

.create-headings-tab details {
  background: rgb(var(--blur-bg-color) / 70%);
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
}

.create-headings-tab .bot-reply {
  padding: 0;
}

.create-headings-tab .bot-reply details summary {
  font-weight: bold;
  margin-left: 16px;
}


/* It will hide dropdown (marker) sign of details if it conatins only summary tag */
.create-headings-tab .bot-reply details summary:only-child {
  list-style: none;
  cursor: text;
}



/* --- END CREATE HEADINGS --- */

/* --- SUMMARIZE TAB --- */
.summarize-tab {
  width: 95%;
  margin: 20px auto;
  height: calc(100vh - 270px);
  overflow-y: auto;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
  /* /* font-family: "Georgia", "Times New Roman", serif; */
  line-height: 1.6;
  color: rgb(var(--primary-color));
}

.summarize-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.control-item label {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgb(var(--primary-color));
}

.control-item .setting-text h3 {
  margin-bottom: 0;
}

.control-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: rgb(var(--primary-color));
}

.control-item select {
  padding: 8px 12px;
  border: 1px solid rgba(var(--primary-color) / 0.3);
  border-radius: 6px;
  background: rgba(var(--blur-bg-color) / 0.8);
  color: rgb(var(--primary-color));
  font-size: 0.9rem;
  cursor: pointer;
}

.summarize-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.summarize-input-section,
.summarize-output-section {
  /* background: rgba(var(--blur-bg-color) /var(--blur--bg--opacity)); */
  backdrop-filter: var(--blur-effect);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.summarize-input-section h3,
.summarize-output-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: rgb(var(--primary-color));
  display: flex;
  align-items: center;
  gap: 8px;
}

.summarize-input-section h3 .material-symbols-outlined,
.summarize-output-section h3 .material-symbols-outlined {
  font-size: 1.4rem;
}

#summarize-textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  background: rgba(var(--blur-bg-color) /var(--blur--bg--opacity));
  border: 1px solid rgba(var(--primary-color) / 0.3);
  border-radius: 8px;
  color: rgb(var(--primary-color));
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
}

#summarize-textarea:focus {
  border-color: rgb(var(--primary-color));
}

#summarize-btn {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
  padding: 12px 25px;
  background: rgb(var(--primary-color));
  color: rgb(var(--blur-bg-color));
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 8px;
}

#summarize-btn:hover {
  background: rgba(var(--primary-color) / 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#summarize-btn:disabled {
  background: rgba(var(--primary-color) / 0.5);
  cursor: not-allowed;
  transform: none;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 15px;
}

.loading-indicator p {
  color: rgb(var(--primary-color) / 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.loading-dots {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: rgb(var(--primary-color) / 0.7);
  border-radius: 50%;
  animation: dancing-dot 1s infinite ease-in-out;
}

.loading-dots:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots:nth-child(3) {
  animation-delay: 0.4s;
}

.summarize-result-box {
  background: rgba(var(--blur-bg-color) / 0.95);
  border: 1px solid rgba(var(--primary-color) / 0.2);
  border-radius: 8px;
  padding: 20px;
  min-height: 150px;
  animation: fadeIn 0.5s ease-out;
}

.result-content {
  line-height: 1.6;
  color: rgb(var(--primary-color));
}

.result-content h1,
.result-content h2,
.result-content h3,
.result-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: rgb(var(--primary-color));
}

.result-content p {
  margin-bottom: 15px;
}

.result-content ul,
.result-content ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.result-content li {
  margin-bottom: 5px;
}

/* Responsive Design for Summarize Tab */
@media (max-width: 768px) {
  .summarize-tab {
    padding: 20px 15px;
  }

  .summarize-content {
    gap: 20px;
  }

  .summarize-input-section,
  .summarize-output-section {
    padding: 15px;
  }

  .summarize-input-section h3,
  .summarize-output-section h3 {
    font-size: 1.1rem;
  }

  #summarize-textarea {
    min-height: 150px;
    padding: 12px;
    font-size: 0.85rem;
  }

  #summarize-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .loading-indicator {
    padding: 30px 20px;
  }

  .summarize-result-box {
    padding: 15px;
    min-height: 120px;
  }
}

@media (max-width: 480px) {
  .summarize-tab {
    padding: 15px 10px;
  }

  .summarize-input-section,
  .summarize-output-section {
    padding: 12px;
  }

  .summarize-input-section h3,
  .summarize-output-section h3 {
    font-size: 1rem;
  }

  #summarize-textarea {
    min-height: 120px;
    padding: 10px;
    font-size: 0.8rem;
  }

  #summarize-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .loading-indicator {
    padding: 20px 15px;
  }

  .summarize-result-box {
    padding: 12px;
    min-height: 100px;
  }
}

/* --- END SUMMARIZE TAB --- */

/* --- MANAGE FOLDER --- */
.manage-folder-tab {
  width: 95%;
  margin: 20px auto;
  /* height: calc(100vh - 250px); */
  overflow-y: auto;
  backdrop-filter: var(--blur-effect);
  /* padding: 15px; */
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
  /* /* font-family: "Georgia", "Times New Roman", serif; */
  line-height: 1.6;
  color: #111;
}

.manage-folder-tab .tab-heading {
  color: rgb(var(--blur-bg-color) / 70%);
  text-align-last: left;
}

div.block-cover {
  display: flex;
  gap: 20px;
}

.block-cover>div:first-child,
.block-cover .ai-script-actions,
.block-cover .user-script-preview {
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  padding: 10px 15px;
  border-radius: 10px;
}

.manage-folder-tab-drop textarea {
  height: 130px;
  overflow-y: scroll;
  margin-bottom: 10px;
  resize: vertical;
}

.manage-folder-tab-drop,
.user-folder-script-generator {
  flex: 1;
}

.tab-heading h2 {
  text-align: center;
  color: var(--primary-color, #0b3b5a);
  font-size: 1.375rem;
  margin-bottom: 5px;
}

.tab-heading p {
  font-size: 0.875rem;
  color: rgb(var(--blur-bg-color) / 60%);
  margin-bottom: 20px;
}

.manage-folder-tab-drop h3 {
  font-size: 1.125rem;
  color: var(--primary-color, #0b3b5a);
  margin-bottom: 10px;
}

.manage-folder-tab-drop textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgb(var(--blur-bg-color));
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.875rem;
  resize: vertical;
  background: rgba(var(--blur-bg-color) / 80%);
  color: #111;
  max-height: 150px;
}

.manage-folder-tab-controls button {

  background-color: rgb(var(--primary-color) / 90%);
  color: rgb(var(--blur-bg-color));
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.875rem;
  margin-right: 10px;
  transition: background-color 0.3s ease;
  display: flex;
  width: 100%;
  justify-content: center;
  column-gap: 5px;
}

.manage-folder-tab-controls button::before {
  content: 'Generate Bash Script';
}

.manage-folder-tab-controls button.generating {
  cursor: not-allowed;
  opacity: .7 !important;
}

.manage-folder-tab-controls button.generating::before {
  content: 'Generating...';
  display: inline-block;
}

.manage-folder-tab-controls button.generating::after {
  display: inline-block;
  content: '';
  min-width: 12px;
  border: 2px solid rgb(var(--blur-bg-color) / 30%);
  border-top: 2px solid rgb(var(--blur-bg-color) / 70%);
  border-right: 2px solid rgb(var(--blur-bg-color) / 70%);
  border-radius: 50%;
  animation: loading .3s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
  /* optional: small gap after button text */
}

@keyframes loading {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


.manage-folder-tab-controls button:hover {
  background-color: rgb(var(--primary-color));
}

.user-folder-script-generator .ai-script-actions {
  margin-bottom: 10px;
}

.user-folder-script-generator .ai-script-actions ul {
  list-style: none;
  display: flex;
  row-gap: 10px;
}

.user-folder-script-generator .ai-script-actions li {
  display: flex;
  align-items: center;
  column-gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  margin: 10px 0;
  background: rgba(var(--blur-bg-color) / 70%);
  border-radius: 5px;
}

.user-folder-script-generator .ai-script-actions li:hover {
  background: rgba(var(--blur-bg-color) / 90%);
}

.user-script-preview .script-for-os span {
  cursor: pointer;
  position: relative;
}

.user-script-preview .script-for-os span.active::after {
  content: '';
  width: 5px;
  display: inline-block;
  height: 5px;
  background: rgb(var(--primary-color) / 90%);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 46%;
}

.user-script-preview .script-for-os span svg {
  width: 43px;
  height: 43px;
}

.user-script-preview p {
  font-size: 0.875rem;
  color: rgb(var(--primary-color) / 70%);
  margin-bottom: 10px;
}

.generated-script {
  background: rgba(0, 0, 0, 0.7);
  color: rgb(255 255 255 / 70%);
  padding: 10px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.75rem;
  white-space: pre-wrap;
  min-height: 150px;
  max-height: 200px;
  overflow-y: auto;
  position: relative;
}

.generated-script span.copy-script {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

/* --- END MANAGE FOLDER --- */

/* --- ABOUT TAB --- */
.about-tab {
  width: 95%;
  margin: 20px auto;
  /* height: calc(100vh - 270px); */
  overflow-y: auto;
  background: url(../assets/images/about-bg.png), rgba(var(--primary-color));
  backdrop-filter: var(--blur-effect);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
  /* font-family: "Georgia", "Times New Roman", serif; */
  line-height: 1.6;
  /* background-image: url(../assets/images/about1.png); */
  /* background-image: ; */
  /* background-image: ; */
  /* background-image: url(../assets/images/geomatric1.png); */
  /* background-image: ; */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-card h4 {
  display: flex;
  justify-content: center;
  color: rgb(var(--blur-bg-color) /90%);
  font-size: 1.375rem;
  margin-bottom: 20px;
  font-weight: 600;

}

.about-card h4 span {
  display: block;
  width: fit-content;
}

.about-card h4 span:after {
  content: "";
  display: block;
  width: 70%;
  height: 2px;
  background: rgb(var(--blur-bg-color) / 30%);
  margin: 0 auto;
}

.about-content {
  display: flex;
  /* gap: 30px; */
  align-items: stretch;
}

.developer-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-right: 1px solid transparent;
  border-image: linear-gradient(to bottom,
      transparent 0%,
      transparent 15%,
      rgb(var(--blur-bg-color) / 30%) 15%,
      rgb(var(--blur-bg-color) / 30%) 85%,
      transparent 85%,
      transparent 100%) 1;
  transition: all 0.3s ease;
}

.developer-intro img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgb(var(--blur-bg-color) / 70%);
}

.developer-intro .img-frame {
  margin-bottom: 15px;
  position: relative;
}

.developer-intro .img-frame:after {
  content: "";
  position: absolute;
  bottom: 11px;
  right: 16px;
  width: 10px;
  height: 10px;
  background-color: #4caf50;
  border: 2px solid rgb(var(--blur-bg-color));
  border-radius: 50%;
}

.developer-details h5 {
  font-size: 1.125rem;
  color: rgb(var(--blur-bg-color) / 70%);
  margin-bottom: 5px;
  font-weight: 600;
}

.developer-details span {
  display: block;
  font-size: 0.8125rem;
  color: rgb(var(--blur-bg-color) / 70%);
  margin-bottom: 10px;
  font-style: italic;
}

.developer-details p {
  font-size: 0.8125rem;
  color: rgb(var(--blur-bg-color) / 70%);
  margin-bottom: 8px;
  line-height: 1.4;
}

.developer-details p strong {
  color: var(--blur-bg-color);
}


.project-details {
  flex: 1;
  padding: 20px;
  transition: all 0.3s ease;
}

.project-details h3 {
  font-size: 1.125rem;
  color: rgb(var(--blur-bg-color) / 70%);
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.project-details p {
  font-size: 0.8125rem;
  color: rgb(var(--blur-bg-color) / 70%);
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-details p strong {
  color: var(--blur-bg-color);
}

.project-details ul {
  list-style: disc;
  padding-left: 20px;
  margin: 8px 0;
}

.project-details li {
  margin-bottom: 5px;
  color: rgb(var(--blur-bg-color) / 70%);
  font-size: 0.8125rem;
}

/* --- PRICING PLANS TAB --- */
.pricing-plans-tab {
  width: 95%;
  margin: 20px auto;
  height: calc(100vh - 270px);
  overflow-y: auto;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
  /* font-family: "Georgia", "Times New Roman", serif; */
  line-height: 1.6;
  color: rgb(var(--primary-color));
}

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgb(var(--primary-color));
}

.pricing-header p {
  font-size: 1.1rem;
  opacity: 0.8;
  color: rgb(var(--primary-color));
}

.pricing-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.pricing-card {
  background: rgba(var(--blur-bg-color) / 0.9);
  backdrop-filter: var(--blur-effect);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  max-width: 350px;
  width: 100%;
  aspect-ratio: 1;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border-color: rgb(var(--primary-color));
  transform: scale(1.05);
}

.pricing-card.popular::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--primary-color)), rgba(var(--primary-color), 0.7));
}

.pricing-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgb(var(--primary-color));
  color: rgb(var(--blur-bg-color));
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card-header {
  padding: 30px 25px 20px;
  text-align: center;
  background: rgba(var(--primary-color) / 0.05);
}

.pricing-card-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: rgb(var(--primary-color));
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.currency {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgb(var(--primary-color) / 0.8);
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: rgb(var(--primary-color));
}

.period {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgb(var(--primary-color) / 0.7);
}

.pricing-card-body {
  padding: 25px;
  flex: 1;
}

.pricing-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card-body li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: rgb(var(--primary-color));
}

.pricing-card-body li:last-child {
  margin-bottom: 0;
}

.pricing-card-body .material-symbols-outlined {
  color: rgb(var(--primary-color));
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pricing-card-footer {
  padding: 25px;
  text-align: center;
  margin-top: auto;
}

.pricing-btn {
  background: rgb(var(--primary-color) / 0.8);
  color: rgb(var(--blur-bg-color));
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 200px;
}

.pricing-btn:hover {
  background: rgb(var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pricing-btn.primary {
  background: rgb(var(--primary-color));
  box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
}

.pricing-btn.primary:hover {
  box-shadow: 0 6px 25px rgba(var(--primary-color), 0.4);
}

.pricing-footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(var(--primary-color) / 0.1);
}

.pricing-footer p {
  font-size: 0.9rem;
  color: rgb(var(--primary-color) / 0.7);
  margin: 0;
}

/* Responsive Design for Pricing Plans */
@media (max-width: 1024px) {
  .pricing-container {
    justify-content: center;
  }

  .pricing-card {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .pricing-plans-tab {
    padding: 20px 15px;
  }

  .pricing-header h1 {
    font-size: 2rem;
  }

  .pricing-header p {
    font-size: 1rem;
  }

  .pricing-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.popular {
    transform: none;
    order: -1;
  }

  .pricing-card {
    min-height: auto;
  }

  .pricing-card-header {
    padding: 25px 20px 15px;
  }

  .pricing-card-header h2 {
    font-size: 1.5rem;
  }

  .amount {
    font-size: 2.5rem;
  }

  .pricing-card-body {
    padding: 20px;
  }

  .pricing-card-body li {
    font-size: 0.9rem;
  }

  .pricing-card-footer {
    padding: 20px;
  }

  .pricing-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .pricing-plans-tab {
    padding: 15px 10px;
  }

  .pricing-header {
    margin-bottom: 30px;
  }

  .pricing-header h1 {
    font-size: 1.8rem;
  }

  .pricing-header p {
    font-size: 0.95rem;
  }

  .pricing-card-header {
    padding: 20px 15px 12px;
  }

  .pricing-card-header h2 {
    font-size: 1.3rem;
  }

  .amount {
    font-size: 2rem;
  }

  .pricing-card-body {
    padding: 15px;
  }

  .pricing-card-body li {
    font-size: 0.85rem;
    gap: 10px;
  }

  .pricing-card-footer {
    padding: 15px;
  }

  .pricing-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .pricing-footer p {
    font-size: 0.8rem;
  }
}

/* --- SERVICE SUPPORT TAB --- */
.service-support-tab {
  width: 95%;
  margin: 20px auto;
  height: calc(100vh - 160px);
  overflow-y: auto;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow, 0 0 12px rgba(0, 0, 0, 0.08));
  /* font-family: "Georgia", "Times New Roman", serif; */
  line-height: 1.6;
  color: rgb(var(--primary-color));
}

.service-support-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-support-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: rgb(var(--primary-color));
}

.service-support-header p {
  font-size: 1.1rem;
  opacity: 0.8;
  color: rgb(var(--primary-color));
}

.service-support-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Base card styles */
.support-card {
  flex: 1 1 300px;
  /* flexible width with a min width of 200px */
  /* background: rgba(var(--blur-bg-color) /var(--blur--bg--opacity)); */
  backdrop-filter: var(--blur-effect);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Make the last card full-width */
.support-card:last-child {
  grid-column: 1 / -1;
}

.support-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.support-card-header {
  padding: 25px 25px 15px;
  background: rgba(var(--primary-color) / 0.05);
  border-bottom: 1px solid rgba(var(--primary-color) / 0.1);
}

.support-card-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(var(--primary-color));
}

.support-card-header h2 .material-symbols-outlined {
  font-size: 1.8rem;
  color: rgb(var(--primary-color));
}

.support-card-body {
  padding: 25px;
}

.support-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-card-body li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: rgb(var(--primary-color));
  line-height: 1.5;
}

.support-card-body li:last-child {
  margin-bottom: 0;
}

.support-card-body .material-symbols-outlined {
  color: rgb(var(--primary-color));
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.subscribe-btn {
  width: 100%;
  background: rgb(var(--primary-color));
  color: rgb(var(--blur-bg-color));
  border: none;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 2rem;
  position: relative;
}

.subscribe-btn::after {
  content: '👑 ';
  position: absolute;
  top: -32px;
  right: -23px;
  font-size: 3rem;
  transform: rotate(29deg);
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(var(--primary-color) / 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(var(--primary-color) / 0.1);
  transform: translateX(5px);
}

.contact-method .material-symbols-outlined {
  font-size: 1.5rem;
  color: rgb(var(--primary-color));
  flex-shrink: 0;
}

.contact-method div {
  flex: 1;
}

.contact-method strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: rgb(var(--primary-color));
}

.contact-method a {
  color: rgb(var(--primary-color));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: rgba(var(--primary-color), 0.8);
  text-decoration: underline;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgb(var(--primary-color));
  color: rgb(var(--blur-bg-color));
}

.action-btn:hover {
  background: rgba(var(--primary-color) / 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-btn.whatsapp-btn {
  background: #25d366;
}

.action-btn.whatsapp-btn:hover {
  background: #128c7e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.action-btn.email-btn {
  background: #ea4335;
}

.action-btn.email-btn:hover {
  background: #d33b2c;
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.3);
}

.action-btn.status-btn {
  background: rgba(var(--primary-color) / 0.8);
}

.action-btn.status-btn:hover {
  background: rgb(var(--primary-color));
  box-shadow: 0 6px 20px rgba(var(--primary-color), 0.3);
}

.service-support-footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(var(--primary-color) / 0.1);
}

.service-support-footer p {
  font-size: 0.9rem;
  color: rgb(var(--primary-color) / 0.7);
  margin: 0;
}

/* Responsive Design for Service Support Tab */
@media (max-width: 1024px) {
  .service-support-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .service-support-header h1 {
    font-size: 2rem;
  }

  .service-support-header p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .service-support-tab {
    padding: 20px 15px;
  }

  .service-support-header {
    margin-bottom: 30px;
  }

  .service-support-header h1 {
    font-size: 1.8rem;
  }

  .service-support-header p {
    font-size: 0.95rem;
  }

  .service-support-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .support-card-header {
    padding: 20px 20px 12px;
  }

  .support-card-header h2 {
    font-size: 1.3rem;
  }

  .support-card-body {
    padding: 20px;
  }

  .support-card-body li {
    font-size: 0.9rem;
    gap: 10px;
  }

  .contact-method {
    padding: 12px;
    gap: 10px;
  }

  .action-btn {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .service-support-tab {
    padding: 15px 10px;
  }

  .service-support-header {
    margin-bottom: 25px;
  }

  .service-support-header h1 {
    font-size: 1.6rem;
  }

  .service-support-header p {
    font-size: 0.9rem;
  }

  .support-card-header {
    padding: 15px 15px 10px;
  }

  .support-card-header h2 {
    font-size: 1.2rem;
  }

  .support-card-body {
    padding: 15px;
  }

  .support-card-body li {
    font-size: 0.85rem;
    gap: 8px;
  }

  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
  }

  .contact-method .material-symbols-outlined {
    font-size: 1.3rem;
  }

  .action-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .service-support-footer p {
    font-size: 0.8rem;
  }
}

/* --- END SERVICE SUPPORT TAB --- */

/* --- TOAST MESSAGE --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  border: 1px solid rgba(var(--primary-color) / 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: rgb(var(--primary-color));
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 400px;
  word-wrap: break-word;
  position: relative;
  overflow: hidden;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.toast.error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.toast.info {
  border-color: rgb(var(--primary-color));
  background: rgba(var(--primary-color) / 0.1);
}

.toast.warning {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}

/* Timeout ribbon animation */
.toast .timeout-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, rgb(var(--primary-color)), rgba(var(--primary-color), 0.3));
  animation: timeout-fill 5s linear forwards;
}

@keyframes timeout-fill {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

.toast .close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: rgb(var(--primary-color) / 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.toast .close-btn:hover {
  background: rgba(var(--primary-color) / 0.1);
  color: rgb(var(--primary-color));
}

/* Responsive toast */
@media (max-width: 480px) {
  .toast-container {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
  }

  .toast {
    max-width: none;
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}

/* --- END TOAST MESSAGE --- */

/* --- END ABOUT TAB --- */

/* --- LOADING OVERLAY --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loading-container {
  text-align: center;
  color: rgb(255 255 255);
  animation: loadingFadeIn 0.8s ease-out;
}

@keyframes loadingFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.loading-logo {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo-animation {
  width: 120px;
  height: 120px;
  filter: contrast(0.5) brightness(3.5);
}

.logo-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-color), 0.15) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.logo-loading-dots {
  display: flex;
  gap: 6px;
  margin-top: 15px;
}

.logo-loading-dots span {
  width: 6px;
  height: 6px;
  background: rgb(255 255 255);
  border-radius: 50%;
  animation: logoDotPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(var(--blur-bg-color), 0.5);
}

.logo-loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.logo-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.logo-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes logoDotPulse {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.loading-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgb(255 255 255);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.loading-dots {
  display: inline-flex;
  gap: 8px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: rgb(var(--primary-color));
  border-radius: 50%;
  animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingDot {

  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}


/* --- USER INPUT --- */

.input-wrapper {
  width: 95%;
  display: flex;
  align-items: center;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  justify-content: space-between;
  border-radius: 10px;
  overflow: hidden;
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
}

.input-wrapper #user-input {
  width: 100%;
  outline: none;
  padding: clamp(0.75rem, 3vw, 0.9375rem) 140px clamp(0.9375rem, 4vw, 1.25rem) clamp(0.9375rem, 4vw, 1.25rem);
  font-size: clamp(0.875rem, 4vw, 1rem);
  resize: vertical;
  min-height: clamp(3.75rem, 15vw, 4.6875rem);
  border: none;
  background: transparent;
}

.input-wrapper .input-btn-wrapper {
  position: absolute;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
}

.input-wrapper .input-btn-wrapper span {
  cursor: pointer;
  border: 2px solid rgb(var(--primary-color));
  color: rgb(var(--primary-color));
  padding: 7px;
  border-radius: 25%;
}

.input-wrapper .input-btn-wrapper span.active {
  background: rgb(var(--primary-color));
  color: rgb(var(--blur-bg-color));
}

.input-wrapper .input-btn-wrapper i {
  cursor: pointer;
  margin: 0 10px;
  font-size: 1.25rem;
  color: rgb(var(--primary-color) / 70%);
  display: grid;
  place-items: center;
}

i#send-btn {
  font-size: clamp(1rem, 4vw, 1.125rem);
  background-color: rgb(var(--primary-color) / 90%);
  color: rgb(var(--blur-bg-color));
  padding: clamp(0.5rem, 2vw, 0.625rem) clamp(0.75rem, 3vw, 0.9375rem);
  border-radius: 5px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* --- RIGHT ASIDE TAB --- */

/* Desktop: right aside fixed width */
aside:nth-child(2) {
  font-size: .9rem;
}

.right-aside-tab {
  width: 250px;
  background: rgba(var(--blur-bg-color) / var(--blur--bg--opacity));
  backdrop-filter: var(--blur-effect);
  margin: 20px;
  padding: 10px 0;
  border-radius: 10px;
  flex-shrink: 0;
  transition: width 0.3s ease;
  position: relative;
}

.right-aside-tab.collapsed {
  width: 50px;
}

.right-aside-tab.bare-act-library {
  height: calc(100vh - 70px);
  overflow-y: scroll;
}

.right-aside-tab.bare-act-library .search-bareAct {
  position: relative;
  border: 1px solid transparent;
  border-radius: 7px;
  width: 25px;
  height: 25px;
  overflow: hidden;
}

.right-aside-tab.bare-act-library .search-bareAct input[type="text"] {
  border: none;
  background: transparent;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 25px 0 5px;
}

.right-aside-tab.bare-act-library .search-bareAct label {
  position: absolute;
  right: 0;
  cursor: pointer;
}

.right-aside-tab.bare-act-library .search-bareAct label input[type="checkbox"] {
  display: none;
}

.right-aside-tab.bare-act-library .search-bareAct:has(input[type="checkbox"]:checked) {
  width: 200px;
  height: 30px;
  border: 1px solid #000;
}

.right-aside-tab ul li.active {
  position: relative;

}

.right-aside-tab li.active::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: rgb(var(--primary-color) / 70%);
  border-radius: 50%;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
}

.right-aside-tab.collapsed li.active {
  background: rgba(var(--primary-color) / 0.2);
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(var(--primary-color), 0.3);
}

.right-aside-tab h4 {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  margin-bottom: 5px;
  transition: opacity 0.3s ease;

  i {
    cursor: pointer;
  }
}

.right-aside-tab.collapsed h4 {
  opacity: 0;
}

.right-aside-tab ul {
  width: 100%;
  padding: 0 15px;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.right-aside-tab.collapsed ul {
  opacity: 0;
  pointer-events: none;
}

.right-aside-tab ul li {
  list-style: none;
  border-bottom: 1px solid rgb(0 0 0 / 10%);
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.right-aside-tab ul li.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.right-aside-tab ul li.locked:hover {
  background-color: transparent;
  cursor: not-allowed;
}

.right-aside-tab ul li.unlocked {
  cursor: pointer;
}

.right-aside-tab ul li .lock-icon {
  font-size: 1rem;
  color: rgb(var(--primary-color) / 0.6);
  flex-shrink: 0;
}

.right-aside-tab ul li:last-child {
  border-bottom: none;
}

.right-aside-tab ul li:hover {
  cursor: pointer;
}

.right-aside-tab ul li span {
  text-decoration: none;
  color: rgb(var(--primary-color) / 70%);
  font-size: 0.875rem;
  display: block;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.right-aside-tab.collapsed ul li span {
  opacity: 0;
}

.right-aside-tab.collapsed ul li span.short-name {
  opacity: 1;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  color: rgb(var(--primary-color));
}

.right-aside-tab.files-manager p {
  background-color: rgb(0 0 0 / 70%);
  color: rgb(255 255 255 / 70%);
  padding: 10px;
  margin: 0 15px;
  border-radius: 5px;
  font-size: 0.75rem;
  max-height: 0;
  /* start hidden */
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.right-aside-tab.files-manager p.show {
  max-height: 30vh;
  opacity: 1;
}

/* --- FOOTER ---  */
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgb(var(--primary-color) / 70%);
  color: rgb(var(--blur-bg-color));
  text-align: center;
  padding: 10px 0;
}

footer a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: rgb(var(--primary-color) / 70%);
  font-size: 1.25rem;
  cursor: pointer;
  margin-right: 10px;
}

/* --- RESPONSIVE DESIGN: Desktop-first, add styles for smaller screens --- */

/* Tablet: up to 1023px - row layout with mobile menu */
@media (max-width: 1024px) {
  .container {
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .container aside.nav {
    display: flex;
    position: fixed;
    left: -100%;
    z-index: 1000;
    transition: left 0.3s ease;
    width: 250px;
    height: 100vh;
    flex-shrink: 0;
  }

  .container aside.nav .close-nav .material-symbols-outlined {
    color: rgb(var(--blur-bg-color));
    position: absolute;
    top: 15px;
    right: 15px;
    display: block;
    cursor: pointer;
  }

  .container aside.nav.open {
    left: 0;
  }

  .main-content {
    flex-direction: row;
    height: 100vh;
  }

  .tab-content-wrapper {
    flex: 1;
  }

  .right-aside-tab {
    width: 200px;
    margin: 15px;
    flex-shrink: 0;
    transition: width 0.3s ease;
  }

  .right-aside-tab.collapsed {
    width: 50px;
  }

  /* Show mobile menu on tablets */
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile: up to 767px - column layout */
@media (max-width: 768px) {
  .tab-content-wrapper .tab-content .conversation-tab #messages li:last-child {
    margin-bottom: 70px;
  }

  .input-wrapper {
    bottom: 0;
  }

  .container {
    flex-direction: column;
    min-height: 100vh;
    max-width: none;
    margin: 0;
    justify-content: flex-start;
  }

  aside:nth-child(2) {
    font-size: .9rem;
    padding: 10px;
    margin-bottom: 50px;
  }

  .container aside.nav {
    position: fixed;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .container aside.nav .close-nav .material-symbols-outlined {
    display: block;
  }

  .container aside.nav.open {
    left: 0;
  }

  .main-content {
    flex-direction: column;
    height: auto;
    order: -1;
    flex: none;
  }

  .tab-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .right-aside-tab {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 10px 0;
    flex-shrink: 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Consolidated styles for exams-questions-tab */
  .exams-questions-tab {
    padding: 1.125rem;
  }

  .exam-header h1 {
    font-size: 1.125rem;
  }

  .exam-block h2 {
    font-size: 1rem;
  }

  .manage-folder-tab {
    backdrop-filter: blur(15px) !important;
  }

  .block-cover {
    flex-direction: column;
  }

  .manage-folder-tab textarea {
    max-height: 30px !important;
  }

  /* .user-script-preview {
    display: none;
  } */

  /* Consolidated styles for create-headings-tab */
  .create-headings-tab {
    padding: 1.125rem;
  }

  .create-headings-tab-output h2 {
    font-size: 1.125rem;
  }

  .manage-folder-tab {
    padding: 1.125rem;
  }

  .tab-heading h2 {
    font-size: 1.125rem;
  }

  .manage-folder-tab-drop textarea {
    height: 7.5rem;
    max-height: 8.75rem;
  }

  .generated-script {
    min-height: 8.75rem;
    max-height: 11.25rem;
  }

  .about-content {
    flex-direction: column;
  }


  .developer-intro {
    flex-direction: column;
    text-align: left;
    gap: 15px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(to right,
        transparent 0%,
        transparent 15%,
        rgb(var(--blur-bg-color) / 30%) 15%,
        rgb(var(--blur-bg-color) / 30%) 85%,
        transparent 85%,
        transparent 100%) 1;
  }

  .developer-intro img {
    width: 100px;
    height: 100px;
    margin-bottom: 0;
  }

  .developer-details h5 {
    font-size: 1rem;
  }

  .project-details {
    border-top-right-radius: 0;
    border-bottom-left-radius: 10px;
  }


  .project-details h3 {
    font-size: 1rem;
  }

  /* Settings responsive styles */
  .settings-container {
    margin: 10px;
    max-width: none;
  }

  .settings-section {
    padding: 15px;
  }

  .settings-section h2 {
    font-size: 1.2rem;
  }

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .setting-control {
    width: 100%;
    justify-content: flex-end;
  }

  .slider-container {
    min-width: auto;
    width: 100%;
  }

  .font-size-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .select-container select {
    width: 100%;
  }

  .theme-preview {
    width: 80px;
    height: 50px;
  }

  .settings-tab {
    margin: 10px;
    height: calc(100vh - 200px);
  }

}

/* Small mobile adjustments within mobile media query */
@media (max-width: 425px) {
  .logo {
    padding: 15px;
  }

  .logo img {
    width: 60px;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .logo p {
    font-size: 0.5rem;
  }

  .container aside.nav ul li {
    padding: 12px 15px;
  }

  .container aside.nav ul li span {
    font-size: 1rem;
  }

  .user-profile {
    padding: 8px 15px;
  }

  .user-profile::after {
    left: 38px;
  }

  .user-profile img {
    width: 35px;
    height: 35px;
  }

  .user-profile .user-info h4 {
    font-size: 0.875rem;
  }

  .tab-content-wrapper .content-header {
    margin: 8px;
    padding: 8px;
  }

  .tab-content-wrapper .content-header .info h4 {
    font-size: 1rem;
  }

  .tab-content-wrapper .content-header .info p {
    font-size: 0.75rem;
  }

  .tab-content-wrapper .tab-content .conversation-tab #messages {
    padding: 10px;
  }

  .tab-content-wrapper .tab-content .conversation-tab #messages div {
    padding: 8px 12px;
    font-size: 0.8125rem;
    max-width: 85%;
  }

  .input-wrapper {
    width: 95%;
    margin: 8px auto;
    padding: 12px 120px 15px 15px;
  }

  .input-wrapper #user-input {
    padding: 12px 0px 12px 0px;
    font-size: 0.875rem;
  }

  .input-wrapper .input-btn-wrapper i {
    margin: 0 8px;
  }

  i#send-btn {
    padding: 8px 12px;
  }

  .right-aside-tab {
    width: 100%;
    margin: 8px 0;
    padding: 8px 0;
  }

  .right-aside-tab h4 {
    padding: 0 12px;
    font-size: 0.8125rem;
  }

  .right-aside-tab ul li span {
    font-size: 0.8125rem;
    padding: 6px 0;
  }

  footer p {
    font-size: 0.75rem;
  }

  .tab-content-wrapper .tab-content .conversation-tab {
    height: 77vh;
  }

  .container aside:last-child {
    /* width: calc(100% - 20px);
    margin: 10px; */
    margin-bottom: 30px;
  }

  .tab-content-wrapper .content-header .info h4 {
    font-size: 18px;
  }

  .tab-content-wrapper .tab-content .conversation-tab #messages div {
    max-width: 80%;
  }

  footer {
    padding: 5px 0;
  }

  .manage-folder-tab-controls {
    display: flex;
    justify-content: space-between;
  }

  .manage-folder-tab-controls button {
    font-size: 0.6875rem;
    margin-right: 0;
  }

  /* Consolidated styles for exams-questions-tab */
  .exams-questions-tab {
    font-size: 0.875rem;
    padding: 0.9375rem;
  }

  .exams-questions-tab .new-block {
    background-color: #fff;
    padding: 7px;
    margin: 7px 0;
    border-radius: 7px;
  }

  /* Consolidated styles for create-headings-tab */
  .create-headings-tab {
    font-size: 0.875rem;
    padding: 0.9375rem;
  }

  .manage-folder-tab {
    font-size: 0.875rem;
    padding: 0.9375rem;
  }

  /* About tab responsive styles */
  .about-tab {
    font-size: 0.875rem;
    padding: 0.9375rem;
  }

  .about-card h4 {
    font-size: 1.125rem;
  }


  .manage-folder-tab-drop textarea {
    height: 6.25rem;
    max-height: 7.5rem;
  }

  .generated-script {
    min-height: 7.5rem;
    max-height: 9.375rem;
  }

  .manage-folder-tab-drop h3 {
    font-size: 1rem;
  }

  .tab-heading h2 {
    font-size: 1.25rem;
  }

  .user-script-preview .title .os-for-script {
    display: flex;
  }

  .user-script-preview .title .os-for-script span svg {
    width: 50px;
    height: 50px;
  }

  /* About tab small mobile styles */
  .about-tab {
    padding: 0.75rem;
  }

  .about-card h4 {
    font-size: 1rem;
  }

  .developer-intro img {
    width: 70px;
    height: 70px;
  }

  .developer-details h5 {
    font-size: 0.9375rem;
  }

  .project-details h3 {
    font-size: 0.9375rem;
  }
}