/* =====================================
   GLOBAL RESET
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #d5dce4;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =====================================
   MAIN CONTAINER
===================================== */

.container {
    width: 80vw;
    height: 60vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =====================================
   PRESET BUTTON SECTION (TOP)
===================================== */

.upper {
    width: 65%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    padding-bottom: 4px;
}

/* Preset Buttons Base Style */
.preset-btn {
    width: 75px;
    height: 28px;
    border-radius: 10px;
    border: 2px solid #9c9c9c;
    background-color: #b3b4b8;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover Effect */
.preset-btn:hover {
    transform: scale(1.05);
    background-color: #114c6b;
    color: #2cc4cf;
    border-color: #114c6b;
}

/* Active Selected Preset */
.preset-btn.active {
    background-color: #114c6b;
    color: #2cc4cf;
    border-color: #114c6b;
}


/* =====================================
   MAIN TIMER AREA
===================================== */

.main {
    width: 65%;
    height: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =====================================
   TIMER CARD
===================================== */

.timer-div {
    width: 355px;
    height: 180px;
    border-radius: 35px;
    background-color: #030303;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}


/* =====================================
   DIGITAL TIMER SECTION
===================================== */

.digital-timer {
    width: 162px;
    height: 162px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
}

/* Small "Timer" label */
.timer-text {
    font-size: 13px;
    color: #aeaeae;
    margin-left: 18px;
    margin-top: 20px;
}

/* Main Countdown Text */
.timer {
    color: #ffffff;
    font-size: 46px;
    font-weight: 400;
    margin-left: 13px;
    line-height: 1.2;
}

/* Start / Resume Button */
.timer-button {
    width: 88px;
    height: 28px;
    margin-top: 15px;
    margin-left: 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: #184d6c;
    color: #0cdefa;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

/* Running State (JS toggles this class) */
.timer-button.running {
    background-color: #303030;
    color: #ffffff;
}


/* =====================================
   PROGRESS CIRCLE SECTION
===================================== */

.progress-circle {
    position: relative;
    width: 162px;
    height: 162px;
    border-radius: 26px;
    background-color: #184d6c;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rotate SVG so countdown starts from top */
.progress-div {
    position: absolute;
    transform: rotate(-90deg);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Background ring */
.ring-bg {
    fill: none;
    stroke: #13354a;
    stroke-width: 8;
}

/* Active progress ring */
.ring-progress {
    fill: none;
    stroke: #11d9f7;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-180deg) scaleX(-1);
    transform-origin: center;
}


/* =====================================
   INNER PLAY BUTTON
===================================== */

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    background: #030303;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circular Button */
.btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =====================================
   ICON ANIMATION
===================================== */

.icon-box {
    width: 25px;
    height: 25px;
    position: relative;
}

.icon-box svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: white;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default Play State */
.pause-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
}

/* Active Pause State */
.active .play-icon {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}

.active .pause-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


/* =====================================
   BOTTOM DECORATIVE BAR
===================================== */

.lower {
    width: 65%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 3px;
}

.show-bar {
    width: 100px;
    height: 8px;
    background-color: #030303;
    border-radius: 10px;
}
