/*بـسـم الله الـرحـمـن الـرحـیـم*/






.count-projects{
    width: 100%;
    height: 45px;
    padding: 9px;
    border: 2px solid #0f172a;
    border-radius: 10px;
    text-align: right;
    color: #16a34a;
    display: flex;
    justify-content: right;
    align-items: center;
}


.save-project{
    position: relative;
    width: 170px;
    height: 45px;
    border: none;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.save-project:hover{
    background: #15803d;
}

.save-project.loading{
    pointer-events: none;
    color: transparent;
}

.save-project.loading::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform: rotate(360deg);
    }
}





.projects-list-page2{

    width:100%;

    

    background:#020617;

    padding:35px;

    color:white;

}




.projects-title{

    margin-bottom:30px;

}


.projects-title h1{

    font-size:32px;

    margin-bottom:10px;

}



.projects-title p{

    color:#94a3b8;

}





/* Grid */


.projects-grid{


    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(320px,1fr));

    gap:25px;


}






/* Card */


.project-card{


    background:#07111d;

    border:1px solid rgba(255,255,255,.08);

    border-radius:25px;

    padding:25px;

    transition:.3s;


}



.project-card:hover{


    transform:translateY(-5px);

    border-color:#22c55e;

    box-shadow:0 20px 40px rgba(0,0,0,.3);


}





/* Header */


.project-head{


    display:flex;

    align-items:center;

    gap:15px;


}



.project-folder{


    width:60px;

    height:60px;

    border-radius:18px;

    background:#22c55e22;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:32px;


}




.project-head h2{


    font-size:21px;

    margin:0 0 8px;


}



.project-head span{


    color:#22c55e;

    font-size:13px;


}






/* Description */


.project-desc{


    color:#94a3b8;

    line-height:1.8;

    margin:20px 0;


}






/* Meta */


.project-meta{


    display:flex;

    justify-content:space-between;

    background:#020617;

    padding:15px;

    border-radius:15px;

    margin-bottom:20px;


}



.project-meta div{


    display:flex;

    flex-direction:column;

    gap:8px;


}



.project-meta label{


    color:#64748b;

    font-size:12px;


}




.status{


    padding:5px 12px;

    border-radius:20px;

    font-size:12px;


}



.progress{


    background:#2563eb33;

    color:#60a5fa;

}






/* Sections */


.project-sections{


    display:flex;

    flex-direction:column;

    gap:12px;


}




.section-item{


    display:flex;

    align-items:center;

    gap:12px;

    background:#0f172a;

    padding:13px;

    border-radius:15px;

}



.color-box{


    width:12px;

    height:45px;

    border-radius:10px;

    /*background:#22c55e;*/
    

}




.color-box.blue{

    background:#2563eb;

}




.section-item h4{

    margin:0 0 5px;

    font-size:14px;

}



.section-item p{

    margin:0;

    color:#94a3b8;

    font-size:12px;

}





@media(max-width:700px){


.projects-list-page{

    padding:20px;

}


.projects-grid{

    grid-template-columns:1fr;

}


}
/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
.project-list-page{

    background:#020617;

    
    

    padding:35px;

    color:white;

}




/* Toolbar */

.project-toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

    flex-wrap:wrap;

    gap:20px;

}



.project-toolbar h1{

    font-size:32px;

}



.project-toolbar p{

    color:#94a3b8;

}



.add-project{

    background:#22c55e;

    border:none;

    color:white;

    padding:14px 28px;

    border-radius:15px;

    cursor:pointer;

    transition:.3s;

}



.add-project:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 30px #22c55e55;

}





/* Filter */


.project-filter{

    display:flex;

    gap:15px;

    margin-bottom:30px;

}



.project-filter input,
.project-filter select{


    background:#07111d;

    border:1px solid #1e293b;

    color:white;

    padding:14px;

    border-radius:14px;

    flex:1;

}



.project-filter input:focus,
.project-filter select:focus{

    outline:none;

    border-color:#22c55e;

}






/* Cards */


#projectList{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(320px,1fr));

    gap:25px;

}






.project-view-card{


    background:#07111d;

    border:1px solid rgba(255,255,255,.08);

    border-radius:25px;

    padding:25px;

    transition:.3s;

    position:relative;

}




.project-view-card:hover{


    transform:translateY(-6px);

    border-color:#22c55e;

}





.project-view-header{


    display:flex;

    justify-content:space-between;

    align-items:center;

}




.project-view-header h2{


    font-size:22px;

}




.project-description{


    color:#94a3b8;

    margin:15px 0;

    line-height:1.8;

}







/* Sections */


.project-sections{


    display:flex;

    flex-direction:column;

    gap:12px;

}





.view-section{


    display:flex;

    align-items:center;

    gap:12px;


    background:#020617;

    padding:12px;

    border-radius:14px;

    border-right:5px solid #22c55e;

}





.section-folder{


    font-size:25px;

}



.section-info{


    flex:1;

}



.section-info h4{

    margin:0;

}



.section-info span{

    font-size:12px;

    color:#94a3b8;

}





/* badges */


.badge{


    padding:5px 12px;

    border-radius:20px;

    font-size:12px;

}



.high{

    background:#dc262633;

    color:#f87171;

}



.medium{

    background:#f59e0b33;

    color:#fbbf24;

}



.low{

    background:#22c55e33;

    color:#4ade80;

}






/* responsive */


@media(max-width:700px){


.project-list-page{

    padding:20px;

}



.project-filter{

    flex-direction:column;

}



}



/* ===========================
   Section Card New Style
=========================== */

.section-card{

    width:100%;

    display:flex;

    gap:18px;

    align-items:flex-start;

    background:#0f172a;

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:20px;

    transition:.3s;

    position:relative;

}


.section-card:hover{

    border-color:#22c55e;

    transform:translateY(-3px);

    box-shadow:0 15px 30px rgba(0,0,0,.25);

}




/* Folder */

.folder-icon{

    width:70px;

    height:70px;

    flex-shrink:0;

    background:rgba(34,197,94,.12);

    border-radius:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:38px;

}



/* Content */

.section-content{

    flex:1;

    display:flex;

    flex-direction:column;

    gap:15px;

}



/* Inputs */

.section-content input,
.section-content textarea{


    width:100%;

    background:#020617;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    padding:14px;

    color:#fff;

    font-size:14px;

    box-sizing:border-box;

}



.section-content textarea{

    min-height:90px;

    resize:vertical;

}



.section-content input:focus,
.section-content textarea:focus{


    outline:none;

    border-color:#22c55e;

    box-shadow:0 0 0 3px rgba(34,197,94,.12);

}





/* ===========================
   Options
=========================== */


.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;

}





/* Delete Section */

.delete-section{


    width:45px;

    height:45px;

    flex-shrink:0;

    border:none;

    border-radius:12px;

    background:#dc2626;

    color:#fff;

    cursor:pointer;

    transition:.25s;

}



.delete-section:hover{


    background:#b91c1c;

    transform:scale(1.1);

}





/* ===========================
   Project Buttons
=========================== */


.project-buttons{


    display:flex;

    justify-content:flex-end;

    gap:15px;

    flex-wrap:wrap;

}



.project-buttons button{


    border:none;

    padding:13px 24px;

    border-radius:14px;

    cursor:pointer;

    color:white;

    transition:.25s;

}





.add-section{


    background:#2563eb;

}



.add-section:hover{


    background:#1d4ed8;

}




.save-project{


    background:#22c55e;

}



.save-project:hover{


    background:#16a34a;

    box-shadow:0 10px 25px rgba(34,197,94,.3);

}





.delete-project{


    background:#dc2626;

}



.delete-project:hover{


    background:#b91c1c;

}





/* ===========================
   Status Colors
=========================== */


.section-status{


    border-right:3px solid #22c55e;

}



.section-priority{


    border-right:3px solid #f59e0b;

}



.section-mood{


    border-right:3px solid #8b5cf6;

}





/* ===========================
   Responsive
=========================== */


@media(max-width:1000px){


.section-options{


    grid-template-columns:repeat(2,1fr);

}


}





@media(max-width:700px){


.section-card{


    flex-direction:column;

}



.folder-icon{


    width:60px;

    height:60px;

}



.section-options{


    grid-template-columns:1fr;

}



.delete-section{


    width:100%;

}



.project-buttons{


    flex-direction:column;

}



.project-buttons button{


    width:100%;

}



}



*{margin: 0;padding: 0;font-family: vazir;}

textarea{resize: none !important;}

/* ===========================
   Projects Page
=========================== */

.projects-page{
    width:100%;
    padding:35px;
    background:#020617;
    display:none;
    flex-direction:column;
    gap:30px;
    box-sizing:border-box;
}

/* ===========================
   Header
=========================== */

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;
}

.page-header h1{
    color:#fff;
    font-size:32px;
    font-weight:700;
}

#addProject{
    background:#22c55e;
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:14px;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
}

#addProject:hover{
    background:#16a34a;
    transform:translateY(-3px);
    box-shadow:0 12px 25px rgba(34,197,94,.35);
}

/* ===========================
   Projects
=========================== */

#projects{
    display:flex;
    flex-direction:column;
    gap:28px;
}

/* ===========================
   Project Card
=========================== */

.project-card{

    background:#07111d;

    border:1px solid rgba(34,197,94,.18);

    border-radius:22px;

    padding:28px;

    display:flex;

    flex-direction:column;

    gap:25px;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

    transition:.35s;

}

.project-card:hover{

    border-color:#22c55e;

    transform:translateY(-4px);

}

/* ===========================
   Project Inputs
=========================== */

.project-header{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.project-header input,
.project-header textarea{

    width:100%;

    background:#0f172a;

    color:#fff;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    padding:15px;

    font-size:15px;

    transition:.25s;

    box-sizing:border-box;

}

.project-header textarea{

    min-height:120px;

    resize:vertical;

}

.project-header input:focus,
.project-header textarea:focus{

    outline:none;

    border-color:#22c55e;

    box-shadow:0 0 0 4px rgba(34,197,94,.15);

}

/* ===========================
    Button save
============================== */
.save-project{
    width: 160px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background-color: #16a34a;
    color: #fafafa;
    font-family: vazir;

}

.save-project:hover{
    box-shadow:0 0 0 4px rgba(34,197,94,.15);
}



/* ===========================
   Sections
=========================== */

.sections{

    display:flex;

    flex-direction:column;

    gap:18px;

}

/* ===========================
   Folder Card
=========================== */

.section-card{

    display:flex;

    gap:18px;

    align-items:flex-start;

    background:#0f172a;

    border:1px solid rgba(255,255,255,.06);

    border-radius:18px;

    padding:18px;

    transition:.3s;

}

.section-card:hover{

    border-color:#22c55e;

    transform:translateX(-5px);

}

/* Folder */

.folder-icon{

    width:70px;

    height:70px;

    flex-shrink:0;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:40px;

    background:rgba(34,197,94,.08);

    border-radius:18px;

}

/* Content */

.section-content{

    flex:1;

    display:flex;

    flex-direction:column;

    gap:12px;

}

.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{

    resize:vertical;

    min-height:90px;

}

.section-content input:focus,
.section-content textarea:focus{

    outline:none;

    border-color:#22c55e;

}

/* Delete */

.delete-section{

    width:42px;

    height:42px;

    border:none;

    border-radius:12px;

    background:#dc2626;

    color:white;

    cursor:pointer;

    transition:.25s;

}

.delete-section:hover{

    background:#b91c1c;

    transform:scale(1.08);

}

/* ===========================
   Footer
=========================== */

.project-buttons{

    display:flex;

    justify-content:flex-end;

    gap:15px;

    flex-wrap:wrap;

}

.add-section{

    background:#2563eb;

    color:#fff;

    border:none;

    padding:12px 22px;

    border-radius:12px;

    cursor:pointer;

    transition:.25s;

}

.add-section:hover{

    background:#1d4ed8;

}

.delete-project{

    background:#dc2626;

    color:#fff;

    border:none;

    padding:12px 22px;

    border-radius:12px;

    cursor:pointer;

    transition:.25s;

}

.delete-project:hover{

    background:#b91c1c;

}

/* ===========================
   Scrollbar
=========================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#22c55e;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#07111d;

}

/* ===========================
   Responsive
=========================== */

@media(max-width:900px){

    .projects-page{

        padding:20px;

    }

    .section-card{

        flex-direction:column;

    }

    .folder-icon{

        width:60px;

        height:60px;

        font-size:34px;

    }

}

@media(max-width:600px){

    .page-header{

        flex-direction:column;

        align-items:stretch;

    }

    #addProject{

        width:100%;

    }

    .project-buttons{

        flex-direction:column;

    }

    .project-buttons button{

        width:100%;

    }

}