/* Timezone Widget Styles - Green Theme */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@400;500;600&display=swap");

.timezone-widget-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: tzFadeIn 0.3s ease;
}

.timezone-widget-overlay.active {
  display: flex;
}

@keyframes tzFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.timezone-modal {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: tzSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tzSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Decorative corner accent - GREEN */
.timezone-modal::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  opacity: 0.08;
  border-radius: 0 24px 0 100%;
}

.tz-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.tz-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.tz-icon-wrapper svg {
  width: 36px;
  height: 36px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.tz-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px 0;
}

.tz-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  font-family: "DM Sans", sans-serif;
  margin: 0;
}

.tz-current {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  text-align: center;
}

.tz-current-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "DM Sans", sans-serif;
}

.tz-current-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
}

.tz-current-value svg {
  width: 20px;
  height: 20px;
  stroke: #10b981;
  fill: none;
  stroke-width: 2;
}

.tz-form-group {
  margin-bottom: 28px;
}

.tz-label {
  display: block;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  font-family: "DM Sans", sans-serif;
}

.tz-select-wrapper {
  position: relative;
}

.tz-select {
  width: 100%;
  padding: 16px 48px 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  color: #1e293b;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tz-select:hover {
  border-color: #cbd5e1;
}

.tz-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.tz-select-wrapper::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #64748b;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.tz-select:focus ~ .tz-select-wrapper::after {
  transform: translateY(-50%) rotate(180deg);
}

.tz-buttons {
  display: flex;
  gap: 12px;
}

.tz-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tz-btn-save {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.tz-btn-save::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.tz-btn-save:hover::before {
  left: 100%;
}

.tz-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.tz-btn-save:active {
  transform: translateY(0);
}

.tz-btn-cancel {
  background: #f8fafc;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.tz-btn-cancel:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.tz-success {
  display: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  animation: tzSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tzSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tz-success.active {
  display: block;
}

.tz-select optgroup {
  font-weight: 600;
  color: #10b981;
  font-size: 0.9rem;
}

.tz-select option {
  padding: 8px;
  color: #1e293b;
}

.tz-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.tz-close:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}

.tz-close svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  stroke-width: 2;
}

@media (max-width: 640px) {
  .timezone-modal {
    padding: 36px 28px;
  }

  .tz-title {
    font-size: 1.8rem;
  }

  .tz-buttons {
    flex-direction: column;
  }

  .tz-btn {
    width: 100%;
  }
}
