/* ============================================
   MOJE REZERVACIJE - Client Reservation Lookup
   ============================================ */

.my-reservations-page {
  position: relative;
  min-height: 100vh;
  padding: 140px 20px 80px;
  overflow: hidden;
}

/* Background Orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #25549C, transparent 70%);
  top: -100px;
  right: -150px;
  animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #1a3a6e, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* Wrapper */
.reservations-wrapper {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(37, 84, 156, 0.15);
  border: 1px solid rgba(37, 84, 156, 0.3);
  margin-bottom: 20px;
}

.header-icon svg {
  width: 28px;
  height: 28px;
  color: #25549C;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  color: #F4F4F4;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #5E5E5E;
  margin: 0;
  font-weight: 300;
}

/* Search Card */
.search-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(20px);
  margin-bottom: 40px;
}

.lookup-form {
  width: 100%;
}

.input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #5E5E5E;
  pointer-events: none;
  transition: color 0.3s ease;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #F4F4F4;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
  color: rgba(94, 94, 94, 0.8);
}

.input-wrapper input:focus {
  border-color: rgba(37, 84, 156, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 84, 156, 0.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #25549C;
}

.lookup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #25549C 0%, rgba(37, 84, 156, 0.85) 100%);
  border: 1px solid #25549C;
  border-radius: 10px;
  color: #F4F4F4;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lookup-btn svg {
  width: 18px;
  height: 18px;
}

.lookup-btn:hover {
  box-shadow: 0 8px 24px rgba(37, 84, 156, 0.3);
  transform: translateY(-1px);
}

.lookup-btn:active {
  transform: translateY(0);
}

.lookup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
}

.loader {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(37, 84, 156, 0.2);
  border-top-color: #25549C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #5E5E5E;
  margin: 0;
}

/* Results Section */
.results-section {
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  margin-bottom: 20px;
}

.results-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #5E5E5E;
  margin: 0;
}

.results-title span {
  color: #F4F4F4;
  font-weight: 500;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Reservation Card */
.reservation-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s ease;
  animation: fadeUp 0.4s ease backwards;
}

.reservation-card:hover {
  border-color: rgba(37, 84, 156, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.reservation-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.reservation-date-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(37, 84, 156, 0.12);
  border: 1px solid rgba(37, 84, 156, 0.25);
  border-radius: 12px;
}

.date-icon-day {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #F4F4F4;
  line-height: 1;
}

.date-icon-month {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #25549C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-details-primary {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #F4F4F4;
}

.date-details-secondary {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #5E5E5E;
  font-weight: 300;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.status-pending {
  background: rgba(255, 193, 7, 0.12);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.status-badge.status-pending::before {
  background: #FFC107;
}

.status-badge.status-confirmed {
  background: rgba(76, 175, 80, 0.12);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.status-badge.status-confirmed::before {
  background: #4CAF50;
}

.status-badge.status-cancelled {
  background: rgba(244, 67, 54, 0.12);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.25);
}

.status-badge.status-cancelled::before {
  background: #F44336;
}

.status-badge.status-completed {
  background: rgba(96, 125, 160, 0.12);
  color: #8aa8c7;
  border: 1px solid rgba(96, 125, 160, 0.25);
}

.status-badge.status-completed::before {
  background: #8aa8c7;
}

.status-badge.status-no_show {
  background: rgba(156, 39, 176, 0.12);
  color: #CE93D8;
  border: 1px solid rgba(156, 39, 176, 0.25);
}

.status-badge.status-no_show::before {
  background: #CE93D8;
}

/* Card Body */
.reservation-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.card-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-info-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #5E5E5E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-info-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #F4F4F4;
}

/* Tables Tags */
.tables-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(37, 84, 156, 0.12);
  border: 1px solid rgba(37, 84, 156, 0.25);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #7aa3d4;
}

/* Card Footer */
.reservation-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-created {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #5E5E5E;
  font-weight: 300;
}

.cancel-reservation-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.25);
  border-radius: 8px;
  color: #F44336;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-reservation-btn svg {
  width: 14px;
  height: 14px;
}

.cancel-reservation-btn:hover {
  background: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.4);
}

/* Notes Section */
.card-notes {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.card-notes-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #5E5E5E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-notes-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(244, 244, 244, 0.7);
  font-weight: 300;
  line-height: 1.5;
}

/* Empty & Error States */
.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  animation: fadeUp 0.4s ease;
}

.empty-state svg,
.error-state svg {
  width: 56px;
  height: 56px;
  color: #5E5E5E;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3,
.error-state h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #F4F4F4;
  margin: 0 0 8px;
}

.empty-state p,
.error-state p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #5E5E5E;
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
}

.error-state svg {
  color: #F44336;
  opacity: 0.7;
}

/* Cancel Modal */
.cancel-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cancel-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cancel-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(244, 67, 54, 0.1);
  margin-bottom: 16px;
}

.cancel-modal-icon svg {
  width: 28px;
  height: 28px;
  color: #F44336;
}

.cancel-modal h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #F4F4F4;
  margin: 0 0 8px;
}

.cancel-modal p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #5E5E5E;
  margin: 0 0 24px;
  line-height: 1.5;
}

.cancel-modal-actions {
  display: flex;
  gap: 12px;
}

.cancel-modal-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cancel-modal-no {
  background: rgba(255, 255, 255, 0.08);
  color: #F4F4F4;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cancel-modal-no:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cancel-modal-yes {
  background: rgba(244, 67, 54, 0.15);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.cancel-modal-yes:hover {
  background: rgba(244, 67, 54, 0.25);
}

/* Toast Notification */
.reservation-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  z-index: 2000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  max-width: 90%;
  white-space: nowrap;
}

.reservation-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reservation-toast.toast-success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

.reservation-toast.toast-error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #F44336;
}

/* Responsive */
@media (max-width: 600px) {
  .my-reservations-page {
    padding: 120px 16px 60px;
  }

  .input-group {
    flex-direction: column;
  }

  .lookup-btn {
    justify-content: center;
  }

  .search-card {
    padding: 20px;
  }

  .reservation-card {
    padding: 18px;
  }

  .reservation-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .reservation-card-body {
    grid-template-columns: 1fr 1fr;
  }

  .cancel-modal-actions {
    flex-direction: column-reverse;
  }

  .reservation-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
