.az-time-wrapper {
  width: 100%;
  max-width: auto;
  margin: 0 auto;
}

.az-time-container {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #6d2932, #c74b50, #e86a33, #6d2932);
  background-attachment: fixed;
  padding: 20px;
  color: #f5f5dc; /* Beige/Off-white text */
  position: relative;
  overflow-x: hidden;
  border-radius: 20px;
}

.az-time-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
}

.az-time-container > * {
  position: relative;
  z-index: 1;
}

/* Main Time Display */
.az-time-main-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.az-time-current-time {
  text-align: center;
  backdrop-filter: blur(20px);
  background: rgba(40, 20, 10, 0.2); /* Brownish tint */
  border-radius: 25px;
  padding: 40px;
  border: 1px solid rgba(245, 245, 220, 0.15); /* Beige border */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  min-width: 350px;
  transition: all 0.3s ease;
}

.az-time-current-time:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.az-time-digital-clock {
  font-family: "Poppins", monospace;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.az-time-separator {
  animation: az-time-blink 1s infinite;
}

.az-time-am-pm {
  font-size: 0.6em;
  margin-left: 10px;
  opacity: 0.8;
}

.az-time-date-display {
  margin-bottom: 15px;
}

.az-time-day-name {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: #40e0d0; /* Turquoise Accent */
}

.az-time-date {
  font-size: 1.1rem;
  opacity: 0.9;
}

.az-time-timezone-info {
  font-size: 0.95rem;
  opacity: 0.8;
}

.az-time-tz-name {
  display: block;
  margin-bottom: 5px;
}

.az-time-tz-offset {
  background: rgba(245, 245, 220, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* Analog Clock */
.az-time-analog-wrapper {
}

.az-time-analog-clock {
  width: 300px;
  height: 300px;
  display: block;
}

.az-time-clock-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(40, 20, 10, 0.2); /* Brownish tint */
  backdrop-filter: blur(20px);
  border: 3px solid rgba(245, 245, 220, 0.2);
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Clock Numbers */
.az-time-hour-numbers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  font-weight: 600;
}

.az-time-hour-number {
  position: absolute;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  top: 50%;
  left: 50%;
  margin: -15px;
}

.az-time-hour-number.n1 {
  transform: rotate(30deg) translate(0, -125px) rotate(-30deg);
}
.az-time-hour-number.n2 {
  transform: rotate(60deg) translate(0, -125px) rotate(-60deg);
}
.az-time-hour-number.n3 {
  transform: rotate(90deg) translate(0, -125px) rotate(-90deg);
  color: #40e0d0;
  font-size: 1.5rem;
}
.az-time-hour-number.n4 {
  transform: rotate(120deg) translate(0, -125px) rotate(-120deg);
}
.az-time-hour-number.n5 {
  transform: rotate(150deg) translate(0, -125px) rotate(-150deg);
}
.az-time-hour-number.n6 {
  transform: rotate(180deg) translate(0, -125px) rotate(-180deg);
  color: #40e0d0;
  font-size: 1.5rem;
}
.az-time-hour-number.n7 {
  transform: rotate(210deg) translate(0, -125px) rotate(-210deg);
}
.az-time-hour-number.n8 {
  transform: rotate(240deg) translate(0, -125px) rotate(-240deg);
}
.az-time-hour-number.n9 {
  transform: rotate(270deg) translate(0, -125px) rotate(-270deg);
  color: #40e0d0;
  font-size: 1.5rem;
}
.az-time-hour-number.n10 {
  transform: rotate(300deg) translate(0, -125px) rotate(-300deg);
}
.az-time-hour-number.n11 {
  transform: rotate(330deg) translate(0, -125px) rotate(-330deg);
}
.az-time-hour-number.n12 {
  transform: rotate(0deg) translate(0, -125px) rotate(0deg);
  color: #40e0d0;
  font-size: 1.5rem;
}

/* Clock Hands */
.az-time-hour-hand,
.az-time-minute-hand,
.az-time-second-hand {
  position: absolute;
  background: #f5f5dc;
  border-radius: 5px;
  transform-origin: bottom center;
  left: 50%;
  bottom: 50%;
}

.az-time-hour-hand {
  width: 6px;
  height: 65px;
  margin-left: -3px;
  background: #40e0d0; /* Turquoise Accent */
  z-index: 3;
}
.az-time-minute-hand {
  width: 4px;
  height: 95px;
  margin-left: -2px;
  z-index: 2;
}
.az-time-second-hand {
  width: 2px;
  height: 105px;
  margin-left: -1px;
  background: #ff4500; /* Fiery Orange */
  z-index: 4;
}
.az-time-center-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ff4500; /* Fiery Orange */
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  border: 2px solid #f5f5dc;
}

/* Controls */
.az-time-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.az-time-toggle-group {
  display: flex;
  background: rgba(40, 20, 10, 0.2);
  border-radius: 15px;
  padding: 5px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 245, 220, 0.1);
}

.az-time-btn {
  background: transparent;
  border: none;
  color: #f5f5dc;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.az-time-btn:hover {
  background: rgba(245, 245, 220, 0.1);
  transform: translateY(-2px);
}
.az-time-btn.az-time-active {
  background: rgba(245, 245, 220, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* World Clock Section */
.az-time-cities-section {
  margin-bottom: 40px;
}

.az-time-section-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  color: #40e0d0; /* Turquoise Accent */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.az-time-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.az-time-city-card {
  background: rgba(40, 20, 10, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(245, 245, 220, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.az-time-city-card:hover {
  transform: translateY(-8px);
  background: rgba(40, 20, 10, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.az-time-city-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #40e0d0; /* Turquoise Accent */
}
.az-time-city-time {
  font-family: "Poppins", monospace;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.az-time-city-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Sun Info Section */
.az-time-sun-section {
  margin-bottom: 40px;
}
.az-time-sun-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.az-time-sun-item {
  background: rgba(40, 20, 10, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(245, 245, 220, 0.1);
  text-align: center;
  min-width: 180px;
  transition: all 0.3s ease;
}
.az-time-sun-item:hover {
  transform: translateY(-5px);
  background: rgba(40, 20, 10, 0.3);
}
.az-time-sun-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}
.az-time-sun-label {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 5px;
}
.az-time-sun-time {
  font-size: 1.3rem;
  font-weight: 600;
  color: #40e0d0; /* Turquoise Accent */
}

/* Converter Section */
.az-time-converter-section {
  margin-bottom: 40px;
}
.az-time-converter {
  background: rgba(40, 20, 10, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 30px;
  border: 1px solid rgba(245, 245, 220, 0.1);
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}
.az-time-converter-buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.az-time-convert-btn,
.az-time-reset-btn {
  background: rgba(245, 245, 220, 0.05);
  border: 1px solid rgba(245, 245, 220, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 12px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: #f5f5dc;
  cursor: pointer;
}
.az-time-convert-btn:hover,
.az-time-reset-btn:hover {
  background: rgba(245, 245, 220, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.az-time-converter-result {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 20px;
}
.az-time-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #40e0d0; /* Turquoise Accent */
}
.az-time-input,
.az-time-select {
  width: 95%;
  padding: 12px 15px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: #f5f5dc;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 245, 220, 0.2);
  transition: all 0.3s ease;
}
.az-time-input:focus,
.az-time-select:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 20px rgba(245, 245, 220, 0.1);
}
.az-time-input::placeholder {
  color: rgba(245, 245, 220, 0.6);
}
.az-time-result-label {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #40e0d0; /* Turquoise Accent */
}
.az-time-result-time {
  font-family: "Poppins", monospace;
  font-size: 2rem;
  font-weight: 600;
}

/* Theme Section */
.az-time-theme-section {
  margin-bottom: 40px;
}
.az-time-theme-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.az-time-theme-btn {
  padding: 15px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #f5f5dc;
}
.az-time-theme-btn[data-theme="canyon-sunset"] {
  background: linear-gradient(45deg, #c74b50, #e86a33);
}
.az-time-theme-btn[data-theme="desert-night"] {
  background: linear-gradient(45deg, #232526, #414345);
}
.az-time-theme-btn[data-theme="turquoise-sky"] {
  background: linear-gradient(45deg, #00c9ff, #92fe9d);
}
.az-time-theme-btn[data-theme="cactus-green"] {
  background: linear-gradient(45deg, #8ba888, #405740);
}
.az-time-theme-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.az-time-theme-btn.az-time-theme-active {
  transform: scale(1.05);
  filter: brightness(1.2);
}

@keyframes az-time-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

/* Theme Variations */
.az-time-container.az-time-theme-desert-night {
  background: linear-gradient(135deg, #141e30, #243b55, #141e30);
}
.az-time-container.az-time-theme-turquoise-sky {
  background: linear-gradient(135deg, #17a2b8, #007bff, #17a2b8);
}
.az-time-container.az-time-theme-cactus-green {
  background: linear-gradient(135deg, #f0e6d2, #d2b48c);
  color: #3d2b1f; /* Dark brown text */
}
.az-time-theme-cactus-green .az-time-city-name,
.az-time-theme-cactus-green .az-time-sun-time,
.az-time-theme-cactus-green .az-time-result-label,
.az-time-theme-cactus-green .az-time-day-name,
.az-time-theme-cactus-green .az-time-section-title,
.az-time-theme-cactus-green .az-time-label {
  color: #2e8b57; /* Sea Green */
}
.az-time-theme-cactus-green .az-time-input,
.az-time-theme-cactus-green .az-time-select {
  background: rgba(0, 0, 0, 0.05);
  color: #3d2b1f;
  border-color: rgba(0, 0, 0, 0.1);
}
.az-time-theme-cactus-green .az-time-btn {
  color: #3d2b1f;
}
.az-time-theme-cactus-green .az-time-btn.az-time-active {
  background: rgba(0, 0, 0, 0.1);
}
.az-time-theme-cactus-green .az-time-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.az-time-theme-cactus-green .az-time-hour-hand {
  background: #2e8b57;
}

/* View & Format States */
.az-time-view-digital .az-time-analog-wrapper {
  display: none;
}
.az-time-view-analog .az-time-current-time {
  display: none;
}
.az-time-format-24 .az-time-am-pm {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .az-time-main-display {
    gap: 30px;
  }
  .az-time-current-time {
    min-width: auto;
    width: 100%;
    padding: 25px 20px;
  }
  .az-time-analog-clock {
    width: 250px;
    height: 250px;
  }
  .az-time-hour-number {
    font-size: 1rem;
  }
  .az-time-hour-number.n3,
  .az-time-hour-number.n6,
  .az-time-hour-number.n9,
  .az-time-hour-number.n12 {
    font-size: 1.2rem;
  }
  .az-time-hour-number.n1 {
    transform: rotate(30deg) translate(0, -105px) rotate(-30deg);
  }
  .az-time-hour-number.n2 {
    transform: rotate(60deg) translate(0, -105px) rotate(-60deg);
  }
  .az-time-hour-number.n3 {
    transform: rotate(90deg) translate(0, -105px) rotate(-90deg);
  }
  .az-time-hour-number.n4 {
    transform: rotate(120deg) translate(0, -105px) rotate(-120deg);
  }
  .az-time-hour-number.n5 {
    transform: rotate(150deg) translate(0, -105px) rotate(-150deg);
  }
  .az-time-hour-number.n6 {
    transform: rotate(180deg) translate(0, -105px) rotate(-180deg);
  }
  .az-time-hour-number.n7 {
    transform: rotate(210deg) translate(0, -105px) rotate(-210deg);
  }
  .az-time-hour-number.n8 {
    transform: rotate(240deg) translate(0, -105px) rotate(-240deg);
  }
  .az-time-hour-number.n9 {
    transform: rotate(270deg) translate(0, -105px) rotate(-270deg);
  }
  .az-time-hour-number.n10 {
    transform: rotate(300deg) translate(0, -105px) rotate(-300deg);
  }
  .az-time-hour-number.n11 {
    transform: rotate(330deg) translate(0, -105px) rotate(-330deg);
  }
  .az-time-hour-number.n12 {
    transform: rotate(0deg) translate(0, -105px) rotate(0deg);
  }

  .az-time-cities-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .az-time-converter {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}