/* =============================================================================
   Day Nakshatra Page Styles – Enhanced UI v17
   frontend/static/css/day_nakshatra/day_nakshatra.css
   
   Mobile-first + Desktop clean design
   Inspired by no-ads page design with brand consistency
   ============================================================================= */

/* Container & Layout */
.dn-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px;
}

.dn-wrapper.sacred-bg {
  background: linear-gradient(135deg, #fdf6ff 0%, #f3eaff 100%);
  border-radius: 16px;
  margin: 8px auto 16px;
}

/* ---- Header Card ---- */
.dn-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin: 4px 0 10px;
  text-align: center;
  padding: 10px 14px 6px;
}

.dn-title {
  font-size: 1rem;
  font-weight: 700;
  color: #7b2cbf;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dn-title::after {
  content: '';
  display: block;
  height: 2px;
  width: 50px;
  background: linear-gradient(90deg, #ffd54a 0%, #ffd54a 100%);
  border-radius: 2px;
  margin: 0 auto;
  opacity: 0.9;
}

.dn-subtitle {
  font-size: 0.75rem;
  color: #6b5c7b;
  margin: 0;
  text-align: center;
}

.dn-disclaimer {
  font-size: 0.68rem;
  color: #6b5c7b;
  margin: 0;
  background: rgba(123,44,191,0.06);
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid #7b2cbf;
  line-height: 1.45;
}

/* ---- Controls Section ---- */
.dn-controls {
  background: linear-gradient(135deg, #f8f4fc 0%, #f3eaff 100%);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(123,44,191,0.1);
  box-shadow: 0 1px 6px rgba(123,44,191,0.06);
}

/* Date Row */
.dn-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dn-nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(123,44,191,0.15);
  color: #7b2cbf;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(123,44,191,0.1);
  padding: 0;
  padding-bottom: 2px; /* optical centering for arrow character */
}

.dn-nav-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(123,44,191,0.25);
}

.dn-nav-btn:focus {
  background: rgba(123,44,191,0.15) !important;
  color: #7b2cbf !important;
  outline: none;
  box-shadow: 0 2px 8px rgba(123,44,191,0.1) !important;
  transform: none !important;
}

.dn-nav-btn:focus-visible {
  outline: 2px solid #7b2cbf;
  outline-offset: 2px;
}

.dn-nav-btn:active {
  background: rgba(123,44,191,0.25) !important;
  color: #7b2cbf !important;
  transform: scale(0.95) !important;
  box-shadow: none !important;
}

.dn-nav-btn.disabled,
.dn-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f0eff0;
  color: #aaa;
  box-shadow: none;
}

.dn-nav-btn.disabled:hover,
.dn-nav-btn:disabled:hover {
  transform: none;
  background: #f0eff0;
}

.dn-date-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(123,44,191,0.15);
  border-radius: 24px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(123,44,191,0.08);
}

.dn-date-input {
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: #7b2cbf;
  cursor: pointer;
  font-family: inherit;
  width: auto;
  min-width: 100px;
  padding: 0;
}

.dn-date-input:focus {
  outline: none;
}

.dn-today-badge {
  background: #7b2cbf;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  display: none;
}

.dn-today-badge.visible {
  display: inline-block;
}

/* Activity Row */
.dn-activity-row {
  margin-bottom: 10px;
}

.dn-activity-label {
  display: block;
  font-size: 0.68rem;
  color: #6b5c7b;
  margin-bottom: 4px;
  font-weight: 500;
}

.dn-activity-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(123,44,191,0.2);
  border-radius: 10px;
  background: #fff;
  color: #4b2c5e;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dn-activity-select:focus {
  outline: none;
  border-color: #7b2cbf;
  box-shadow: 0 0 0 2px rgba(123,44,191,0.1);
}

/* Location Row (styled like Marriage Muhurtham) */
.dn-location-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.dn-city-badge {
  font-size: 0.65rem;
  color: #7b2cbf;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}

.dn-city-badge .emoji {
  font-size: 0.6rem;
}

.dn-tz-separator {
  color: #aaa;
  margin: 0 2px;
}

.dn-timezone {
  color: #6b5c7b;
  font-weight: 500;
}

.dn-change-loc-btn {
  background: #f8f4fc;
  border: 1px solid rgba(123,44,191,0.15);
  color: #7b2cbf;
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 500;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 10px;
  transition: all 0.2s;
}

.dn-change-loc-btn:hover {
  background: #7b2cbf;
  color: #fff;
  border-color: transparent;
}

/* ---- Summary Strip ---- */
.dn-summary-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(123,44,191,0.1);
  box-shadow: 0 1px 6px rgba(123,44,191,0.06);
}

.dn-summary-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.dn-summary-item:not(:last-child)::after {
  content: '·';
  color: #bbb;
  margin: 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.dn-summary-icon {
  font-size: 0.8rem;
}

.dn-summary-label {
  font-size: 0.62rem;
  font-weight: 600;
}

.dn-summary-count {
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 12px;
}

.dn-summary-item.dn-good .dn-summary-label,
.dn-summary-item.dn-good .dn-summary-count { color: #1e8e3e; }
.dn-summary-item.dn-neutral .dn-summary-label,
.dn-summary-item.dn-neutral .dn-summary-count { color: #f9a825; }
.dn-summary-item.dn-avoid .dn-summary-label,
.dn-summary-item.dn-avoid .dn-summary-count { color: #d93025; }

/* ---- Results Area ---- */
.dn-results {
  margin-bottom: 14px;
}

/* Skeleton Loading */
.dn-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 641px) {
  .dn-skeleton-grid {
    gap: 12px;
  }
}

.dn-skeleton-card {
  background: #f5f0fa;
  border-radius: 12px;
  padding: 16px;
  animation: dn-pulse 1.5s ease-in-out infinite;
}

.dn-skeleton-line {
  height: 12px;
  background: #e8e0f0;
  border-radius: 6px;
  margin-bottom: 8px;
}

.dn-skeleton-line.short {
  width: 60%;
}

.dn-skeleton-badge {
  height: 24px;
  width: 70px;
  background: #e8e0f0;
  border-radius: 12px;
  margin-top: 8px;
}

@keyframes dn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Cards Grid (All Mode) - 2 columns on mobile (2x6), 2 columns on tablet+ */
.dn-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* Tablet/Desktop: slightly larger gap */
@media (min-width: 641px) {
  .dn-cards-grid {
    gap: 10px;
  }
}

/* Activity Card */
.dn-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(123,44,191,0.25);
  box-shadow: 0 1px 6px rgba(123,44,191,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(123,44,191,0.15);
  border-color: #7b2cbf;
}

.dn-card-header {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 6px;
}

.dn-card-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.dn-card-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #7b2cbf;
  line-height: 1.25;
  /* Title wrapping: max 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dn-card-verdict {
  margin-bottom: 4px;
}

.dn-verdict-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.dn-verdict-badge.good {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b5e20;
  border: none;
}

.dn-verdict-badge.neutral {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #e65100;
  border: none;
}

.dn-verdict-badge.avoid {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #b71c1c;
  border: none;
}

.dn-card-reason {
  font-size: 0.62rem;
  color: #6b5c7b;
  line-height: 1.3;
  margin-bottom: 4px;
  flex: 1;
  /* Hide reason on mobile for cleaner 2x6 grid */
  display: none;
}

@media (min-width: 480px) {
  .dn-card-reason {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.dn-card-action {
  text-align: right;
  margin-top: auto;
}

.dn-details-btn {
  background: rgba(123,44,191,0.15);
  border: none;
  color: #7b2cbf;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s;
}

.dn-details-btn::after {
  content: '→';
  font-size: 0.75rem;
}

.dn-details-btn:hover {
  background: #7b2cbf;
  color: #fff;
}

/* Single View */
.dn-single-view {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(123,44,191,0.1);
  box-shadow: 0 2px 12px rgba(123,44,191,0.1);
}

.dn-single-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dn-single-icon {
  font-size: 2rem;
}

.dn-single-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7b2cbf;
}

.dn-single-verdict {
  text-align: center;
  margin-bottom: 16px;
}

.dn-single-verdict .dn-verdict-badge {
  font-size: 1rem;
  padding: 10px 24px;
}

.dn-single-reason {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.45;
}

.dn-single-panchangam {
  background: linear-gradient(135deg, #fdf6ff 0%, #f3eaff 100%);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.82rem;
}

.dn-single-panchangam-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(123,44,191,0.1);
}

.dn-single-panchangam-row:last-child {
  border-bottom: none;
}

.dn-single-panchangam-label {
  color: #6b5c7b;
}

.dn-single-panchangam-value {
  font-weight: 600;
  color: #4b2c5e;
}

/* View All Row */
.dn-view-all-row {
  text-align: center;
  margin-bottom: 14px;
}

.dn-view-all-btn {
  background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(123,44,191,0.2);
}

.dn-view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123,44,191,0.35);
}

/* ---- Actions Card ---- */
.dn-actions-card {
  margin-top: 16px;
}

.dn-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dn-btn-group .btn-primary-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #7b2cbf 0%, #9c4dcc 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dn-btn-group .btn-primary-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123,44,191,0.3);
}

.dn-btn-group .btn-back {
  display: block;
  text-align: center;
  background: #f5f0fa;
  color: #7b2cbf;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e8e0f0;
}

.dn-btn-group .btn-back:hover {
  background: #ede5f4;
}

/* ---- Modal Styles ---- */
.dn-modal-overlay,
.dn-loc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(75, 44, 94, 0.4);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.dn-modal-overlay.active,
.dn-loc-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dn-modal,
.dn-loc-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #fff 0%, #faf7fc 100%);
  border-radius: 24px 24px 0 0;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -4px 20px rgba(123,44,191,0.15);
}

.dn-modal.active,
.dn-loc-modal.active {
  transform: translateY(0);
}

.dn-modal-handle {
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, #d0c0e0 0%, #7b2cbf 50%, #d0c0e0 100%);
  border-radius: 2px;
  margin: 10px auto;
}

.dn-modal-header,
.dn-loc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(123,44,191,0.1);
}

.dn-modal-title,
.dn-loc-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #7b2cbf;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dn-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: linear-gradient(135deg, #f8f4fc 0%, #f0e8f6 100%);
  border-radius: 50%;
  font-size: 1rem;
  color: #7b2cbf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dn-modal-close:hover {
  background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
  color: #fff;
}

/* Modal Date Row (chip below header) */
.dn-modal-date-row {
  padding: 8px 18px 10px;
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
}

.dn-modal-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(123,44,191,0.2);
}

.dn-modal-date-chip .emoji {
  font-size: 0.85rem;
}

.dn-modal-body,
.dn-loc-modal-body {
  padding: 18px;
}

.dn-modal-verdict {
  text-align: center;
  margin-bottom: 16px;
}

.dn-modal-verdict .dn-verdict-badge {
  font-size: 1.1rem;
  padding: 10px 26px;
}

.dn-modal-reason {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.45;
}

/* =============================================================================
   Time Windows Section (Modal)
   ============================================================================= */

.dn-modal-times {
  background: linear-gradient(135deg, #fdfcfe 0%, #f9f7fb 100%);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ebe4f0;
}

.dn-times-section {
  margin-bottom: 12px;
}

.dn-times-section:last-child {
  margin-bottom: 0;
}

.dn-times-title {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e0d8e8;
  letter-spacing: 0.02em;
}

.dn-times-good .dn-times-title {
  color: #2d7a3d;
}

.dn-times-avoid .dn-times-title {
  color: #a83240;
}

.dn-times-special .dn-times-title {
  color: #9a7b2c;
}

.dn-times-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dn-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  min-height: 32px;
  flex-wrap: wrap;
  gap: 4px;
}

/* Subtle tinted backgrounds for each type */
.dn-times-good .dn-time-row {
  background: linear-gradient(90deg, #e8f5e9 0%, #f1f8f2 100%);
  border-left: 3px solid #4caf50;
}

.dn-times-avoid .dn-time-row {
  background: linear-gradient(90deg, #ffebee 0%, #fff5f5 100%);
  border-left: 3px solid #e57373;
}

.dn-times-special .dn-time-row {
  background: linear-gradient(90deg, #fff8e1 0%, #fffbf0 100%);
  border-left: 3px solid #ffb300;
}

.dn-time-label {
  color: #333;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dn-time-range {
  color: #555;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255,255,255,0.7);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 400px) {
  .dn-modal-times {
    padding: 10px;
  }
  
  .dn-time-row {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .dn-time-label {
    font-size: 0.73rem;
  }
  
  .dn-time-range {
    font-size: 0.68rem;
    padding: 2px 5px;
  }
  
  .dn-times-title {
    font-size: 0.72rem;
  }
}

/* Panchangam Box (always visible, with title on top) */
.dn-modal-panchangam-box {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fdf6ff 0%, #f3eaff 100%);
  border-radius: 12px;
  padding: 14px;
  gap: 10px;
}

.dn-panchangam-title {
  font-weight: 700;
  color: #7b2cbf;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(123,44,191,0.12);
}

.dn-panchangam-title .emoji {
  font-size: 0.9rem;
}

.dn-modal-panchangam {
  flex: 1;
}

.dn-panchangam-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(123,44,191,0.08);
  font-size: 0.82rem;
}

.dn-panchangam-row:last-child {
  border-bottom: none;
}

.dn-panchangam-label {
  color: #6b5c7b;
}

.dn-panchangam-value {
  font-weight: 600;
  color: #7b2cbf;
}

.dn-modal-footer,
.dn-loc-modal-footer {
  padding: 14px 18px 28px;
  text-align: center;
}

.dn-modal-close-btn,
.dn-loc-close-btn {
  background: linear-gradient(135deg, #f8f4fc 0%, #f0e8f6 100%);
  color: #7b2cbf;
  border: 1px solid rgba(123,44,191,0.15);
  padding: 11px 32px;
  border-radius: 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dn-modal-close-btn:hover,
.dn-loc-close-btn:hover {
  background: linear-gradient(135deg, #7b2cbf 0%, #9d4edd 100%);
  color: #fff;
  border-color: transparent;
}

/* Location Modal Specific */
.dn-loc-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
}

.dn-loc-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9rem;
  border: 1px solid #e8e0f0;
  border-radius: 10px;
  font-family: inherit;
}

.dn-loc-input:focus {
  outline: none;
  border-color: #7b2cbf;
}

.dn-loc-error {
  color: #c62828;
  font-size: 0.75rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dn-loc-hint {
  margin-top: 12px;
  font-size: 0.72rem;
  color: #888;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Google Places Autocomplete dropdown - must appear above modal */
.pac-container {
  z-index: 1100 !important;
}

/* ---- AI Disclaimer (left-aligned) ---- */
.ai-disclaimer {
  font-size: 0.68rem;
  color: #888;
  text-align: left;
  padding: 10px;
  background: rgba(123,44,191,0.03);
  border-radius: 8px;
  margin-top: 12px;
}

/* ---- Breadcrumb ---- */
.breadcrumb-nav.micro {
  font-size: 0.7rem;
  margin-bottom: 12px;
  color: #888;
}

.breadcrumb-nav.micro a {
  color: #7b2cbf;
  text-decoration: none;
}

.breadcrumb-nav.micro a:hover {
  text-decoration: underline;
}

.breadcrumb-nav.micro .sep {
  margin: 0 6px;
  color: #ccc;
}

/* ---- Desktop Adjustments ---- */
@media (min-width: 768px) {
  .dn-header {
    padding: 24px 30px;
  }
  
  .dn-title {
    font-size: 1.4rem;
  }
  
  .dn-subtitle {
    font-size: 1rem;
  }
  
  .dn-controls {
    padding: 18px 24px;
  }
  
  .dn-activity-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .dn-activity-label {
    margin-bottom: 0;
    white-space: nowrap;
  }
  
  .dn-activity-select {
    flex: 1;
    max-width: 300px;
  }
  
  .dn-modal,
  .dn-loc-modal {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
  }
  
  .dn-modal.active,
  .dn-loc-modal.active {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
    visibility: visible;
  }
}

/* =============================================================================
   Monthly Calendar View
   ============================================================================= */

.dn-month-view {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(123,44,191,0.1);
  box-shadow: 0 1px 6px rgba(123,44,191,0.06);
  overflow: hidden;
  max-width: 100%;
}

.dn-month-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* Month navigation arrows - purple style */
.dn-month-nav-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(123,44,191,0.15);
  color: #7b2cbf;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dn-month-nav-btn:hover:not(.disabled) {
  background: #7b2cbf;
  color: #fff;
}

.dn-month-nav-btn:focus {
  background: rgba(123,44,191,0.15) !important;
  color: #7b2cbf !important;
  outline: none;
  transform: none !important;
}

.dn-month-nav-btn:focus-visible {
  outline: 2px solid #7b2cbf;
  outline-offset: 2px;
}

.dn-month-nav-btn:active {
  background: rgba(123,44,191,0.25) !important;
  color: #7b2cbf !important;
  transform: scale(0.95) !important;
}

.dn-month-nav-btn.disabled,
.dn-month-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f5f5f5;
  color: #aaa;
  border-color: #ddd;
}

.dn-month-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7b2cbf;
  min-width: 120px;
  text-align: center;
}

.dn-month-legend {\n  display: none; /* Removed per user request - legend not needed */\n}

.dn-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
}

.dn-legend-icon {
  font-size: 0.85rem;
}

.dn-legend-label {
  font-weight: 500;
}

.dn-legend-good .dn-legend-label { color: #2e7d32; }
.dn-legend-neutral .dn-legend-label { color: #e65100; }
.dn-legend-avoid .dn-legend-label { color: #c62828; }

.dn-month-hint {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 12px;
}

/* Calendar Grid */
.dn-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.dn-calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
  padding: 4px 2px;
  min-height: 36px;
}

.dn-calendar-day:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(123,44,191,0.15);
}

.dn-calendar-day.dn-day-good {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #1b5e20;
  border-color: transparent;
}

.dn-calendar-day.dn-day-neutral {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #e65100;
  border-color: transparent;
}

.dn-calendar-day.dn-day-avoid {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #b71c1c;
  border-color: transparent;
}

.dn-calendar-day.dn-day-empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.dn-calendar-day.dn-day-today {
  position: relative;
}

.dn-calendar-day.dn-day-today::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #7b2cbf;
  border-radius: 50%;
}

/* Past dates - grayed out and not clickable */
.dn-calendar-day.dn-day-past {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  background: #f0f0f0 !important;
  border-color: #ddd !important;
}

.dn-calendar-day.dn-day-past .dn-day-date {
  color: #999;
}

.dn-calendar-day .dn-day-date {
  font-size: 0.75rem;
  line-height: 1.2;
}

.dn-calendar-day .dn-day-icon {
  font-size: 0.55rem;
  margin-top: 2px;
  line-height: 1;
}

/* Weekday headers (styled like Marriage Muhurtham) */
.dn-calendar-weekday {
  font-size: 0.58rem;
  font-weight: 700;
  color: #7b2cbf;
  text-align: center;
  padding: 4px 2px;
  background: #f8f4fc;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Activity label above calendar */
.dn-month-activity-label {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.dn-month-activity-label .activity-name {
  color: #7b2cbf;
  font-weight: 600;
}

/* Responsive adjustments for calendar */
@media (min-width: 480px) {
  .dn-calendar-day {
    font-size: 0.85rem;
    min-height: 44px;
  }
  
  .dn-calendar-day .dn-day-date {
    font-size: 0.8rem;
  }
  
  .dn-calendar-day .dn-day-icon {
    font-size: 0.6rem;
  }
  
  .dn-calendar-weekday {
    font-size: 0.65rem;
  }
}

@media (min-width: 641px) {
  .dn-month-title {
    font-size: 1.1rem;
    min-width: 180px;
  }
  
  .dn-calendar-grid {
    gap: 6px;
  }
  
  .dn-calendar-day {
    min-height: 48px;
    border-radius: 10px;
  }
  
  .dn-calendar-weekday {
    font-size: 0.7rem;
  }
}
