/*بـسـم الله الـرحـمـن الـرحـیـم*/



.section-content input,
.section-content textarea{

    width:100%;

    background:#020617;

    color:#fff;

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    padding:13px;

    font-size:14px;

    box-sizing:border-box;

}

.section-content textarea{

    margin-top: 9px;
    resize:none;

    min-height:90px;

}



.delete-section{
    margin: 10px auto;
    float: left;
    width:80px;

    height:42px;

    border:none;

    border-radius:12px;

    background:#dc2626;

    color:white;

    cursor:pointer;

    transition:.25s;

}

.delete-section:hover{

    background:#b91c1c;

    transform:scale(1.08);

}


.section-content input:focus,
.section-content textarea:focus{

    outline:none;

    border-color:#22c55e;

}




* {font-family: vazir;}
textarea{resize: none;}

#deleteProject{
    background: red;
    color: whitesmoke;
}

#deleteProject:hover{
    opacity: 85%;
}

.edit-project-name{
    margin-top: 15px;

    width:100%;

    background:#020617;

    color:white;

    border:1px solid #22c55e;

    border-radius:10px;

    padding:10px;

    font-size:17px;

    font-weight:bold;

}


#projectDescribe{

    width:100%;

    min-height:100px;

    background:#020617;

    color:white;

    border:1px solid #334155;

    border-radius:12px;

    padding:15px;

    margin-top:15px;

    resize:none;

}

/* =========================
   PROJECT PAGE
========================= */

.project-page{
    width:100%;
    max-width:1400px;
    margin:auto;
    padding:32px;
    color:#fff;
}

/* =========================
   HEADER
========================= */

.project-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:24px;
    margin-bottom:28px;
    flex-wrap:wrap;
}

.project-title h1{
    font-size:36px;
    margin:10px 0 8px;
    font-weight:800;
}

.project-title p{
    color:#94a3b8;
    font-size:15px;
    line-height:1.8;
    max-width:620px;
}

.project-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:#14532d;
    color:#bbf7d0;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    border:1px solid #166534;
}

.project-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.project-actions button{
    height:44px;
    padding:0 18px;
    border-radius:12px;
    border:none;
    cursor:pointer;
    font-weight:700;
    transition:.25s;
}

.edit-btn{
    background:#22c55e;
    color:#04130a;
}

.edit-btn:hover{
    background:#16a34a;
    transform:translateY(-2px);
}

.share-btn{
    background:#111827;
    color:#e5e7eb;
    border:1px solid #1f2937;
}

.share-btn:hover{
    background:#1f2937;
    transform:translateY(-2px);
}

/* =========================
   PROGRESS CARD
========================= */

.project-progress-card{
    background:linear-gradient(145deg,#07111d,#020617);
    border:1px solid #14343d;
    border-radius:22px;
    padding:24px;
    margin-bottom:28px;
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}

.progress-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.progress-header h3{
    font-size:18px;
}

.progress-header span{
    font-size:24px;
    font-weight:800;
    color:#22c55e;
}

.progress-bar{
    width:100%;
    height:14px;
    background:#0f172a;
    border-radius:999px;
    overflow:hidden;
}

.progress-bar div{
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#22c55e,#16a34a);
    box-shadow:0 0 16px rgba(34,197,94,.45);
}

/* =========================
   STATS
========================= */

.project-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin-bottom:30px;
}

.stat-box{
    background:linear-gradient(145deg,#07111d,#020617);
    border:1px solid #14343d;
    border-radius:20px;
    padding:24px;
    text-align:center;
    transition:.25s;
}

.stat-box:hover{
    transform:translateY(-6px);
    border-color:#22c55e;
    box-shadow:0 16px 30px rgba(34,197,94,.08);
}

.stat-box h2{
    font-size:34px;
    color:#22c55e;
    margin-bottom:8px;
    font-weight:800;
}

.stat-box p{
    color:#94a3b8;
    font-size:14px;
}

/* =========================
   CONTENT LAYOUT
========================= */

.project-content{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:24px;
    align-items:start;
}

.project-main,
.project-sidebar{
    display:grid;
    gap:22px;
}

/* =========================
   CARD
========================= */

.card{
    background:linear-gradient(145deg,#07111d,#020617);
    border:1px solid #14343d;
    border-radius:22px;
    padding:22px;
    box-shadow:0 16px 36px rgba(0,0,0,.22);
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
    gap:14px;
    flex-wrap:wrap;
}

.card-header h3{
    font-size:18px;
}

.card-header button{
    background:#22c55e;
    color:#04130a;
    border:none;
    padding:10px 16px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

.card-header button:hover{
    background:#16a34a;
}

/* =========================
   SECTIONS
========================= */

.section-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 0;
    gap:16px;
}

.section-item + .section-item{
    border-top:1px solid rgba(148,163,184,.12);
}

.section-item h4{
    margin-bottom:6px;
    font-size:16px;
}

.section-item small{
    color:#94a3b8;
}

.section-item span{
    color:#22c55e;
    font-weight:800;
    white-space:nowrap;
}

.mini-progress{
    width:100%;
    height:10px;
    background:#0f172a;
    border-radius:999px;
    overflow:hidden;
    margin-bottom:14px;
}

.mini-progress div{
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#22c55e,#16a34a);
}

/* =========================
   ACTIVITY
========================= */

.activity-list{
    list-style:none;
    display:grid;
    gap:16px;
}

.activity-list li{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:14px;
    border-radius:16px;
    background:rgba(15,23,42,.45);
    border:1px solid rgba(148,163,184,.10);
}

.activity-list li span{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#0f172a;
    font-size:20px;
    flex-shrink:0;
}

.activity-list h4{
    font-size:15px;
    margin-bottom:4px;
}

.activity-list small{
    color:#94a3b8;
}

/* =========================
   SIDEBAR INFO
========================= */

.info-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid rgba(148,163,184,.12);
}

.info-row:last-child{
    border-bottom:none;
}

.info-row span{
    color:#94a3b8;
}

.info-row strong{
    color:#fff;
    font-weight:700;
}

/* =========================
   TAGS
========================= */

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}

.tags span{
    background:#0f172a;
    border:1px solid #1e293b;
    color:#cbd5e1;
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    transition:.25s;
}

.tags span:hover{
    background:#14532d;
    border-color:#22c55e;
    color:#dcfce7;
}

/* =========================
   CHART
========================= */

#sectionChart{
    width:100%;
    max-height:240px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:650px){

    .project-stats{
        display: none;
    }

    .mobile-inf{
        display: block !important;
    }

}

.mobile-inf{display: none;}

@media (max-width:1100px){

    .project-stats{
        grid-template-columns:repeat(2,1fr);
    }

    .project-content{
        grid-template-columns:1fr;
    }

}

@media (max-width:768px){

    .project-page{
        padding:18px;
    }

    .project-header{
        flex-direction:column;
        align-items:stretch;
    }

    .project-title h1{
        font-size:28px;
    }

    .project-actions{
        width:100%;
    }

    .project-actions button{
        flex:1;
    }

    .project-stats{
        grid-template-columns:1fr;
    }

    .card{
        padding:18px;
    }

    .section-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .section-item span{
        align-self:flex-end;
    }

    .activity-list li{
        padding:12px;
    }

}

@media (max-width:480px){

    .project-title h1{
        font-size:24px;
    }

    .progress-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .progress-header span{
        font-size:22px;
    }

    .stat-box h2{
        font-size:30px;
    }

}





/*/////////////////////////////////////////////--- ADD PART ---////////////////////////////////////////////////////////////*/
/* ===========================
   Folder Card
=========================== */
.section-card{

    min-height: fit-content;
    padding: 30px 0;
    width:100%;
    background:linear-gradient(145deg,#07111d,#020617);
    border:1px solid rgba(0,255,170,.08);
    border-radius:18px;
    padding:22px;
    display: flex;
    flex-direction: column;
    margin-top:20px;
    transition:.35s;
    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.section-card:hover{

    transform:translateY(-4px);
    border-color:#22c55e;
    box-shadow:0 18px 35px rgba(34,197,94,.18);

}

.section-top{

    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;

}

.section-title{
    margin: 10px 0;

    display:flex;
    gap:10px;

}

.section-title h3{

    color:#fff;
    font-size:23px;
    margin:0;

}

.status{

    width:max-content;
    padding:7px 14px;
    border-radius:50px;
    font-size:13px;
    font-weight:600;

}

.completed{

    background:#22c55e26;
    color:#4ade80;

}

.pending{

    background:rgba(239,68,68,.12);
    color:#f87171;

}

.color-circle{

    width:34px ;
    height:34px ;
    border-radius:50%;
    border:3px solid rgba(255,255,255,.18);
    flex-shrink:0;

}



.btn-item{
    width: 80px;
    height: 40px;
    border: none;
    border-radius: 9px;
    color: wheat;
    font-size: 16px;
}

.delete{background-color: red;}
.done{background-color: #16a34a;color: #07111d;}

.delete:hover{
    opacity: 90%;
    box-shadow: 2px 2px 6px rgb(255, 77, 77) , -2px -2px 6px rgb(255, 77, 77);
}


.done:hover{
    opacity: 90%;
    box-shadow: 2px 2px 6px rgb(92, 255, 77) , -2px -2px 6px rgb(98, 255, 77);
}


.section-description{

    color:#94a3b8;
    margin:18px 0 25px;
    line-height:1.9;
    font-size:15px;

}

.section-grid{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;

}

.info-box{

    background:#0f172a;
    border:1px solid rgba(255,255,255,.06);
    border-radius:14px;
    padding:18px;
    transition:.3s;

}

.info-box:hover{

    border-color:#22c55e;
    transform:translateY(-2px);

}

.info-box small{

    display:block;
    color:#64748b;
    margin-bottom:10px;
    font-size:13px;

}

.info-box strong{

    color:#fff;
    font-size:16px;
    font-weight:600;

}

.color-preview{

    display:flex;
    align-items:center;
    gap:10px;
    color:#fff;

}

.color-preview span{

    width:18px;
    height:18px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.2);

}

@media(max-width:700px){

    .section-grid{

        grid-template-columns:1fr;

    }

    .section-top{
        margin-bottom: 10px;
        flex-direction:column;
        gap:15px;

    }

    .section-title h3{

        font-size:20px;

    }

}

/* ===========================
   Responsive
=========================== */

@media(max-width:900px){


    .section-card{

        flex-direction:column;

    }

    .folder-icon{

        width:60px;

        height:60px;

        font-size:34px;

    }

}


.section-options{


    display:grid;

    grid-template-columns:

    repeat(4,1fr);

    gap:14px;

    align-items:center;

    background:#07111d;

    padding:16px;

    border-radius:16px;

}

.section-options label{


    color:#94a3b8;

    font-size:13px;

}

.section-options select{


    width:100%;

    background:#020617;

    color:#fff;

    border:1px solid rgba(255,255,255,.1);

    border-radius:12px;

    padding:12px;

    cursor:pointer;

    transition:.25s;

}

.section-options select:hover{


    border-color:#22c55e;

}

.section-options select:focus{


    outline:none;

    border-color:#22c55e;

}


/* Color Picker */

.section-color{


    width:100%;

    height:45px;

    padding:3px;

    border-radius:12px;

    background:#020617;

    border:1px solid rgba(255,255,255,.1);

    cursor:pointer;

}