/* Combined Timer Style with Slider Navigation */

/* Slider Tab Navigation */
.tabs {
  display: flex;
  margin-bottom: 25px;
  position: relative;
  background-color: #f5f5f5;
  border-radius: 50px;
  padding: 5px;
  width: 350px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: none !important;
}

.tab {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 12px 20px !important;
  text-align: center;
  cursor: pointer;
  border: none !important;
  background: transparent !important;
  font-weight: 600 !important;
  color: #6c757d !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.tab i {
  font-size: 1rem;
  margin-right: 5px;
}

.tab:hover {
  color: #293241 !important;
}

.tab.active {
  color: white !important;
}

/* Animated slider background - using solid bright blue */
.tabs::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(50% - 10px);
  background: #2CBEF4 !important; /* Solid bright blue */
  border-radius: 50px;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Slider position for active tab */
.tabs.active-manual::before {
  transform: translateX(calc(100% + 10px));
}

/* Timer display modernization */
.timer-display {
  font-size: 3.5rem !important;
  font-family: 'JetBrains Mono', monospace, sans-serif !important;
  font-weight: bold !important;
  color: #293241 !important;
  text-align: center !important;
  max-width: 400px !important;
  margin: 25px auto !important;
  padding: 20px !important;
  background: white !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; 
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
}

.timer-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #2CBEF4, #293241) !important;
}

/* Redesigned modern timer buttons - keep the nice gradient buttons */
.timer-buttons {
  display: flex !important;
  gap: 15px !important;
  justify-content: center !important;
  margin: 30px auto !important;
  max-width: 500px !important;
}

.timer-buttons button {
  flex: 1 !important;
  min-width: 120px !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.timer-buttons button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0)) !important;
  z-index: 0;
}

.timer-buttons button i {
  font-size: 1rem !important;
  z-index: 1 !important;
}

.timer-buttons button span {
  z-index: 1 !important;
}

/* Start button with gradient */
.timer-buttons button#start-timer {
  background: linear-gradient(to right, #2ecc71, #27ae60) !important;
  color: white !important;
}

.timer-buttons button#start-timer:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3) !important;
}

/* Pause button with gradient */
.timer-buttons button#pause-timer {
  background: linear-gradient(to right, #2CBEF4, #1a8cbc) !important;
  color: white !important;
}

.timer-buttons button#pause-timer:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 15px rgba(44, 190, 244, 0.3) !important;
}

/* Stop button with gradient */
.timer-buttons button#stop-timer {
  background: linear-gradient(to right, #e74c3c, #c0392b) !important;
  color: white !important;
}

.timer-buttons button#stop-timer:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3) !important;
}

/* Disabled button styles */
.timer-buttons button:disabled {
  background: #e0e0e0 !important;
  color: #a0a0a0 !important;
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

.timer-buttons button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Add entry button in manual form */
#manual-entry-form button[type="submit"] {
  background: #293241 !important; /* Dark blue */
  color: white !important;
  padding: 14px 28px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  border: none !important;
  position: relative !important;
  width: auto !important;
  margin-top: 10px !important;
}

#manual-entry-form button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 15px rgba(41, 50, 65, 0.25) !important;
  background: #354358 !important; /* Slightly lighter on hover */
}

/* Responsive styles */
@media (max-width: 768px) {
  .tabs {
    width: 300px;
  }
  
  .tab {
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
  }
  
  .timer-display {
    font-size: 2.5rem !important;
    padding: 15px !important;
    margin: 15px auto !important;
  }
  
  .timer-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .timer-buttons button {
    width: 100% !important;
  }
  
  #manual-entry-form button[type="submit"] {
    width: 100% !important;
  }
}