/* Ultra-Massive Timer - 60% Screen Coverage */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-background: #0a0a0a;
  --color-text: #ffffff;
  --color-text-secondary: #666666;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-button-border: #333333;
  
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family-base);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  text-align: center;
  position: relative;
}

/* Keyboard Shortcuts Panel */
.keyboard-shortcuts {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.85rem;
  z-index: 100;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.keyboard-shortcuts:hover {
  opacity: 1;
}

.shortcuts-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
}

.shortcut-item:last-child {
  margin-bottom: 0;
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  color: var(--color-text);
  min-width: 1.5rem;
  text-align: center;
  display: inline-block;
}

/* MASSIVE Timer Display - 60% of screen */
.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: 60vh;
  width: 90vw;
  margin-bottom: 2rem;
}

.time-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.timer-time {
  font-family: var(--font-family-mono);
  font-size: 20vw;
  font-weight: 200;
  line-height: 0.8;
  color: var(--color-text);
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
  user-select: none;
  min-width: 0.6em;
  text-align: center;
  transition: color 0.8s ease, text-shadow 0.8s ease;
}

.timer-separator {
  font-family: var(--font-family-mono);
  font-size: 20vw;
  font-weight: 200;
  color: var(--color-text-secondary);
  line-height: 0.8;
  user-select: none;
  opacity: 0.8;
  transition: color 0.8s ease, text-shadow 0.8s ease;
}

/* Subtle Time Control Buttons */
.time-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  opacity: 0.7;
}

.time-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
  opacity: 1;
  transform: scale(1.1);
}

.time-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.15);
}

.time-btn:disabled {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: #333333;
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

/* Diagonal Stripe Loading Bar */
.snorlax-progress {
  width: 80%;
  max-width: 600px;
  height: 50px;
  margin: 2rem auto;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.snorlax-progress.active {
  opacity: 1;
  visibility: visible;
}

.progress-track {
  width: 100%;
  height: 50px;
  position: relative;
  background: #f8f9fa;
  border-radius: 25px;
  border: 3px solid #2c3e50;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    45deg,
    #2c3e50 0px,
    #2c3e50 8px,
    #ffffff 8px,
    #ffffff 16px
  );
  border-radius: 22px;
  transition: width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  animation: loading-stripes 4s linear infinite;
}

@keyframes loading-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 32px 0;
  }
}

.progress-track::after {
  content: 'loading...';
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
  letter-spacing: 0.1em;
}


/* Control Buttons */
.timer-controls {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.timer-btn {
  background: transparent;
  border: 2px solid var(--color-text-secondary);
  color: var(--color-text);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.timer-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.timer-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.timer-btn--primary {
  border-color: var(--color-success);
  color: var(--color-success);
}

.timer-btn--primary:hover:not(:disabled) {
  background: var(--color-success);
  color: var(--color-background);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

.timer-btn--warning {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.timer-btn--warning:hover:not(:disabled) {
  background: var(--color-warning);
  color: var(--color-background);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.timer-btn--danger {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.timer-btn--danger:hover:not(:disabled) {
  background: var(--color-danger);
  color: var(--color-background);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .keyboard-shortcuts {
    top: 1rem;
    left: 1rem;
    padding: 0.8rem;
    font-size: 0.75rem;
  }
  
  .shortcuts-title {
    font-size: 0.8rem;
  }
  
  .shortcut-item {
    font-size: 0.7rem;
  }
  
  kbd {
    padding: 0.1rem 0.3rem;
    font-size: 0.65rem;
    min-width: 1.2rem;
  }
  
  .timer-time, .timer-separator {
    font-size: 25vw;
  }
  
  .time-btn {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.9rem;
    border-radius: 6px;
  }
  
  .timer-controls {
    gap: 1rem;
  }
  
  .timer-btn {
    padding: 0.8rem 1.8rem;
    min-width: 100px;
    font-size: 0.9rem;
  }
  
  .snorlax-progress {
    width: 90%;
    height: 50px;
    margin: 1.5rem auto;
  }
}

@media (max-width: 480px) {
  .keyboard-shortcuts {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.6rem;
    font-size: 0.7rem;
  }
  
  .shortcuts-title {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  .shortcut-item {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
  }
  
  kbd {
    padding: 0.1rem 0.25rem;
    font-size: 0.6rem;
    min-width: 1rem;
  }
  
  .timer-display {
    gap: 1rem;
  }
  
  .timer-time, .timer-separator {
    font-size: 22vw;
  }
  
  .time-control {
    gap: 0.5rem;
  }
  
  .time-btn {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    border-radius: 5px;
  }
  
  .timer-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timer-btn {
    width: 180px;
  }
  
  .snorlax-progress {
    width: 95%;
    height: 40px;
    margin: 1rem auto;
  }
}

@media (min-width: 1400px) {
  .timer-time, .timer-separator {
    font-size: 18vw;
  }
  
  .time-btn {
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
    border-radius: 10px;
  }
}