/*بـسـم الله الـرحـمـن الـرحـیـم*/





/*=====================================
        GOOGLE FONT
======================================*/

@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap");

/*=====================================
        VARIABLES
======================================*/

:root{

    --bg:#070B10;
    --bg2:#0F151D;
    --card:#121922;
    --card2:#18212D;

    --border:#253141;

    --green:#22C55E;
    --green2:#32D96E;

    --white:#F5F7FA;
    --text:#BAC6D4;

    --danger:#ff4d4d;
    --warning:#ffb800;

    --radius:22px;

}

/*=====================================
            RESET
======================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    direction:rtl;

    font-family:"Vazirmatn",sans-serif;

    background:
        radial-gradient(circle at top,#13241b 0%,#070B10 45%);

    color:var(--white);

    min-height:100vh;

}

textarea{resize: none !important;}

button,
input,
textarea{


    font-family:inherit;

}

a{

    color:inherit;
    text-decoration:none;

}

button{

    cursor:pointer;

}



.pagination{

    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:30px;

}


.pagination button{

    background:#07111d;
    color:white;

    border:none;

    padding:8px 14px;

    border-radius:8px;

    cursor:pointer;

}

.plans-container{display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 15px;
width: 100%;}

.pagination button.active{

    background:#22c55e;

}



.pagination button:disabled{

    opacity:.5;

}




/*WEEK DAYS*/
.week-selector{

    display:flex;
    gap:12px;
    flex-wrap:wrap;

}

.day{

    position:relative;

}

.day input{

    display:none;

}

.day span{

    width:52px;
    height:52px;

    display:flex;
    justify-content:center;
    align-items:center;

    border-radius:16px;

    background:#10161d;

    border:1px solid #27313d;

    color:#cfd6df;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.day span:hover{

    border-color:#22C55E;

}

.day input:checked + span{

    background:#22C55E;

    color:#07120c;

    border-color:#22C55E;

    box-shadow:0 0 18px rgba(34,197,94,.35);

}

/*=====================================
        SCROLLBAR
======================================*/

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#091018;

}

::-webkit-scrollbar-thumb{

    background:#22C55E;

    border-radius:20px;

}

/*=====================================
        PAGE
======================================*/

.planner{

    width:min(1200px,94%);

    margin:auto;

    padding:45px 0 70px;

}

/*=====================================
        HEADER
======================================*/

.planner-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.planner-header h1{

    font-size:34px;

    font-weight:800;

    margin-bottom:8px;

}

.planner-header p{

    color:var(--text);

    font-size:15px;

}

.new-plan-btn{

    border:none;

    background:linear-gradient(135deg,#22C55E,#3BE77D);

    color:#07120C;

    font-size:15px;

    font-weight:700;

    padding:14px 24px;

    border-radius:16px;

    transition:.35s;

    box-shadow:
    0 10px 35px rgba(34,197,94,.25);

}

.new-plan-btn:hover{

    transform:translateY(-4px);

    box-shadow:
    0 15px 40px rgba(34,197,94,.45);

}

/*=====================================
        SEARCH
======================================*/

.search-box{

    margin-bottom:35px;

}

.search-box input{

    width:100%;

    background:rgba(255,255,255,.03);

    border:1px solid var(--border);

    color:white;

    padding:18px 22px;

    border-radius:18px;

    outline:none;

    transition:.3s;

    font-size:15px;

    backdrop-filter:blur(15px);

}

.search-box input::placeholder{

    color:#7F8A99;

}

.search-box input:focus{

    border-color:var(--green);

    box-shadow:

    0 0 0 5px rgba(34,197,94,.12),

    0 0 35px rgba(34,197,94,.15);

}

/*=====================================
        SECTION TITLE
======================================*/

h2{

    font-size:20px;

    font-weight:700;

}

label{

    display:block;

    margin-bottom:10px;

    color:var(--text);

    font-size:14px;

}

/*=====================================
        GLASS EFFECT
======================================*/

.glass{

    background:rgba(255,255,255,.03);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.06);

    border-radius:22px;

}

/*=====================================
        ANIMATION
======================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

.planner>*{

    animation:fadeUp .5s ease;

}

/*=====================================
            PLANS
======================================*/

.plans{

    display:flex;
    flex-direction:column;
    gap:20px;

}

/*=====================================
            CARD
======================================*/

.plan{

    display:flex;

    align-items:flex-start;

    gap:22px;

    padding:22px;

    background:linear-gradient(
        180deg,
        var(--card),
        var(--bg2)
    );

    border:1px solid var(--border);

    border-radius:22px;

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.plan::before{

    content:"";

    position:absolute;

    top:0;
    right:0;

    width:4px;
    height:100%;

    background:var(--green);

    opacity:.8;

}

.plan:hover{

    transform:translateY(-5px);

    border-color:var(--green);

    box-shadow:

        0 20px 45px rgba(0,0,0,.35),
        0 0 25px rgba(34,197,94,.12);

}

/*=====================================
            STATUS
======================================*/

.status{

    width:14px;
    height:14px;

    border-radius:50%;

    margin-top:10px;

    flex-shrink:0;

}

.green{

    background:#22C55E;

    box-shadow:0 0 12px #22C55E;

}

.orange{

    background:#ffb800;

    box-shadow:0 0 12px #ffb800;

}

.red{

    background:#ff4d4d;

    box-shadow:0 0 12px #ff4d4d;

}

/*=====================================
        CONTENT
======================================*/

.plan-content{

    flex:1;

}

.title-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:10px;

}

.title-row h2{

    font-size:21px;

    font-weight:700;

}

.percent{

    color:var(--green);

    font-size:17px;

    font-weight:700;

}

/*=====================================
        DESCRIPTION
======================================*/

.plan-content p{

    color:var(--text);

    line-height:1.8;

    margin-bottom:18px;

}

/*=====================================
        PROGRESS
======================================*/

.progress{

    width:100%;

    height:10px;

    background:#1D2733;

    border-radius:30px;

    overflow:hidden;

    margin-bottom:18px;

}

.progress-value{

    height:100%;

    border-radius:30px;

    background:linear-gradient(
        90deg,
        #22C55E,
        #3EE67D
    );

    position:relative;

}

.progress-value::after{

    content:"";

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:100%;

    background:

    linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.4),
    transparent);

    animation:shine 2.5s infinite;

}

@keyframes shine{

    from{

        transform:translateX(-100%);

    }

    to{

        transform:translateX(100%);

    }

}

/*=====================================
        INFO
======================================*/

.plan-info{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

}

.plan-info span{

    padding:8px 14px;

    background:#0F141B;

    border:1px solid #24303D;

    border-radius:12px;

    color:#C3CEDB;

    font-size:13px;

}

.plan-info a{

    padding:8px 14px;

    background:#0F141B;

    border:1px solid #24303D;

    border-radius:12px;

    color:#C3CEDB;

    font-size:13px;

}


.link{
    background-color: #22C55E !important;
    color: #07120c !important;
    border: none !important;
}


.link:hover{
    box-shadow: 2px 2px 4px #3EE67D , -2px -2px 4px #3EE67D;
}

.running{

    color:#22C55E !important;

    border-color:#22C55E !important;

}

.waiting{

    color:#ffb800 !important;

    border-color:#ffb800 !important;

}

/*=====================================
            MENU
======================================*/

.menu-btn2{

    width:42px;
    height:42px;

    border:none;

    background:#10161D;

    color:#B8C5D3;

    border-radius:12px;

    transition:.3s;

    flex-shrink:0;

    font-size:18px;

}

.menu-btn2:hover{

    background:var(--green);

    color:#07120C;

}

/*=====================================
        RESPONSIVE
======================================*/

@media(max-width:700px){

    .plan{

        flex-direction:column;

        gap:18px;

    }

    .title-row{

        flex-direction:column;

        align-items:flex-start;

        gap:10px;

    }

    .plan-info{

        flex-direction:column;

    }

    .menu-btn2{

        align-self:flex-end;

    }

}


/*=====================================
        ADD PLAN
======================================*/

.add-plan{
    display: none;

    margin-top:45px;

    background:linear-gradient(
        180deg,
        var(--card),
        var(--bg2)
    );

    border:1px solid var(--border);

    border-radius:26px;

    padding:30px;

    position:relative;

    overflow:hidden;

    height: fit-content;
    padding-bottom: 300px;

}

.add-plan::before{

    content:"";

    position:absolute;

    top:0;
    right:0;

    width:100%;
    height:4px;

    background:linear-gradient(
        90deg,
        var(--green),
        transparent
    );

}

.add-plan h2{

    font-size:24px;

    margin-bottom:8px;

}

.add-plan p{

    color:var(--text);

    margin-bottom:30px;

}

/*=====================================
            GRID
======================================*/

.grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:20px;

    margin-bottom:22px;

}

/*=====================================
            LABEL
======================================*/

.add-plan label{

    display:block;

    margin-bottom:10px;

    color:#C9D3DD;

    font-size:14px;

}

/*=====================================
            INPUT
======================================*/

.add-plan input,
.add-plan textarea,
.add-plan select{

    width:100%;

    background:#0F151C;

    border:1px solid #27313D;

    border-radius:16px;

    padding:15px 18px;

    color:white;

    outline:none;

    transition:.3s;

    font-size:15px;

}

.add-plan textarea{

    resize:vertical;

    min-height:140px;

}

.add-plan input::placeholder,
.add-plan textarea::placeholder{

    color:#7E8898;

}

.add-plan input:focus,
.add-plan textarea:focus,
.add-plan select:focus{

    border-color:var(--green);

    box-shadow:
        0 0 0 4px rgba(34,197,94,.15),
        0 0 20px rgba(34,197,94,.15);

}

/*=====================================
        RANGE
======================================*/

input[type="range"]{

    width:100%;

    margin-top:10px;

    accent-color:var(--green);

    cursor:pointer;

}

/*=====================================
        SAVE BUTTON
======================================*/

.add-plan button{

    width:100%;

    margin-top:25px;

    border:none;

    border-radius:16px;

    padding:16px;

    background:linear-gradient(
        135deg,
        #22C55E,
        #3BE77D
    );

    color:#07120C;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.35s;

}

.add-plan button:hover{

    transform:translateY(-3px);

    box-shadow:
        0 12px 35px rgba(34,197,94,.35);

}

/*=====================================
        HOVER EFFECTS
======================================*/

input,
textarea,
button{

    transition:.3s ease;

}

.plan{width: 100%;}

.plan,
.add-plan,
.search-box input{

    animation:fadeUp .5s ease;

}


.body-btn{
    margin-top: 200px;
}


/*=====================================
        MOBILE
======================================*/

@media(max-width:900px){

    .grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:600px){

    .planner{

        width:94%;

        padding:25px 0 40px;

    }

    .planner-header h1{

        font-size:28px;

    }

    .planner-header{

        gap:18px;

    }

    .new-plan-btn{

        width:100%;

    }

    .add-plan{

        padding:22px;

    }

    .add-plan h2{

        font-size:20px;

    }

}