/* Time Calculator Specific Styles */

/* Override body for time calculator page */
body.time-calculator-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

/* Fixed Position Vertical Ads on Background */
.fixed-ad-left,
.fixed-ad-right {
  position: fixed;
  top: 100px;
  width: 160px;
  height: 600px;
  z-index: 1000;
  display: none;
}

.fixed-ad-left {
  left: 10px;
}

.fixed-ad-right {
  right: 10px;
}

.fixed-ad-left ins.adsbygoogle,
.fixed-ad-right ins.adsbygoogle {
  display: block !important;
  width: 160px !important;
  height: 600px !important;
  min-width: 160px !important;
  min-height: 600px !important;
}

/* Show fixed ads on large desktop screens */
@media (min-width: 1400px) {
  .fixed-ad-left,
  .fixed-ad-right {
    display: block !important;
  }

  .mobile-ad-container {
    display: none !important;
  }
}

/* Main content wrapper */
.main-content {
  display: block;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 10px;
  box-sizing: border-box;
}

/* Mobile ad containers */
.mobile-ad-container {
  display: none;
  margin: 20px auto;
  padding: 10px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-ad-container ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 100px;
}

body.time-calculator-page .container {
  grid-template-columns: 1fr !important;
  display: block !important;
  max-width: 1200px;
  width: 100%;
  margin: 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  flex: 1 1 auto;
  box-sizing: border-box;
}

/* Hide gradient background for time calculator */
body.time-calculator-page .container::before {
  display: none !important;
}

.time-calc-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 700;
}

.calculator-section {
  margin-bottom: 30px;
}

.time-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.number-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.time-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: border-color 0.3s;
}

.time-input-group:focus-within {
  border-color: #667eea;
}

.time-input-group input[type="number"] {
  border: none;
  outline: none;
  width: 60px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.time-input-group label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.preset-btn {
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
}

.preset-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.multiple-times-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.time-rows-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.time-rows-grid::-webkit-scrollbar {
  width: 8px;
}

.time-rows-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.time-rows-grid::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

.time-rows-grid::-webkit-scrollbar-thumb:hover {
  background: #5a6fd8;
}

.operation-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 12px;
  border: 2px solid #e9ecef;
}

.operation-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.operation-btn.active.add {
  background: #28a745;
  color: white;
}

.operation-btn.active.subtract {
  background: #dc3545;
  color: white;
}

.operation-btn:not(.active) {
  background: transparent;
  color: #666;
}

.operation-btn:not(.active):hover {
  background: #e9ecef;
}

.time-row.subtract {
  border-left: 4px solid #dc3545;
}

.time-row.add {
  border-left: 4px solid #28a745;
}

.total-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 35px;
  border-radius: 15px;
  text-align: center;
  flex: 0 0 380px;
  height: fit-content;
  align-self: flex-start;
  margin-top: 65px;
}

.total-section.negative {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.total-section.negative .total-time {
  color: #fff;
}

.total-section.negative .total-breakdown {
  color: rgba(255, 255, 255, 0.9);
}

.total-label {
  font-size: 1.4rem;
  margin-bottom: 15px;
  opacity: 0.9;
  font-weight: 600;
}

.total-time {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 20px 0;
}

.total-breakdown {
  margin-top: 20px;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.time-item.add {
  border-left: 4px solid #28a745;
}

.time-item.subtract {
  border-left: 4px solid #dc3545;
}

.time-item.subtract .time-display::before {
  content: "− ";
  color: #dc3545;
  font-weight: 600;
}

.time-item.add .time-display::before {
  content: "+ ";
  color: #28a745;
  font-weight: 600;
}

.multiple-times-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 2px solid #e9ecef;
}

.multiple-times-header span {
  font-weight: 600;
  color: #555;
}

.btn-add-row {
  background: #28a745;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-add-row:hover {
  background: #218838;
  transform: translateY(-1px);
}

.paste-section {
  width: 100%;
}

.paste-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
  min-height: 44px;
  background: #f8f9fa;
}

.paste-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

.paste-input::placeholder {
  color: #999;
  font-size: 0.85rem;
}

/* Paste feedback animations */
.paste-success {
  animation: pulseSuccess 0.6s ease-out;
}

.paste-error {
  animation: pulseError 0.6s ease-out;
}

@keyframes pulseSuccess {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    border-color: #28a745;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

@keyframes pulseError {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    border-color: #dc3545;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.time-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.time-row-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.row-top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.time-row:hover {
  border-color: #667eea;
}

.time-input-groups {
  display: flex;
  flex: 1;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 50px;
}

.compact-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 140px;
}

.time-row .time-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: border-color 0.3s;
  margin-bottom: 8px;
}

.time-row .time-input-group:focus-within {
  border-color: #667eea;
}

.time-row .time-input-group input[type="number"] {
  border: none;
  outline: none;
  width: 60px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  background: transparent;
  min-width: 50px;
}

.time-row .time-input-group input[type="number"]::placeholder {
  color: #bbb;
  font-weight: 400;
  opacity: 0.7;
}

.time-row .time-input-group input[type="number"]:focus::placeholder {
  opacity: 0.4;
}

.time-row .time-input-group label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
}

.compact-input-group .slider {
  display: none;
}

.compact-input-group .slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.compact-input-group .slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-remove-row {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-remove-row:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 10px;
  margin: 20px 0 0;
  justify-content: center;
}

.time-calculator-page .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-add {
  background: #28a745;
  color: white;
}

.btn-add:hover {
  background: #218838;
}

.btn-clear {
  background: #dc3545;
  color: white;
}

.btn-clear:hover {
  background: #c82333;
}

.time-list {
  margin-bottom: 20px;
}

.time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  margin-bottom: 8px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.time-item .time-display {
  font-weight: 500;
  color: #333;
}

.btn-remove {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-remove:hover {
  background: #c82333;
}

.top-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.input-section {
  flex: 1 1 auto;
  max-width: 650px;
  min-width: 500px;
}

.entries-section {
  margin-top: 20px;
}

.entries-section .calculator-section {
  margin-bottom: 0;
}

/* SEO Content Sections */
.seo-intro {
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #667eea;
}

.seo-intro h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.seo-intro p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 10px;
}

.seo-content {
  margin-top: 30px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.seo-content h3 {
  color: #333;
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.seo-content h3:first-child {
  margin-top: 0;
}

.seo-content ul {
  list-style-type: disc;
  padding-left: 25px;
  margin: 15px 0;
}

.seo-content li {
  color: #555;
  line-height: 1.8;
  margin-bottom: 8px;
  font-size: 1rem;
}

.seo-content p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 1399px) {
  /* Hide fixed ads on smaller screens */
  .fixed-ad-left,
  .fixed-ad-right {
    display: none !important;
  }

  /* Show mobile ads */
  .mobile-ad-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Ensure ads inside mobile containers are visible and responsive */
  .mobile-ad-container .adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 100px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .main-content {
    padding: 10px;
  }
}

@media (max-width: 1000px) {
  .top-layout {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
  }

  .input-section {
    width: 100%;
    min-width: auto;
  }

  .total-section {
    flex: none;
    margin-top: 0;
    align-self: stretch;
  }

  .entries-section {
    margin-top: 15px;
  }

  .seo-intro,
  .seo-content {
    padding: 20px;
  }

  .seo-intro h2 {
    font-size: 1.5rem;
  }

  .seo-content h3 {
    font-size: 1.3rem;
  }
}

/* Tablet and large mobile devices */
@media (max-width: 768px) and (min-width: 481px) {
  body.time-calculator-page .container {
    padding: 25px;
    margin: 15px;
  }

  .time-calc-title {
    font-size: 2rem;
  }

  .operation-toggle {
    padding: 4px;
  }

  .operation-btn {
    padding: 11px 16px;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .compact-input-group .slider {
    display: none !important;
  }

  .time-calculator-page .btn {
    padding: 13px 22px;
    font-size: 1rem;
    min-height: 46px;
  }

  .btn-add-row {
    min-height: 42px;
    padding: 9px 18px;
  }

  .paste-section {
    max-width: 100%;
  }

  .paste-input {
    min-width: 200px;
    font-size: 0.9rem;
    min-height: 42px;
  }

  .time-row {
    padding: 18px;
    margin-bottom: 15px;
    overflow: visible !important;
  }

  .time-row-header {
    display: block !important;
    width: 100%;
    overflow: visible !important;
  }

  /* Horizontal layout for tablet */
  .time-row .time-input-groups {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 12px !important;
  }

  .time-row .compact-input-group {
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .compact-input-group .time-input-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    background: white !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 8px !important;
    min-height: 85px !important;
    overflow: hidden !important;
  }

  .compact-input-group .time-input-group input[type="number"] {
    width: 100% !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    padding: 6px 4px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    order: 2 !important;
    min-width: 0 !important;
  }

  .compact-input-group .time-input-group label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
    order: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .compact-input-group .slider {
    display: none !important;
  }

  .time-rows-grid {
    gap: 15px;
    max-height: 50vh;
  }

  .total-section {
    padding: 25px;
  }

  .total-time {
    font-size: 2.2rem;
  }

  .btn-group {
    gap: 10px;
  }

  .time-item {
    padding: 10px 14px;
  }
}

@media screen and (max-width: 480px) {
  body.time-calculator-page {
    padding: 0;
  }

  body.time-calculator-page .container {
    border-radius: 0;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
  }

  /* Mobile ad styling */
  .mobile-ad-container {
    display: block !important;
    margin: 15px -15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 0;
  }

  /* SEO content mobile styles */
  .seo-intro {
    margin: 20px -15px 0;
    padding: 20px 15px;
    border-radius: 0;
  }

  .seo-intro h2 {
    font-size: 1.3rem;
  }

  .seo-intro p {
    font-size: 0.9rem;
  }

  .seo-content {
    margin: 15px -15px 0;
    padding: 20px 15px;
    border-radius: 0;
  }

  .seo-content h3 {
    font-size: 1.2rem;
    margin-top: 20px;
  }

  .seo-content ul {
    padding-left: 20px;
  }

  .seo-content li {
    font-size: 0.9rem;
  }

  .seo-content p {
    font-size: 0.9rem;
  }

  .time-calc-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  /* Force visibility of all parent containers */
  .time-row {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  .time-row-header {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
  }

  .operation-toggle {
    display: flex !important;
    visibility: visible !important;
    padding: 3px;
    margin-bottom: 10px;
    gap: 4px;
    width: 100%;
  }

  .operation-btn {
    display: flex !important;
    visibility: visible !important;
    padding: 10px 8px;
    font-size: 0.85rem;
    min-height: 40px;
    border-radius: 6px;
    flex: 1;
    align-items: center;
    justify-content: center;
  }

  .operation-btn span {
    font-size: 1rem;
  }

  /* Critical: Force time input groups to be visible - NO FLEX */
  .time-input-groups {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    min-height: auto !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    flex: none !important;
  }

  /* Ensure input section is visible */
  .input-section {
    display: block !important;
    width: 100% !important;
  }

  .calculator-section {
    display: block !important;
  }

  .multiple-times-container {
    display: flex !important;
    flex-direction: column;
  }

  .time-rows-grid {
    display: flex !important;
    flex-direction: column;
  }

  /* Mobile vertical stack for time inputs */
  .time-row .time-input-group {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    min-height: 60px;
    gap: 10px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    margin-bottom: 0;
  }

  .time-row .time-input-group input[type="number"] {
    width: 80px;
    font-size: 1.3rem;
    padding: 10px;
    min-height: 44px;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    flex-shrink: 0;
  }

  .time-row .time-input-group input[type="number"]:focus {
    border-color: #667eea;
    outline: none;
    background: white;
  }

  .time-row .time-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: left;
  }

  /* Slider styling for mobile */
  .compact-input-group .slider {
    display: block !important;
    height: 8px;
    margin: 12px 0 8px 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
  }

  .compact-input-group .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
  }

  .compact-input-group .slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
  }

  .btn-add-row {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 36px;
    border-radius: 6px;
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .paste-section {
    max-width: 100%;
    width: 100%;
  }

  .paste-input {
    width: 100%;
    font-size: 0.85rem;
    min-height: 40px;
    padding: 10px 12px;
  }

  .multiple-times-header {
    position: relative;
    padding-right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .multiple-times-header span {
    font-size: 0.95rem;
  }

  .btn-remove-row {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-height: 32px;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
  }

  .btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .time-calculator-page .btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    min-height: 44px;
    border-radius: 8px;
    width: 100%;
  }

  .btn-remove {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 36px;
    border-radius: 6px;
  }

  .total-time {
    font-size: 2rem;
    margin: 15px 0;
  }

  .total-label {
    font-size: 1.1rem;
  }

  .total-section {
    padding: 20px;
    margin-top: 0;
  }

  .time-row-header {
    display: block !important;
    width: 100%;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  /* FORCE Compact horizontal layout for mobile - all inputs in one row */
  .time-row .time-input-groups {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: 100% !important;
    min-height: auto !important;
    margin-top: 12px !important;
    align-items: stretch !important;
    justify-content: space-between !important;
  }

  .time-row .compact-input-group {
    display: flex !important;
    visibility: visible !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: auto !important;
  }

  .compact-input-group:last-child {
    margin-bottom: 0 !important;
  }

  .compact-input-group .time-input-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    background: white !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 8px 4px !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 75px !important;
    overflow: hidden !important;
  }

  .compact-input-group .time-input-group input[type="number"] {
    width: 100% !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    padding: 4px 2px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    order: 2 !important;
    min-width: 0 !important;
  }

  .compact-input-group .time-input-group label {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 2px !important;
    order: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .compact-input-group .slider {
    display: none !important;
  }

  .time-row {
    display: block !important;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    height: auto !important;
    min-height: 150px !important;
  }

  .time-rows-grid {
    gap: 12px;
    padding-right: 5px;
    max-height: 60vh;
  }

  .time-rows-grid::-webkit-scrollbar {
    width: 4px;
  }

  .time-rows-grid::-webkit-scrollbar-thumb {
    border-radius: 2px;
  }

  .top-layout {
    gap: 20px;
    margin-bottom: 20px;
  }

  .entries-section {
    margin-top: 20px;
  }

  .time-item {
    padding: 12px;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .time-item .time-display {
    font-size: 1rem;
  }

  .time-list {
    margin-bottom: 20px;
  }

  .total-breakdown {
    font-size: 0.9rem;
    margin-top: 10px;
  }

  /* Fix for entries section title */
  .entries-section .calculator-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
  }

  /* NUCLEAR OPTION: Force show ALL elements */
  .time-row * {
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Nuclear option - ensure horizontal layout */
  .time-row .time-input-groups {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .time-row .compact-input-group {
    display: flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  .time-row .time-input-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .time-row .time-input-group label {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .slider {
    display: none !important;
  }

  input[type="number"],
  input[type="range"],
  label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
  }

  /* Force compact input groups to show vertically stacked */
  .time-row .compact-input-group {
    display: block !important;
    clear: both !important;
    float: none !important;
  }
}
