/*بـسـم الله الـرحـمـن الـرحـیـم*/




*{font-family: vazir;}
#goal{display: none;}

h4{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    background-color: none;
}

textarea{resize: none !important;}


.goal-date-row{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 400px;
}



.header-btn{
    width: 100%;
    display: flex;
    justify-content: left;
    padding-left: 20px;
    margin-top: 20px;
}

.edit:hover{
    box-shadow: 1px 1px 4px #81ffaf , -1px -1px 4px #97ffbd;
    opacity: 95%;
}

.edit{
    width: 120px;
    justify-content: space-around;
    align-items: center;
    display: flex;
    margin: 10px 30px;
    float: left;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    background-color: #16a34a;
    height: 40px;
}



.goal-page{

    width:100%;
    padding:35px;
    
    color:#fff;

}

.goal-card{

    width:100%;
    max-width:1000px;

    margin:auto;

    background:linear-gradient(145deg,#07111d,#020617);

    border:1px solid rgba(34,197,94,.15);

    border-radius:26px;

    padding:35px;

    box-shadow:
    0 25px 60px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.02);

}

.goal-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:25px;

    margin-bottom:35px;

}

.goal-label{

    display:inline-block;

    padding:8px 16px;

    border-radius:30px;

    background:rgba(34,197,94,.15);

    color:#22c55e;

    font-size:13px;

    margin-bottom:15px;

}

.goal-header h1{

    font-size:35px;

    margin-bottom:15px;

    line-height:1.4;

}

.goal-header p{

    color:#94a3b8;

    line-height:2;

    max-width:650px;

}

.goal-status{

    padding:12px 22px;

    border-radius:30px;

    font-weight:bold;

    white-space:nowrap;

}

.goal-status.active{

    background:#22c55e22;

    color:#22c55e;

    border:1px solid #22c55e55;

}

.goal-info{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

    margin-bottom:35px;

}

.goal-item{

    background:#0f172a;

    border:1px solid rgba(255,255,255,.05);

    border-radius:18px;

    padding:25px;

    transition:.35s;

}

.goal-item:hover{

    transform:translateY(-5px);

    border-color:#22c55e55;

}

.goal-item span{

    display:block;

    color:#94a3b8;

    margin-bottom:15px;

    font-size:14px;

}

.goal-item strong{

    font-size:24px;

    color:white;

}

.countdown strong{

    color:#22c55e;

    font-size:32px;

}

.goal-progress{

    margin-top:10px;

}

.progress-top{

    display:flex;

    justify-content:space-between;

    margin-bottom:12px;

    color:#cbd5e1;

}

.progress{

    width:100%;

    height:14px;

    background:#111827;

    border-radius:30px;

    overflow:hidden;

}

.progress-bar{

    height:100%;

    border-radius:30px;

    background:linear-gradient(90deg,#22c55e,#16a34a);

    box-shadow:0 0 20px rgba(34,197,94,.6);

}


@media(max-width:900px){

    .goal-header{
    
        flex-direction:column;
    
    }
    
    .goal-info{
    
        grid-template-columns:1fr;
    
    }
    
    .goal-header h1{
    
        font-size:28px;
    
    }
    
    }
    
    @media(max-width:600px){
    
    .goal-page{
    
        padding:18px;
    
    }
    
    .goal-card{
    
        padding:22px;
    
        border-radius:18px;
    
    }
    
    .goal-header h1{
    
        font-size:24px;
    
    }
    
    .goal-item{
    
        padding:20px;
    
    }
    
    .goal-item strong{
    
        font-size:20px;
    
    }
    
    .countdown strong{
    
        font-size:28px;
    
    }
    
    }





    .goal-edit-page{

        display: none;
        width:100%;
        padding:35px;
        
        color:#fff;
    
    }
    
    .goal-edit-card{
    
        max-width:950px;
        margin:auto;
    
        background:linear-gradient(145deg,#07111d,#020617);
    
        border:1px solid rgba(34,197,94,.15);
    
        border-radius:24px;
    
        padding:40px;
    
        box-shadow:
        0 20px 50px rgba(0,0,0,.45);
    
    }
    
    .goal-edit-header{
    
        margin-bottom:35px;
    
    }
    
    .goal-edit-header h1{
    
        margin:15px 0;
    
        font-size:34px;
    
    }
    
    .goal-edit-header p{
    
        color:#94a3b8;
    
    }
    
    .edit-group{
    
        margin-bottom:25px;
    
    }
    
    .edit-group label{
    
        display:block;
    
        margin-bottom:10px;
    
        font-weight:600;
    
        color:#cbd5e1;
    
    }
    
    .edit-group input,
    
    .edit-group textarea{
    
        width:100%;
    
        padding:16px;
    
        border-radius:16px;
    
        border:1px solid #1e293b;
    
        background:#0f172a;
    
        color:#fff;
    
        font-size:15px;
    
        transition:.3s;
    
        outline:none;
    
    }
    
    .edit-group textarea{
    
        resize:vertical;
    
        min-height:160px;
    
    }
    
    .edit-group input:focus,
    
    .edit-group textarea:focus{
    
        border-color:#22c55e;
    
        box-shadow:0 0 0 4px rgba(34,197,94,.15);
    
    }
    
    .edit-row{
    
        display:grid;
    
        grid-template-columns:repeat(2,1fr);
    
        gap:20px;
    
    }
    
    .button-group{
    
        margin-top:35px;
    
        display:flex;
    
        justify-content:flex-end;
    
        gap:15px;
    
    }
    
    .cancel-btn{
    
        padding:14px 30px;
    
        background:#1e293b;
    
        color:white;
    
        text-decoration:none;
    
        border-radius:14px;
    
        transition:.3s;
    
    }
    
    .cancel-btn:hover{
    
        background:#334155;
    
    }
    
    .save-btn{
    
        padding:14px 35px;
    
        border:none;
    
        cursor:pointer;
    
        border-radius:14px;
    
        background:linear-gradient(135deg,#22c55e,#16a34a);
    
        color:white;
    
        font-size:15px;
    
        font-weight:bold;
    
        transition:.3s;
    
    }
    
    .save-btn:hover{
    
        transform:translateY(-3px);
    
        box-shadow:0 15px 30px rgba(34,197,94,.35);
    
    }
    
    @media(max-width:768px){
    
    .goal-edit-page{
    
        padding:20px;
    
    }
    
    .goal-edit-card{
    
        padding:25px;
    
    }
    
    .edit-row{
    
        grid-template-columns:1fr;
    
    }
    
    .button-group{
    
        flex-direction:column-reverse;
    
    }
    
    .button-group a,
    
    .button-group button{
    
        width:100%;
    
        text-align:center;
    
    }
    
    .goal-edit-header h1{
    
        font-size:28px;
    
    }
    
    }