/* ========================================
   DUA TIME CALCULATOR - MODERN REDESIGN
======================================== */

/* Base Layout */
#duaTimeCalculator {
  font-family: var(--main-font);
  background: transparent;
  min-height: 100vh;
  padding: var(--spacing-xl) var(--spacing-lg);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  margin-left: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Container */
.dua-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Page Header with Icon */
.dua-page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1rem 0;
}

.dua-header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(39, 76, 119, 0.25);
}

.dua-header-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.dua-header-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.dua-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color, #274c77);
  margin: 0;
  letter-spacing: -0.02em;
  font-family: var(--main-font);
}

.dua-page-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.dua-subtitle {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
  color: rgba(39, 76, 119, 0.7);
  font-weight: 400;
}

/* Content Grid */
.dua-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

/* Modern Cards */
.dua-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(39, 76, 119, 0.1);
  border: 1px solid rgba(39, 76, 119, 0.08);
  transition: all 0.3s ease;
}

.dua-card:hover {
  box-shadow: 0 8px 32px rgba(39, 76, 119, 0.15);
  transform: translateY(-2px);
}

/* Card Header */
.dua-card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dua-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dua-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.dua-card-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

/* Card Body */
.dua-card-body {
  padding: 1.5rem;
}

.dua-card-description {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: rgba(39, 76, 119, 0.7);
  line-height: 1.5;
}

/* Sections */
.dua-section {
  margin-bottom: 1.5rem;
}

.dua-section:last-child {
  margin-bottom: 0;
}

.dua-section-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Location Row */
.dua-location-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dua-separator {
  color: rgba(39, 76, 119, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
}

.dua-city-input-group {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

/* Modern Inputs */
.dua-input,
.dua-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(39, 76, 119, 0.12);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fafbfc;
  transition: all 0.2s ease;
  color: var(--primary-color);
  font-weight: 500;
  font-family: inherit;
}

.dua-input:focus,
.dua-select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 4px rgba(39, 76, 119, 0.08);
}

.dua-input:hover,
.dua-select:hover {
  border-color: rgba(39, 76, 119, 0.25);
}

.dua-input::placeholder {
  color: rgba(39, 76, 119, 0.4);
}

/* Input Groups */
.dua-input-group {
  flex: 1;
}

.dua-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Time Inputs Grid */
.dua-time-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.dua-input-time {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Custom Method Inputs */
.dua-custom-method {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(39, 76, 119, 0.15);
}

.dua-custom-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Modern Buttons */
.dua-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.dua-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dua-btn-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(39, 76, 119, 0.2);
}

.dua-btn-icon:hover {
  box-shadow: 0 4px 12px rgba(39, 76, 119, 0.3);
  transform: translateY(-1px);
}

.dua-btn-icon svg {
  stroke: white;
}

.dua-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(39, 76, 119, 0.2);
}

.dua-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(39, 76, 119, 0.3);
  transform: translateY(-1px);
}

.dua-btn-full {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(39, 76, 119, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dua-btn-full:hover {
  box-shadow: 0 6px 20px rgba(39, 76, 119, 0.3);
  transform: translateY(-2px);
}

.dua-btn-full svg {
  stroke: white;
}

/* Results Container */
.dua-results-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(39, 76, 119, 0.1);
}

.dua-results-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Results Grid */
.dua-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dua-result-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(39, 76, 119, 0.05);
}

.dua-result-item:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 76, 119, 0.08);
}

.dua-result-highlight {
  background: linear-gradient(135deg, rgba(39, 76, 119, 0.08) 0%, rgba(74, 144, 226, 0.08) 100%);
  border: 2px solid rgba(39, 76, 119, 0.15);
}

.dua-result-highlight:hover {
  background: linear-gradient(135deg, rgba(39, 76, 119, 0.12) 0%, rgba(74, 144, 226, 0.12) 100%);
}

.dua-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(39, 76, 119, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dua-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  font-variant-numeric: tabular-nums;
}

.dua-result-highlight .dua-result-value {
  color: var(--secondary-color);
}

/* Hide Custom Method by default */
#duaCustomMethod {
  display: none;
}

/* =======================================
   DUA TIME CALCULATOR RESPONSIVE
   ======================================= */

/* Desktop with Sidebar */
@media (min-width: 1245px) {
  #duaTimeCalculator {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }
}

/* Tablet */
@media (max-width: 1024px) {
  #duaTimeCalculator {
    margin-left: 0;
    width: 100%;
    padding: 1.5rem;
  }

  .dua-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .dua-page-header {
    margin-bottom: 2rem;
  }

  .dua-page-header h1 {
    font-size: 1.75rem;
  }
}

/* Large Tablet - Stack cards vertically */
@media (max-width: 1245px) {
  .dua-content-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Small Tablet */
@media (max-width: 768px) {
  #duaTimeCalculator {
    padding: 1rem;
  }

  .dua-content-grid {
    max-width: 100%;
  }

  .dua-page-header h1 {
    font-size: 1.5rem;
  }

  .dua-subtitle {
    font-size: 1rem;
  }

  .dua-header-icon {
    width: 56px;
    height: 56px;
  }

  .dua-card-header {
    padding: 1rem 1.25rem;
  }

  .dua-card-header h2 {
    font-size: 1rem;
  }

  .dua-card-body {
    padding: 1.25rem;
  }

  .dua-location-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dua-city-input-group {
    width: 100%;
  }

  .dua-separator {
    text-align: center;
  }

  .dua-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .dua-result-item {
    padding: 0.75rem;
  }

  .dua-result-value {
    font-size: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  #duaTimeCalculator {
    padding: 0.75rem;
  }

  .dua-page-header {
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
  }

  .dua-page-header h1 {
    font-size: 1.35rem;
  }

  .dua-subtitle {
    font-size: 0.9rem;
  }

  .dua-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .dua-header-icon svg {
    width: 24px;
    height: 24px;
  }

  .dua-card {
    border-radius: 12px;
  }

  .dua-card-header {
    padding: 1rem;
    gap: 0.75rem;
  }

  .dua-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .dua-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .dua-card-header h2 {
    font-size: 0.95rem;
  }

  .dua-card-body {
    padding: 1rem;
  }

  .dua-time-inputs,
  .dua-custom-inputs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dua-btn-icon .btn-text {
    display: none;
  }

  .dua-btn-icon {
    padding: 0.75rem;
  }

  .dua-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .dua-result-item {
    padding: 0.625rem;
  }

  .dua-result-icon {
    font-size: 1.25rem;
  }

  .dua-result-label {
    font-size: 0.65rem;
  }

  .dua-result-value {
    font-size: 1.1rem;
  }
}


/* Consolidated responsive - Dua Time */
@media (min-width: 1024px) and (max-width: 1244px) {
  /* === DUA TIME CALCULATOR === */
  #duaTimeCalculator {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
  }

  .dua-header h1 {
    font-size: 2rem;
  }
}
