/* Reset and Base Styles */
.time-converter-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* .time-converter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: #333 !important;
  background-color: #f8f9fa !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
} */

.time-converter-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    color: #333 !important;
    background-color: #63d3c7 !important;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Dark Mode Styles */
.time-converter-container.dark-mode {
  background-color: #bfcfe5!important;
/*   color: #e6e6e6 !important; */
	color: black !important;
}



/* .dark-mode .converter-card,
.dark-mode .time-card,
.dark-mode .time-difference-card,
.dark-mode .quick-ref-card,
.dark-mode .meeting-result-card,
.dark-mode .world-clock-card,
.dark-mode .content-card,
.dark-mode .challenge-card,
.dark-mode .info-box {
  background-color: #16213e !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
} */

.dark-mode .converter-card, .dark-mode .time-card, .dark-mode .time-difference-card, .dark-mode .quick-ref-card, .dark-mode .meeting-result-card, .dark-mode .world-clock-card, .dark-mode .content-card, .dark-mode .challenge-card, .dark-mode .info-box {
    background-color: #bbc7e5 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

.dark-mode .tab-btn {
  background-color: #16213e !important;
  color: #e6e6e6 !important;
}

.dark-mode .tab-btn.active {
  background-color: #0f3460 !important;
  color: #ffffff !important;
}

.dark-mode input,
.dark-mode select {
  background-color: #0f3460 !important;
  color: #e6e6e6 !important;
  border-color: #1e5f74 !important;
}

.dark-mode .calculate-btn,
.dark-mode .swap-btn {
  background-color: #1e5f74 !important;
  color: #e6e6e6 !important;
}

.dark-mode .time-card-header,
.dark-mode .meeting-form label,
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4 {
  color: #e6e6e6 !important;
}

/* Main Container Styles */
/* .converter-card {
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  padding: 25px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
} */

.converter-card {
    background-color: #beebe8 !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.converter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.clock-icon {
  width: 24px;
  height: 24px;
  color: white !important;
}

/* .tool-title {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 0 !important;
} */

.tool-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    text-transform: uppercase;
}

/* Theme Toggle Switch */
.theme-toggle {
  position: relative;
}

.theme-switch {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 50px;
  height: 26px;
  background: #ebebeb !important;
  border-radius: 100px;
  position: relative;
  transition: background-color 0.2s;
}

.theme-switch-label:before {
  content: "";
  position: absolute;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 45px;
  transition: 0.2s;
  background: #fff !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2) !important;
}

.theme-switch:checked + .theme-switch-label {
  background: #4facfe !important;
}

.theme-switch:checked + .theme-switch-label:before {
  transform: translateX(24px);
}

/* Tabs Styles */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f1f3f5 !important;
}

.tab-btn {
  flex: 1;
  padding: 0px 15px;
  background-color: #f1f3f5 !important;
  border: none;
  cursor: pointer;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #555 !important;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: #4facfe !important;
  color: white !important;
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Time Inputs Styles */
.time-inputs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.time-input-group {
  flex: 1;
}

.time-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500 !important;
  color: #555 !important;
}

.time-input-container {
  display: flex;
  gap: 10px;
}

.time-input-container input,
.time-input-container select {
  padding: 12px 15px;
  border: 1px solid #ddd !important;
  border-radius: 8px;
  font-size: 16px !important;
  width: 100%;
  transition: all 0.3s ease;
}

.time-input-container input:focus,
.time-input-container select:focus {
  outline: none;
  border-color: #4facfe !important;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2) !important;
}

.swap-btn-container {
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.swap-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3) !important;
}

.swap-btn svg {
  width: 20px;
  height: 20px;
  color: white !important;
}

.swap-btn:hover {
  transform: scale(1.1);
}

/* Time Details Styles */
.time-details {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.time-card {
  flex: 1;
  background-color: #f8f9fa !important;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
}

.time-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.time-card-header {
  padding: 15px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  color: white !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-card-header h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

.timezone-abbr {
  font-weight: 700 !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  padding: 3px 8px;
  border-radius: 4px;
}

.time-card-body {
  padding: 20px;
  text-align: center;
}

.current-time {
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 5px;
  color: #333 !important;
}

.date {
  font-size: 16px !important;
  color: #666 !important;
  margin-bottom: 15px;
}

.location, .utc-offset {
  font-size: 14px !important;
  color: #888 !important;
  margin-bottom: 5px;
}

/* Time Difference Styles */
.time-difference-container {
  margin-bottom: 25px;
}

.time-difference-card {
  background-color: #f8f9fa !important;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.time-difference-card h3 {
  margin-bottom: 10px !important;
  font-size: 18px !important;
  color: #333 !important;
}

.time-difference {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #4facfe !important;
  padding: 10px;
  border-radius: 8px;
  background-color: rgba(79, 172, 254, 0.1) !important;
  display: inline-block;
}

/* Quick Reference Styles */
.quick-reference {
  margin-top: 30px;
}

.quick-reference h3 {
  margin-bottom: 15px !important;
  font-size: 20px !important;
  color: #333 !important;
}

.quick-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.quick-ref-card {
  background-color: #f8f9fa !important;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
}

.quick-ref-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.quick-ref-time {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

.quick-ref-label {
  font-size: 14px !important;
  color: #666 !important;
  margin-bottom: 5px;
}

.quick-ref-arrow {
  font-size: 20px !important;
  color: #4facfe !important;
  margin: 5px 0;
}

.quick-ref-note {
  font-size: 12px !important;
  color: #ff6b6b !important;
  margin-top: 5px;
  font-weight: 500 !important;
}

/* Meeting Planner Styles */
.meeting-planner {
  padding: 10px;
}

.meeting-planner h3 {
  margin-bottom: 20px !important;
  font-size: 20px !important;
  color: #333 !important;
}

.meeting-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500 !important;
  color: #555 !important;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd !important;
  border-radius: 8px;
  font-size: 16px !important;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4facfe !important;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2) !important;
}

.calculate-btn {
  grid-column: 1 / -1;
  padding: 1px 20px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  color: white !important;
  border: none;
  border-radius: 8px;
  font-size: 16px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.3) !important;
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(79, 172, 254, 0.4) !important;
}

.meeting-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.meeting-result-card {
  background-color: #f8f9fa !important;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.meeting-result-card h4 {
  margin-bottom: 10px !important;
  font-size: 18px !important;
  color: #333 !important;
}

.working-hours-warning {
  display: none;
  background-color: #fff3cd !important;
  color: #856404 !important;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-icon {
  width: 24px;
  height: 24px;
  color: #856404 !important;
}

/* World Clock Styles */
.world-clock-container {
  padding: 10px;
}

.world-clock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.world-clock-header h3 {
  font-size: 20px !important;
  color: #333 !important;
  margin: 0 !important;
}

.refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn svg {
  width: 20px;
  height: 20px;
  color: white !important;
}

.refresh-btn:hover {
  transform: rotate(30deg);
}

.world-clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.world-clock-card {
  background-color: #f8f9fa !important;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
}

.world-clock-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.world-clock-city {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 10px;
}

.world-clock-time {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #4facfe !important;
  margin-bottom: 5px;
}

.world-clock-date {
  font-size: 14px !important;
  color: #666 !important;
}

/* Supportive Content Styles */
.supportive-content {
  margin-top: 40px;
}

.content-card {
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  padding: 30px;
  transition: all 0.3s ease;
}

.content-card h2 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin-bottom: 25px !important;
  text-align: center;
}

.content-section {
  margin-bottom: 40px;
}

.content-section h3 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 15px !important;
  position: relative;
  padding-bottom: 10px;
}

.content-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  border-radius: 3px;
}

.content-section p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin-bottom: 15px !important;
}

.info-box {
  display: flex;
  background-color: #e6f7ff !important;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
}

.info-icon {
  margin-right: 15px;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  color: #4facfe !important;
}

.info-content h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 10px !important;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.challenge-card {
  background-color: #f8f9fa !important;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
}

.challenge-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.challenge-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.challenge-icon svg {
  width: 20px;
  height: 20px;
  color: white !important;
}

.challenge-card h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 10px !important;
}

.challenge-card p {
  font-size: 15px !important;
  color: #666 !important;
  line-height: 1.5 !important;
}

.tips-list {
  list-style: none;
  margin-top: 20px;
}

.tips-list li {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.tip-number {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-weight: 700 !important;
  margin-right: 15px;
  flex-shrink: 0;
}

.tip-content {
  flex: 1;
}

.tip-content h4 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 8px !important;
}

.tip-content p {
  font-size: 15px !important;
  color: #666 !important;
  line-height: 1.5 !important;
}

/* ≤ 992px – large tablets / small desktops */
@media (max-width: 992px) {
  .time-converter-container {
    padding: 16px;
  }
  .converter-card {
    padding: 20px;
    margin-bottom: 24px;
  }
  .converter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .logo, .clock-icon {
    width: 32px;
    height: 32px;
  }
  .tool-title {
    font-size: 20px;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tab-btn {
    flex: 1 1 50%;
    padding: 8px;
    font-size: 14px;
  }
  .time-inputs {
    flex-direction: column;
    gap: 12px;
  }
  .time-input-container input,
  .time-input-container select {
    padding: 10px;
    font-size: 14px;
  }
  .swap-btn {
    width: 36px;
    height: 36px;
  }
  .time-details {
    flex-direction: column;
    gap: 16px;
  }
  .time-card {
    margin-bottom: 16px;
  }
  .time-card-header h3 {
    font-size: 16px;
  }
  .current-time {
    font-size: 24px;
  }
  .time-difference-card {
    padding: 16px;
  }
  .time-difference {
    font-size: 18px;
  }
  .quick-reference-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
  .quick-ref-card {
    padding: 12px;
  }
  .meeting-form {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  .calculate-btn {
    padding: 10px;
  }
  .meeting-result-card {
    padding: 16px;
  }
  .world-clock-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  .world-clock-card {
    padding: 12px;
  }
  .content-card {
    padding: 20px;
  }
  .content-section h3 {
    font-size: 20px;
  }
  .info-box {
    flex-direction: column;
    gap: 12px;
  }
  .challenge-card,
  .tips-list li {
    padding: 16px;
  }
}

/* ≤ 768px – portrait tablets / large phones */
@media (max-width: 768px) {
  .time-converter-container {
    padding: 14px;
  }
  .converter-card {
    padding: 16px;
    margin-bottom: 20px;
  }
  .converter-header {
    gap: 8px;
  }
  .tool-title {
    font-size: 18px;
  }
  .tab-btn {
    flex: 1 1 100%;
    padding: 6px;
    font-size: 13px;
  }
  .time-inputs,
  .time-details {
    gap: 10px;
  }
  .time-input-container input,
  .time-input-container select {
    padding: 8px;
    font-size: 13px;
  }
  .swap-btn {
    width: 32px;
    height: 32px;
  }
  .current-time {
    font-size: 22px;
  }
  .time-difference {
    font-size: 16px;
  }
  .quick-reference-grid,
  .world-clock-grid,
  .meeting-results {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .meeting-form {
    grid-template-columns: 1fr;
  }
  .content-grid,
  .challenges-grid {
    grid-template-columns: 1fr;
  }
}

/* ≤ 600px – large phones */
@media (max-width: 600px) {
  .time-converter-container {
    padding: 12px;
  }
  .converter-card {
    padding: 14px;
    margin-bottom: 16px;
  }
  .tool-title {
    font-size: 16px;
  }
  .tab-btn {
    font-size: 12px;
    padding: 4px;
  }
  .time-inputs,
  .time-details {
    flex-direction: column;
    gap: 8px;
  }
  .time-input-container input,
  .time-input-container select {
    padding: 6px;
    font-size: 12px;
  }
  .swap-btn {
    width: 28px;
    height: 28px;
  }
  .current-time {
    font-size: 20px;
  }
  .time-difference {
    font-size: 14px;
  }
  .quick-reference-grid,
  .world-clock-grid,
  .meeting-results {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .challenge-card,
  .tips-list li {
    padding: 12px;
  }
}

/* ≤ 400px – small phones */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }
  .time-converter-container {
    padding: 10px;
  }
  .converter-card {
    padding: 12px;
    margin-bottom: 12px;
  }
  .tool-title {
    font-size: 14px;
  }
  .tab-btn {
    font-size: 11px;
    padding: 3px;
  }
  .time-inputs,
  .time-details {
    gap: 6px;
  }
  .time-input-container input,
  .time-input-container select {
    padding: 4px;
    font-size: 11px;
  }
  .swap-btn {
    width: 24px;
    height: 24px;
  }
  .current-time {
    font-size: 18px;
  }
  .time-difference {
    font-size: 12px;
  }
  .quick-reference-grid,
  .world-clock-grid,
  .meeting-results,
  .challenges-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .challenge-card,
  .tips-list li {
    padding: 10px;
  }
}