/* modern-style.css */

:root {
  --button-color: #67b0ff; /* 전역 변수 */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: rgba(220, 123, 123, 0.95);
  min-height: 100vh;
  padding: 0px;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}


/* .timer-card {
  backdrop-filter: blur(20px);
  border-radius: 20px;
} */

.timer-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .timer-card {
    background: none;       /* 배경 제거 */
    padding: 0;             /* 패딩 제거 */
    box-shadow: none;       /* 그림자 제거 */
    margin-bottom: 0;       /* 마진 제거 */
  }
}

.interval-list {
  margin-bottom: 0px;
}

.interval {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
  margin: 10px 0;
  padding: 10px;
  border-radius: 25px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.interval:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.interval.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  touch-action: manipulation;
}

.interval input[type="text"] {
  flex: 1;
  margin: 5px;
  font-size: 1.1rem;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  background: white;
  transition: all 0.3s ease;
  font-weight: 500;
}

.interval input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.interval.active input[type="text"] {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}

.time-display {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
  margin: 0 15px;
  min-width: 60px;
  text-align: center;
}

.interval.active .time-display {
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls button {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-color: var(--button-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  touch-action: manipulation;
}

.controls button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.interval.active .controls button {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 25px;
  margin: 0px 0px 10px 0px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.add-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.add-controls input[type="text"],
.add-controls input[type="number"] {
  font-size: 1rem;
  padding: 12px 15px;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  background: white;
  transition: all 0.3s ease;
  min-width: 120px;
}

.add-controls input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.round-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  touch-action: manipulation;
}

.round-controls button {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-color: var(--button-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  touch-action: manipulation;
}

.round-controls button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

#roundCount {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  min-width: 60px;
  text-align: center;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  padding: 0px 20px;
}

.sound-controls {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.sound-btn {
  font-size: 1rem;
  padding: 17px 20px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-color: var(--button-color);
  color: white;
  min-width: 140px;
}

.sound-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.sound-btn.sound-off {
  background: linear-gradient(135deg, #888 0%, #666 100%);
  opacity: 0.7;
}

.main-button {
  font-size: 1.2rem;
  padding: 15px 30px;
  border: none;
  border-radius: 27px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
}

.start-btn {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.stop-btn {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
}

.main-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.add-btn {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-color: var(--button-color);
  color: white;
  font-size: 1rem;
  padding: 12px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

#currentStatus {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25px;
  color: #333;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  border-radius: 4px;
  transition: width 1s ease;
  width: 0%;
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .timer-card, .section {
    /* padding: 20px 0px; */
    padding: 10px 0px 10px 0px;
  }
  
  .interval {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .controls {
    justify-content: center;
    margin-top: 15px;
  }
  
  .add-controls {
    flex-direction: column;
  }
  
  .timer-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .sound-controls {
    margin-top: 10px;
  }
}

.pulse {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.icon-white {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 6px;
  filter: brightness(0) invert(1); /* 흰색처럼 보이게 하는 핵심 */
}

.icon-black {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 6px;
  filter: brightness(0)
}


.time-and-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* 모바일 전용 조정 */
/* 모바일 전용 조정 */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }
  
  .interval {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin: 10px 0;
    padding: 15px;
  }

  .time-and-controls {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 10px;
    width: 100%;
  }

  .time-input {
    min-width: 80px;
    margin-bottom: 0px;
  }

  .controls {
    margin-top: 0;
    gap: 5px;
  }

  .controls button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}


