
/* ===============================
   Laptop
==================================*/

/*@media (max-width:1200px){*/

/*    .container-main{*/
/*        padding:30px 24px;*/
/*    }*/

/*    .pomodoro-app{*/
/*        width:100%;*/
/*    }*/

/*    .timer-circle{*/
/*        width:360px;*/
/*        height:360px;*/
/*    }*/

/*    .big-timer{*/
/*        font-size:5.5rem;*/
/*    }*/

/*}*/

/* ===============================
   Tablet
==================================*/

@media (max-width:992px){

    .container-main{
        padding:24px 20px;
    }

    .timer-circle{
        width:100%;
        height:290px;
    }

    .big-timer{
        font-size:8.5rem;
        margin-bottom: 50px;
    }

    .settings-panel{
        gap:18px;
        margin:40px 0;
        margin-bottom: 100px;
    }

    .setting-box{
        width:220px;
    }

}

/* ===============================
   Mobile
==================================*/

@media (max-width:768px){

    body{
        font-size:14px;
    }

    .status{
        font-size:1.2rem;
    }

    .container-main{
        padding:16px;
    }

    .pomodoro-app{
        width:100%;
    }

    /* Header */

    .app-header{

        width:92%;
        padding:10px 14px;
        border-radius:22px;

    }

    .header-actions{
        gap:8px;
    }

    .header-btn{

        width:40px;
        height:40px;
        border-radius:12px;

    }

    .brand-text h1{
        font-size:1rem;
    }

    /* Settings */

    .settings-panel{

        display:flex;
        flex-direction:row;

        justify-content:center;
        align-items:center;

        gap:12px;

        margin:40px 0;
        margin-bottom: 100px;
    }

    .setting-box{

        flex:1;
        max-width:170px;

        height:74px;

        padding:12px;

        border-radius:20px;

    }

    .setting-label{
        font-size:.95rem;
        margin:0 -1px;
    }

    .setting-unit{
        font-size:.85rem;
    }

    .setting-box input{

        width:60px;
        height:38px;

        margin:0 -1px;

        font-size:1rem;

    }

    /* Timer */

    .timer-circle{

        width:100%;
        height:250px;

        margin:auto;

    }

    .big-timer{

        font-size:6.6rem;
        line-height:1;
        margin-bottom: 50px;
        letter-spacing:-2px;

    }

    .session-title{

        margin-top:10px;

        font-size:1rem;

    }

    /* Controls */

    .controls{

        margin-top:34px;

        gap:18px;

    }

    .control-btn{

        width:58px;
        height:58px;

        border-radius:18px;

    }

    .theme-nav{

        width:44px;
        height:70px;

    }

    .todo-in-header{
        display:none;
    }

}

/* ===============================
   iPhone Pro Max
==================================*/

@media (min-width:385px) and (max-width:450px){

    .timer-circle{

        width:305px;
        height:260px;

    }

    .big-timer{
        font-size:5rem;
    }

    .status{
        font-size:1.1rem;
    }

    .controls{
        margin-top:-30px;
    }

    .brand-text h1{
        display: none;
    }

}

/* ===============================
   Small Mobile
==================================*/

@media (max-width:385px){


    .logo-text{
        display:none;
    }

    .settings-panel{

        flex-direction:column;

        margin:0px 0 70px 0;
        gap:14px;

    }

    .setting-box{

        width:170px;
        max-width:none;

    }

    .timer-circle{

        width:245px;
        height:225px;

    }

    .big-timer{

        font-size:3.7rem;

    }

    .controls{

        gap:14px;
        margin-top:-40px;
    }

    .container-main{
        margin-top: -20px;
    }

    .big-timer{
        margin-bottom: 60px;
        font-size:4rem;
    }

    .status{
        font-size:1rem;
    }

}

/* ===============================
   Extra Small
==================================*/

@media (max-width:340px){

    .timer-circle{

        width:215px;
        height:215px;

    }

    .big-timer{
        font-size:3rem;
    }

    .control-btn{

        width:50px;
        height:50px;

    }

    .controls{
        margin-top:-40px;
    }

}

@media (max-width:768px){

    .todo-popup{

        width:95%;

        left:50%;
        right:auto;

        transform:translateX(-50%);

    }

}

@media (max-width:768px){

    #mini-player{

        width:95%;

        left:50%;

        transform:translateX(-50%);

        bottom:16px;

    }

}

@media (max-width:768px){

    main.compact,
    header.compact{

        display:none;

    }

}

/*
///////////////////////////////////////////////////////////////*/


@media (min-width:992px) and (max-width:1350px) and (max-height:700px){

    html{
        font-size:90%;
    }

    .settings-panel{

        gap:24px;

        margin-top:10px;

    }

    .setting-box{

        width:200px;

        height:75px;

        border-radius:22px;

    }

    .setting-box input{

        width:70px;

        font-size:1.1rem;

    }

    #timer{

        font-size:10rem;

    }

    .session-title{

        font-size:1.4rem;

    }

    .controls{

        margin-top:20px;

        gap:18px;

    }

    .control-btn{

        width:64px;

        height:64px;

        font-size:24px;

    }

    .theme-nav{

        width:56px;

        height:90px;

    }

}

/* ===============================
   Music
==================================*/
@media (max-width:1500px){

    /* ====================================
       MUSIC PANEL
    ==================================== */

    #music-panel{

        top:64px;                         /* 80 → 64 */

        right:4%;

        width:min(400px, calc(100vw - 26px)); /* 420 → 336 */

        height:72vh;

        padding:16px;                     /* 20 → 16 */

        border-radius:22px;               /* 28 → 22 */

        backdrop-filter:blur(20px);       /* 25 → 20 */

        transform:translateY(-16px);

        box-shadow:
                0 32px 80px rgba(0,0,0,.45),
                0 0 0 1px rgba(255,255,255,.08),
                0 0 24px rgba(255,255,255,.15);

    }

    /* ====================================
       HEADER
    ==================================== */

    .music-header{

        margin-bottom:14px;

    }

    .music-header h3{

        gap:8px;

        font-size:1.4rem;

    }

    .music-close{

        width:34px;

        height:34px;

        border-radius:11px;

        font-size:.9rem;

    }

    /* ====================================
       SEARCH
    ==================================== */

    .music-search{

        gap:10px;

        padding:11px;

        border-radius:14px;

        margin-bottom:16px;

    }

    .music-search i{

        font-size:.9rem;

    }

    .music-search input{

        font-size:12px;

    }

    /* ====================================
       LIST
    ==================================== */

    #music-list{

        gap:8px;

        padding-right:3px;

    }

    .music-item{

        gap:11px;

        padding:11px;

        border-radius:14px;

    }

    .music-item:hover{

        transform:translateY(-2px);

    }

    .music-info{

        gap:3px;

    }

    .music-title{

        font-size:12px;

    }

    .music-artist{

        font-size:10px;

    }

    .music-duration{

        font-size:10px;

    }

    /* ====================================
       PLAYER
    ==================================== */

    .music-player{

        margin-top:16px;

        padding-top:14px;

        gap:13px;

    }

    .now-playing h4{

        font-size:15px;

    }

    .now-playing span{

        font-size:11px;

    }

    .player-progress .progress{

        height:5px;

    }

    .player-time{

        font-size:11px;

    }

    .player-controls{

        gap:14px;

    }

    .player-controls button{

        width:40px;

        height:40px;

        border-radius:13px;

        font-size:1rem;

    }

    .play-main{

        width:48px !important;

        height:48px !important;

        border-radius:16px !important;

    }

    .player-options{

        gap:13px;

    }

    .player-options button{

        width:34px;

        height:34px;

        border-radius:11px;

        font-size:.9rem;

    }

    /* ====================================
       SCROLLBAR
    ==================================== */

    #music-list::-webkit-scrollbar{

        width:5px;

    }

    #music-list::-webkit-scrollbar-thumb{

        border-radius:16px;

    }

}

@media (max-height: 800px){

    #music-panel{

        height:78vh;
        padding:16px;
    }

    #music-list{

        min-height:160px;
    }

    .music-player{

        margin-top:12px;
        padding-top:12px;
        gap:10px;
    }

    .player-controls{

        gap:12px;
    }

    .player-controls button{

        width:42px;
        height:42px;
        border-radius:14px;
    }

    .play-main{

        width:52px !important;
        height:52px !important;
        border-radius:16px !important;
    }

    .player-options{

        gap:10px;
    }

    .player-options button{

        width:36px;
        height:36px;
    }

    .music-item{

        padding:10px 14px;
    }

    .music-title{

        font-size:clamp(.8rem,.9rem,1.2rem);
    }

    .music-artist{

        font-size:clamp(.6rem,.7rem,.8rem);
    }

}

@media (max-width:768px){

    #music-panel{

        right:50%;

        transform:translateX(50%);

        width:calc(100vw - 24px);

        height:72vh;

        padding:16px;

    }

    #music-panel.show{

        transform:translateX(50%);

    }

}

/* ==================================
   iOS Safari Fix
================================== */

@supports (-webkit-touch-callout: none) {

    html {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
    }

    body {
        width: 100%;
        min-width: 0;

        min-height: 100vh;
        min-height: 100dvh;

        margin: 0;

        overflow-x: hidden;

        -webkit-text-size-adjust: 100%;
    }

    .container-main {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin: 0 auto;

        padding-left: 12px;
        padding-right: 12px;

        box-sizing: border-box;
    }

    .pomodoro-app {
        width: 100%;
        max-width: 430px;

        min-width: 0;

        margin-left: auto;
        margin-right: auto;

        box-sizing: border-box;
    }

    .settings-panel {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;
    }

    .timer-circle {
        width: min(65vw, 280px);
        height: min(65vw, 280px);

        max-width: 100%;

        flex-shrink: 0;
    }

    .big-timer {
        font-size: clamp(
                3rem,
                14vw,
                4.2rem
        );

        white-space: nowrap;
    }

}

@media (max-width:500px) and (max-height:700px){

    
    .timer-circle{

        width:305px;
        height:260px;

    }

    .big-timer{
        font-size:5rem !important;
    }

    .status{
        font-size:1.1rem;
    }

    .controls{
        margin-top:-30px;
    }

    .brand-text h1{
        display: none;
    }

}