* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'PomodoroFont';
  src: url('https://acumensites.space/wp-content/uploads/2026/01/SpaceGrotesk-SemiBold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


#app-root {
  min-height: calc(100vh - 160px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #f8f8f8, #eeeeee);
}

/* APP */
.pomodoro-app {
  width: 100%;
  max-width: 420px;
  position: relative;

  padding: 28px 24px 32px;
  border-radius: 20px;
  
  /* Glass effect 
  
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(255, 255, 255, 0.1);

 border: 1px solid rgba(255, 255, 255, 0.25);*/
      background: transparent;
     box-shadow: none;
}

/* HEADER */
.app-header {
  position: absolute;
  top: -60px;
  right: 0;
}

.settings-btn {
    background:#6caa7f ;

  padding: 8px 18px ! important;
  border-radius: 12px ! important;
  border: none;
  cursor: pointer;
}
.settings-icon {
  width: 30px;    
  height: 30px;
  object-fit: contain;
	 color:white;
}




/* CONTAINER */
.app-container {
  text-align: center;
}

/* MODE SECTION */
.mode-section {
  margin-bottom: 32px;
	width: 350px;
}
.mode-container {
  display: flex;
  background: #f1f1f126;
  padding: 16px;
  border-radius: 14px;
	
}

.mode-btn {
  flex: 1;
  background: #11111173  ! important ;
  border: none ! important;
  padding: 15px 0;
  font-size: 15px;
  cursor: pointer;
font-weight:600;
	border-radius:none !important;
  color: white ! important;
 border-radius:0;
}

.mode-btn.active {
    background:#6caa7f ! important;
    color: #111;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  
}

/* TIMER */
.timer-section {
/*  margin: 40px 0;*/
    margin: 36px 0 42px;
}



.timer-display {
  font-size: clamp(56px, 18vw, 120px);
  font-weight: 600;
  
  line-height: 1;
font-family: 'SpaceGrotesk-SemiBold', sans-serif;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.timer-container {
  margin-left: -40px;
}

/* CONTROLS */
.control-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.start-btn {
  background:#6caa7f;
  color: #fff;
  padding: 12px 28px;
 
  border: none;
  cursor: pointer;
}

.pause-btn {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  opacity: 0.6;
}

.pause-btn:enabled {
  opacity: 1;
}


.reset-btn {
  background: #6caa7f;
  color: #fff;
  padding: 12px 28px;
 
  border: none;
  cursor: pointer;
}



/* CLOSE BUTTON */
.close-settings {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #6caa7f;
  font-size: 18px;
  cursor: pointer;
}





/* FOCUS BUTTONS */
.focus-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #6caa7f;
  margin-bottom: 8px;
  cursor: pointer;
}

.focus-btn.active {
  background: #111;
  color: #fff;
}

/* =============
CUSTOM INPUTS  =================*/

.custom-inputs {
  margin-top: 16px;
   display: flex;
  flex-direction: column;
  gap: 1px;
  animation: fadeSlide 0.3s ease;
}
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Each block */
.time-block h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0;
	width:110px;
}
.time-block {
	display: flex;
	text-align: justify;
	gap: 8px;
	align-items: center;
	}

/* Two-column grid */
.time-grid {
  display: grid;
  grid-template-columns: 70px 70px;
  gap: 6px;
}

/* Inputs */
.time-grid input {
  width: 70px;
  height: 32px;

  padding: 4px 6px;

  font-size: 13px;
  text-align: center;

  border-radius: 8px;
}

.custom-inputs.hidden {
  display: none;
}

.custom-inputs label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  margin-bottom: 8px;

  font-weight: 500;
  color: #333;

}

.custom-inputs input {
  margin-top: 6px;
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Input focus */
.custom-inputs input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* SAVE BUTTON */
.save-custom {
  margin-top: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* Hover */
.save-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  opacity: 0.95;
}

/* Click */
.save-custom:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* ======SETTINGS TABS GRID ======*/

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.settings-tab {
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: #6caa7f;
  cursor: pointer;
  font-size: 14px;
}

.settings-tab.active {
  background: #111;
  color: #fff;
}

/* =====================
   SETTINGS POPUP
===================== */

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.settings-overlay.open {
  display: flex;
}

.settings-panel {
  width: 320px;
  padding: 20px;
  border-radius: 20px;
  background-color: #fff;  

  position: relative;
  color: #000000;
}

/* Hide timer options initially */
.timer-options-panel {
  display: none;
  margin-top: 16px;
}

.timer-options-panel.open {
  display: block;
}

/* Hide theme options initially */
.theme-options-panel {
  display: none;
  margin-top: 18px;
  
}

.theme-options-panel.open {
  display: block;
}

/* Hide Spotify initially */

.music-options-panel {
  display: none;
  margin-top: 16px;
}

.music-options-panel.open {
  display: block;
}

/* Hide alarm options initially */
.alarm-options-panel {
  display: none;
  margin-top: 16px;
}

.alarm-options-panel.open {
  display: block;
}


/* VIDEO BACKGROUND */
#bg-video {
 position: fixed; 
inset: 0; 
width: 100%; 
height: 100%; 
object-fit: cover;
z-index: -1;
}


/* =====================
   THEME BUTTONS (same as focus level)
===================== */

/* Theme dropdown container */
.theme-dropdown {
  position: relative;
  margin-top: 12px;
}

/* Trigger button */
.theme-dropdown-trigger {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;

  background: #6caa7f;
  border: none;
  color: #fff;

  font-size: 14px;
  cursor: pointer;
}

/* Dropdown menu */
.theme-dropdown-menu {
  margin-top:10px;

  max-height: 176px; /* 👈 4 items × ~44px */
  overflow-y: auto;

  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(12px);

  border-radius: 12px;
  padding: 6px;

  display: none;
  
}

/* Show dropdown */
.theme-dropdown.open .theme-dropdown-menu {
  display: block;
}

/* Theme buttons */
.theme-btn {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 4px;

  background: transparent;
  border: none;
  border-radius: 8px;

  color: #fff;
  text-align: left;
  cursor: pointer;
  opacity: 0.85;
}

.theme-btn:hover,
.theme-btn.active {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* Scrollbar (subtle) */
.theme-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.theme-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}


/* =====================
     Spotify
===================== */


.spotify-box {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.spotify-box input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;

}


#music-link-input{
		margin-top: 28px;
}
.spotify-box button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #1db954;
  color: #fff;
  cursor: pointer;
}

.spotify-login-note {
    padding-bottom: 10px;
    margin-top: 28px;
    font-size: 14px;
    color: #000;
    text-align: justify;
    line-height: normal;
}

.hidden {
  display: none;
}

#load-music{
  display: block;
	background:  #6caa7f;
  margin: auto;
	 margin-top: 28px;
}
#spotify-player {
  border-radius: 12px;
}
/* =====================
   ALARM SOUND BUTTONS
===================== */

.alarm-trigger {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #6caa7f;
  color: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
}

.alarm-dropdown {
  margin-top: 10px;
  max-height: 208px; /* 4 buttons × ~52px */
  overflow-y: auto;
  display: none;

  background: rgba(20,20,20,0.75);
  border-radius: 12px;
  padding: 6px;
}

.alarm-dropdown.open {
  display: block;
}

.alarm-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
	margin-bottom: 4px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}




.alarm-btn:hover,
.alarm-btn.active {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* Smooth scroll */
.alarm-dropdown::-webkit-scrollbar {
  width: 6px;
}
.alarm-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
}

/* MINI MUSIC PLAYER FIXED */
.bottom-music-player {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 40;
  display: none; /* hidden until music loads */
	width:360px;
max-width: min(360px, 95vw);
}

.bottom-music-player iframe {
  border-radius: 12px;
	width:100%;
	height:90px;
}

.music-source-btn.active {
    background:black;
    color: white;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  
}

.music-source-btn{
      background:#6caa7f;
}



@media (max-width: 480px) {
	.timer-container {
		margin-left:0px;
	}
}

/* =====================
   FOCUS DROPDOWN
===================== */

.focus-dropdown {
  position: relative;
  margin-top: 12px;
}

.focus-dropdown-trigger {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #6caa7f;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.focus-dropdown-menu {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;

  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);

  border-radius: 12px;
  padding: 6px;

  display: none;
}

.focus-dropdown.open .focus-dropdown-menu {
  display: block;
}

.focus-option {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 4px;

  background: transparent;
  border: none;
  border-radius: 8px;

  color: #fff;
  text-align: left;
  cursor: pointer;
  opacity: 0.9;
}

.focus-option:hover,
.focus-option.active {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}