/* Pomodoro Timer Specific Styles */
/* --- Header Layout --- */
.pomodoro-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 25px;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-left {
  display: flex;
  justify-content: flex-start;
}

.header-center h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  text-align: center;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.user-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.icon-text-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-text-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.icon-text-btn svg {
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.icon-text-btn:hover svg {
  transform: scale(1.1);
}

.nav-logout-btn {
  padding: 8px 14px;
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff8e8e;
}

.nav-logout-btn:hover {
  background: rgba(255, 107, 107, 0.25);
}

.pomodoro-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
  max-width: 480px;
  margin: 20px auto 0;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s cubic-bezier(0.2, 0.9, 0.25, 1);
  padding-bottom: 50px;
}

.pomodoro-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
}

/* Main Timer Container */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.timer-modes {
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px;
  border-radius: 30px;
  margin-bottom: 30px;
  z-index: 2;
}

.mode-btn {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mode-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Circle Timer Display */
.timer-display {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 300px;
  margin-bottom: 30px;
  z-index: 2;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  z-index: 2;
}

.progress-ring__circle {
  transition: stroke-dashoffset 0.5s linear, stroke 0.5s ease;
}

.time-text {
  font-size: 72px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  z-index: 3;
  margin-top: -10px;
  font-variant-numeric: tabular-nums;
}

.mode-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 3;
  margin-top: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ff6b6b;
  filter: blur(40px);
  opacity: 0.15;
  z-index: 1;
  transition: background 0.5s ease, opacity 0.5s ease;
}

.is-running .glow-ring {
  opacity: 0.3;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Controls */
.timer-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
  backdrop-filter: blur(10px);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
  transform: translateY(1px);
}

.control-btn.primary-btn {
  background: #fff;
  color: #000;
  padding: 16px 48px;
  font-size: 18px;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  border: none;
}

.control-btn.primary-btn:hover {
  background: #fdfdfd;
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.02);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}

/* Bottom Section */
.bottom-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.stats-container {
  flex: 1;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.stats-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-header svg {
  opacity: 0.7;
}

.stats-grid {
  display: flex;
  gap: 35px;
  width: 100%;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.settings-btn {
  width: 110px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
  cursor: pointer;
  padding: 0;
}

.settings-btn svg {
  transition: transform 0.4s ease;
}

.settings-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.settings-btn:hover svg {
  transform: rotate(45deg);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  padding: 30px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
}

.modal-header .icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
}

.modal-header .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.setting-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-group label {
  color: #fff;
  font-size: 15px;
}

.glass-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  width: 80px;
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease;
}

.glass-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-actions .control-btn.primary-btn {
  padding: 12px 30px;
  font-size: 16px;
  width: 100%;
}

@media(max-width: 600px) {
  .bottom-section {
    flex-direction: column;
  }
  
  .settings-btn {
    width: 100%;
    height: 60px;
  }
  
  .timer-display {
    width: 250px;
    height: 250px;
  }
  
  .progress-ring {
    width: 250px;
    height: 250px;
  }
  
  .progress-ring circle {
    r: 110;
    cx: 125;
    cy: 125;
  }
  
  .glow-ring {
    width: 220px;
    height: 220px;
  }
}
