/* Dark mode – tüm sayfalar için erken yükle (FOUC önlenir) */
@import url('dark-mode.css');

/* Portal Badge (notification) styles for card top-right */
.portal-badge {
  position: absolute;
  top: 12px;
  right: 18px;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,77,79,0.12);
  z-index: 2;
  border: 2px solid #fff;
  pointer-events: none;
  transition: background 0.2s;
}

.portal-badge[style*="display: none"] {
  display: none !important;
}

/* Make sure the card is position:relative for badge placement */
.portal-card {
  position: relative;
}
/* Modern kart görünümü ve responsive ayarlar */
.portal-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.portal-card {
     height: 20vh;
    flex: 1 1 320px;
    max-width: 100vh;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;


}

.portal-card:hover {
  background-color: #d3ddf1;
  border: 1.5px solid #1677ff;
}

.portal-card__row {
  display: flex;
  align-items: flex-start;
  gap: 1em;
   font-size: 1rem;
  color: #bec4cf;

}

.portal-card__icon {
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.6em;
  background: #eef4ff;
  color: #1f4fd1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.portal-card__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.portal-card__title {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.portal-card__desc {
  font-size: 0.97rem;
  color: #6d7788;
  font-weight: 400;
  line-height: 1.3;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

@media (max-width: 600px) {
  .portal-cards {
    flex-direction: column;
    gap: 0.75em;
    justify-content: flex-start;
    align-items: stretch;
  }
  .portal-card {
    height: 10vh;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

}
@media (max-width: 576px) {
  .sonuclar-card {
    padding: 10px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(12, 15, 29, 0.06);
  }
  .sonuclar-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 0;
  }
  .sonuclar-header .sonuclar-chip {
    margin-top: 6px;
  }
  .sonuclar-controls {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }
  .sonuclar-controls label.form-label {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .form-select {
    font-size: 15px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    min-height: 44px;
  }
  .sonuclar-chip {
    font-size: 14px;
    padding: 6px 16px;
  }
}
/* --- Sonuclar filter UI styles for recetelerim.php --- */
.sonuclar-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(12, 15, 29, 0.08);
  padding: 20px;
}
.sonuclar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 4px;
}
.sonuclar-subtitle {
  color: #6c757d;
  margin: 0;
  font-size: 13px;
}
.sonuclar-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
  align-items: flex-end;
}
.sonuclar-controls .form-control,
.sonuclar-controls .form-select {
  border-radius: 10px;
}
.sonuclar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f4f9;
  color: #0d6efd;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
}
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-width='1.5' d='M2 0v4M0 2l2 2 2-2'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}
/* --- End sonuclar filter UI styles --- */
/* Mobil kartlı randevu görünümü */

#appointments-cards,
.appointments-slider {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

@media (max-width: 991px) {
  #appointments-cards,
  .appointments-slider {
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .appointment-card {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    scroll-snap-align: start;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .appointments-slider-hint { display: none !important; }
  .appointments-slider-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #1f4fd1;
    font-weight: 500;
    font-size: 1.05em;
    opacity: 0.85;
    animation: slider-hint-fade 2.5s infinite;
  }
  .slider-arrow {
    font-size: 1.5em;
    animation: slider-arrow-move 1.2s infinite alternate;
    display: inline-block;
  }
  @keyframes slider-arrow-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(18px); }
  }
  @keyframes slider-hint-fade {
    0%,100% { opacity: 0.85; }
    50% { opacity: 0.45; }
  }
}

.appointment-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(31, 79, 209, 0.08);
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.appointment-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.appointment-card__label {
  font-size: 0.95em;
  color: #6d7788;
  min-width: 90px;
}
.appointment-card__value {
  font-weight: 600;
  color: #1f4fd1;
  text-align: right;
}
.appointment-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.appointment-card__cancel {
  background: #fff0f0;
  color: #d32f2f;
  border: 1px solid #ffd6d6;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.appointment-card__cancel:hover {
  background: #ffd6d6;
  color: #b71c1c;
}
@media (max-width: 991px) {
  .table-responsive.d-md-block { display: none !important; }
  #appointments-cards,
  .appointments-slider {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .appointment-card {
    min-width: 85vw;
    max-width: 90vw;
    scroll-snap-align: start;
    margin-left: 8px;
    margin-right: 8px;
  }
  .appointments-slider-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
    color: #1f4fd1;
    font-weight: 500;
    font-size: 1.05em;
    opacity: 0.85;
    animation: slider-hint-fade 2.5s infinite;
  }
  .slider-arrow {
    font-size: 1.5em;
    animation: slider-arrow-move 1.2s infinite alternate;
    display: inline-block;
  }
  @keyframes slider-arrow-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(18px); }
  }
  @keyframes slider-hint-fade {
    0%,100% { opacity: 0.85; }
    50% { opacity: 0.45; }
  }
}
/* Hasta Portal */
.portal-body {
  background: #f2f5fb;
  color: #2c2c2c;
}

.portal-layout {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  width: 280px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 24px 18px 48px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}

.portal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f7;
}

.portal-brand__logo {
  display: block;
  width: 100%;
  text-align: center;
}

.portal-brand__logo img {
  max-width: 180px;
  max-height: 65px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.portal-brand__text {
  font-weight: 600;
  font-size: 1.05rem;
  color: #2f3a4a;
  line-height: 1.2;
}

.portal-menu__item--profile {
  margin-bottom: 12px;
}

.portal-profile-details {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-profile-details__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
}

.portal-profile-details__row span {
  color: #6d7788;
}

.portal-menu {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Hospital Info Styles */
.hospital-empty-state {
  background: #ffffff;
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(31, 79, 209, 0.08);
}

.hospital-empty-state__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: #d63031;
}

.hospital-empty-state h3 {
  color: #2c2c2c;
  margin-bottom: 10px;
}

.hospital-empty-state p {
  color: #6d7788;
  margin: 0;
}

.hospital-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.hospital-info-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(31, 79, 209, 0.09);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.hospital-info-card__map {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e6f0ff;
}

.hospital-info-card__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.hospital-info-card:hover .hospital-info-card__map iframe {
  filter: grayscale(0);
}

.hospital-info-card__map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hospital-info-card:hover .hospital-info-card__map-overlay {
  opacity: 1;
}

.hospital-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f4fd1;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hospital-map-link:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: #173cad;
}

.hospital-info-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hospital-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(31, 79, 209, 0.15);
  border-color: #1f4fd1;
}

.hospital-info-card__ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.4);
  z-index: 10;
  border: 2px solid #ffffff;
}

.hospital-info-card__header {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, #f7f9fd 0%, #e6f0ff 100%);
  border-bottom: 3px solid #1f4fd1;
}

.hospital-info-card__header h3 {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f4fd1;
  line-height: 1.3;
}

.hospital-info-card__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #6d7788;
  font-weight: 500;
}

.hospital-info-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hospital-info-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.hospital-info-section__title i {
  width: 24px;
  height: 24px;
  background: #e6f0ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f4fd1;
  font-size: 0.95rem;
}

.hospital-info-section__content {
  margin: 0;
  color: #4b5565;
  line-height: 1.6;
  padding-left: 34px;
}

.hospital-address-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #4b5565;
  transition: all 0.2s ease;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fd;
  margin-left: 22px;
}

.hospital-address-link:hover {
  background: #e6f0ff;
  color: #1f4fd1;
  transform: translateX(4px);
}

.hospital-address-link i {
  font-size: 0.85rem;
  margin-left: auto;
}

.hospital-info-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 34px;
}

.hospital-info-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f4fd1;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f7f9fd;
  width: fit-content;
}

.hospital-info-contact__link i {
  width: 18px;
  text-align: center;
}

.hospital-info-contact__link:hover {
  background: #e6f0ff;
  color: #173cad;
  transform: translateX(4px);
}

.hospital-info-card__footer {
  padding: 20px 24px;
  background: #f7f9fd;
  border-top: 1px solid #e6edff;
  display: flex;
  gap: 12px;
}

.hospital-info-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hospital-info-action--primary {
  background: linear-gradient(135deg, #1f4fd1 0%, #173cad 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 79, 209, 0.25);
}

.hospital-info-action--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 79, 209, 0.35);
  color: #ffffff;
}

.hospital-info-action--secondary {
  background: #ffffff;
  color: #1f4fd1;
  border-color: #1f4fd1;
}

.hospital-info-action--secondary:hover {
  background: #1f4fd1;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 79, 209, 0.25);
}

@media (max-width: 768px) {
  .hospital-info-grid {
    grid-template-columns: 1fr;
  }
  
  .hospital-info-card__footer {
    flex-direction: column;
  }
  
  .hospital-info-action {
    width: 100%;
  }
}



.portal-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #4b5565;
  background: transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.portal-menu__item i {
  width: 20px;
  text-align: center;
  color: #7b8798;
}

.portal-menu__item:hover {
  background: #f2f7ff;
  color: #1f4fd1;
}

.portal-menu__item.is-active {
  background: #e6f0ff;
  color: #1f4fd1;
  box-shadow: inset 0 0 0 1px rgba(31, 79, 209, 0.12);
}

.portal-menu__item.is-active i {
  color: #1f4fd1;
}

.portal-menu__coming-soon {
  margin-left: auto;
  background: #ff6b35;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 20px;
  line-height: 1.4;
  white-space: nowrap;
}

.portal-sidebar__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.portal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6c7a89;
  font-weight: 500;
}

.portal-content {
  flex: 1;
  padding: 32px 40px;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  cursor: pointer;
}

.portal-menu-toggle span {
  display: block;
  height: 2px;
  background: #1f4fd1;
  border-radius: 2px;
}

.portal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.portal-header h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.portal-subtitle {
  color: #6d7788;
  margin: 0;
}

.portal-pill {
 

  padding: 8px 14px;
  font-size: 0.9rem;
  color: #1f4fd1;

   border-radius: 30px;
  background: #e0e0e0;
  box-shadow: 15px 15px 30px #bebebe,
             -15px -15px 30px #ffffff;
}

.portal-section {
  margin-top: 10px;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Modern kart görünümü */
/* Daha soft ve hastane renklerine uygun kart */
.portal-card {
  border: none;
  background: linear-gradient(120deg, rgba(240,248,255,0.98) 0%, rgba(230,240,255,0.96) 100%);
  border-radius: 32px;
  padding: 32px 32px 26px 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 32px 0 rgba(31, 79, 209, 0.08), 0 1.5px 8px 0 rgba(31, 79, 209, 0.04);
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1), background 0.22s;
  cursor: pointer;
  min-height: 110px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(1.5px);
  border: 1.5px solid #e3eaf7;
}

.portal-card:hover {
  transform: scale(1.045) translateY(-8px);
  box-shadow: 0 32px 64px 0 rgba(31, 79, 209, 0.18), 0 4px 16px 0 rgba(31, 79, 209, 0.10);
  background: linear-gradient(120deg, rgba(230,240,255,0.99) 0%, rgba(240,248,255,1) 100%);
  border-color: #b3d0f7;
}

.portal-card__row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.portal-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e3f0ff 0%, #b3d0f7 100%);
  color: #1976d2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(31, 79, 209, 0.10);
}

.portal-card__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.portal-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #1976d2 0%, #67b6f4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: brightness(1.08);
}

.portal-card__desc {
  font-size: 1.04rem;
  color: #4b6a8a;
  font-weight: 400;
  line-height: 1.5;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  opacity: 0.96;
}



.portal-table-compact th,
.portal-table-compact td {
  padding: 0.45rem 0.6rem;
  vertical-align: middle;
  font-size: 0.9rem;
}

.portal-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.portal-modal.is-open {
  display: flex;
}

.portal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.portal-modal__content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  width: min(92vw, 360px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
}

.portal-modal__content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.portal-modal__content p {
  margin-bottom: 16px;
  color: #6d7788;
}

.portal-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.portal-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.portal-loader.is-active {
  display: flex;
}

.portal-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.portal-loader__content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 28px;
  text-align: center;
  width: min(88vw, 300px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.portal-loader__spinner {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid #e5e7eb;
  border-top-color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  animation: portal-spin 1s linear infinite;
  animation-fill-mode: both;
}

.portal-loader__spinner img,
.portal-loader__logo {
  width: 75px;
  height: 75px;
  object-fit: contain;
  animation: portal-spin-reverse 1s linear infinite !important;
  will-change: transform;
  position: relative;
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.portal-loader__text {
  font-weight: 600;
  color: #4b5565;
  animation: none;
}

.portal-loader__tip {
  font-size: 13px;
  color: #6c757d;
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  border-left: 3px solid #0d6efd;
  border-right: 3px solid #0d6efd;
  animation: fadeInLoader 0.5s ease-in;
  max-width: 300px;
  text-align: center;
}

@keyframes fadeInLoader {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portal-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes portal-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

.portal-placeholder__box {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 10px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991px) {
  .portal-layout {
    flex-direction: column;
  }

  .portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 270px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    z-index: 50;
    padding-bottom: 48px;
  }

  .portal-brand {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 16px;
  }

  .portal-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .portal-menu__item {
    padding: 10px 12px;
  }

  .portal-sidebar__footer {
    margin-top: auto;
    border-top: 1px solid #eef2f7;
    padding-top: 16px;
  }

  .portal-content {
    padding: 24px;
  }

  .portal-cards {
    grid-template-columns: 1fr;
  }

  .portal-menu-toggle {
    display: inline-flex;
  }

  body.portal-nav-open .portal-sidebar {
    transform: translateX(0);
  }

  body.portal-nav-open .portal-overlay {
    opacity: 1;
    visibility: visible;
  }

  .portal-card {
    padding: 20px 10px 14px 10px;
    min-height: 80px;
    border-radius: 22px;
  }
}

/* Tab Sistem Stilleri */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.tab-button {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-button:hover {
  color: #333;
}

.tab-button.active {
  color: #007bff;
  border-bottom-color: #007bff;
}

.tab-button i {
  font-size: 18px;
}

.tab-content {
  display: none;
  animation: fade-in 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Tab Buttons */
@media (max-width: 768px) {
  .tab-button {
    padding: 10px 15px;
    font-size: 14px;
  }

  .tab-button i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .tabs {
    gap: 8px;
    margin-bottom: 16px;
  }

  .tab-button {
    padding: 10px 12px;
    font-size: 13px;
    flex: 1;
  }

  .tab-button i {
    font-size: 14px;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-to-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Sayfa Geçişi Soft Slide Animasyonu */
.page-transition-soft {
  animation: softSlideInFromLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes softSlideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sayfa Geçişi Slide Animasyonu */
.login-container,
.register-container,
.cancel-container,
.booking-container {
  animation: softSlideInFromLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes softSlideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}