/* start side bar */
.dashboard {
    display: flex;
    min-height: 100vh;
}
.add-job-container{
    display: none;
}
.sidebar {
    width: 200px;
    background-color: #2c2c2c;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}

.sidebar h2 {
    color: #ffffff;
    margin-top: 0;
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    color: #b3b3b3;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar nav ul li:hover,
.sidebar nav ul li.active {
    background-color: #3c3c3c;
    border-radius: 5px;
    color: #ffffff;
}
/* end side bar */

/* start main content */
.main-content {
    flex-grow: 1;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
    display: block;
}

.main-content .header {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.main-content .header h1 {
    margin: 0;
    color: #ffffff;
}

.overview{
    display: block;
}
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    margin-right: 30px;
}
.sidebar-title{
    display: flex;
    justify-content: space-between;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    margin-right: 10px;
    text-align: center;
}

.stat-card:last-child {
    margin-right: 0;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #b3b3b3;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}

.charts {
    display: flex;
    justify-content: space-between;
  
    margin-bottom: 20px;
}

.chart-container {
   display: flex;
   justify-content: baseline;
   align-items: center;
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
    margin-right: 10px;
}

.chart-container:last-child {
    margin-right: 0;
}

.chart-container:last-child {
    margin-right: 0;
}

.job-list {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
}

.job-list h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.job-list ul {
    list-style-type: none;
    padding: 0;
}

.job-list li {
    background-color: #3c3c3c;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.job-list li:last-child {
    margin-bottom: 0;
}


/* applied jobs lits */
.JobappliedList {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.JobappliedList h2 {
    margin-top: 0;
    color: #ffffff;
}

.JobappliedList ul {
    list-style-type: none;
    padding: 0;
}

.JobappliedList  li {
    background-color: #3c3c3c;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

.JobappliedList li:last-child {
    margin-bottom: 0;
}

/* end */
/* start main content */

/* job post from css */
.add-job-container{
    display: none;
}
    
/* .blog-container{
    background-color: #fff;
    max-width: 500px;
    margin:  auto;
    padding: 30PX;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}
.post-container{
    background-color: #fff;
    max-width: 500px;
    margin:  auto;
    padding: 30PX;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

#bloghead{
    text-align: center;
} */

#form{
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.allElements{
  width: 100%;
  margin-bottom: 10px;
  padding: 12px  ;
  border-radius: 5px;
  border: none;
  background-color: #EDEDED;
  font-size: 1rem;
  align-items: center;
}

textarea{
    width: 400px; 
    overflow: hidden;
    resize: none;  
    box-sizing: border-box; 
    
}
#form button{
    width: 100%;
    background-color: #DA0037;
    color: #EDEDED;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
}
#form input select {
     padding: 12px 12px;
      
     
}
.date-and-select{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin : 10px;
    flex-direction: row;
    width: 100%;
    gap: 5px;
    
    
}

.date-placeholder {
    color: #aaa;

}
option{
    background-color: #171717;
    font-size: 24px;
}

.image{
    width: 100%;
}
/* end job post form */

/* update job section */
    .update-job-container{
        display: none;
        border: solid 3px #ccc;
    }

    .update-job-container textarea{
        max-width: 100%; 
        overflow: hidden;
        resize: none;  
        box-sizing: border-box; 
        
         
        
    }

/* end update job section */
/* start job listst style  */
#job-list-con, #users{
    display: none;
}
.search-con{
    background-color: #2c2c2c;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 5px;
    gap: .5rem;
    position: relative;
}
.search-input{
    flex: 1;
     padding: 10px 30px;
     background-color: #444;
     border: none;
     color: #EDEDED;
     border-radius: 5px;
 }

 /* search input users */
 .search-input1{
    flex: 1;
     padding: 10px 30px;
     background-color: #444;
     border: none;
     color: #EDEDED;
     border-radius: 5px;
 }
.search-icon{
     position: absolute;
     top: 35%;
     left: 2%;
 }
table{
    width: 100%;
    border: 1px solid #EDEDED;
    border-collapse:collapse;
    text-align: center;
    border-radius: 10px;
}
table thead th{
    border-bottom: 1px solid #EDEDED;
    padding: 10px;
    background-color: #2c2c2c;
    /* font-size: 10px; */
}
table tbody tr {
    border-bottom: 1px solid #EDEDED;  
}
table tbody tr  td{
    padding: 10px;
    /* font-size: 10px; */
}
table tbody tr:hover{
  
    background-color: #2c2c2c;
}
table img{
    width: 50px;
    height: 50px;
    border-radius: 100%;
}
.edit-btn,.delete-btn, .add-btn{
    background-color: #fff;
    border: none;
    padding: 8px;
    border-radius: 3px;
    font-size: 14px;
    color: #EDEDED;
    cursor: pointer;
}

/* strat users styles */


/* end job listst style  */


/* start user list style */

.edit-btn,.delete-btn, .addjob-btn{
    background-color: #fff;
    border: none;
    padding: 8px;
    border-radius: 3px;
    font-size: 14px;
    color: #EDEDED;
    cursor: pointer;
}

.edit-btn{
    background-color: #008000;
}
.edit-btn:hover{
    background-color: #069006;
}
.delete-btn,.add-btn{
    background-color: #DA0037;
}
.delete-btn:hover ,.addjob-btn:hover{
    background-color: #FF0044;

}
#saveEdit, #saveAdd{
    background-color: #1f6feb;
}
#saveEdit:hover, #saveAdd:hover{
    background-color: #54AEFF;
   
}
/* start user list style */

/* strat applications styles */
#applications-con{
    display: none;
}

.applications-list{
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
   
}
.applicant-card{
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap:.5rem;
}
/* end applications styles */
/* start edit pop-up design */
.edit-container, .add-container{
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 111;
    background-color: rgba(255, 255, 255, 0.5);
}
.popup {
    background-color: #444;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid  #ededed;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
    gap: 1rem;
    width: 500px;
}
.popup h1{
    text-align: center;
    font-size: 2rem;
}
.popup #editForm, .popup #addForm{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.popup #editForm input , .popup #addForm input{
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    background-color: #ededed;
}
.is-admin{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.edit-container.hidden ,.add-container.hidden  {
    display: none;
}
.edit-container.show , .add-container.show {
    display: flex;
}
/* end edit pop-up design */


@media (max-width: 768px) {
    /* start side bar responsive */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }
     /* end side bar responsive */
       /* start main content responsive */
    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }
    .stat-card{
        width: 100%;
    }

    .stats, .charts {
       
        flex-direction: column;
    }
    .chart-container{
        width: 100%;
    }
    .stat-card, .chart-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
       /* end main content responsive */
       
       /* start job lists conten responsive design */
       .edit-btn,.delete-btn{
        padding: 5px;
        font-size: 10px;
       }
       table img{
        width: 30px;
        height: 30px;
        border-radius: 100%;
       }
       table thead th{
        font-size: 9px;
     }
     table tbody tr td{
        font-size: 9px;
     }
     .search-icon{
        left: 4%;
     }

     /* end job lists conten responsive design */

     .applications-list{
       
        justify-content: center;
     }
     .applicant-card{
        width: 100%;
     }

    
}

@media (max-width: 487px){
 .header h1{
    font-size: 1.4rem;
 }
 table thead th{
    font-size: 6px;
 }
 table tbody tr td{
    padding: 5px;
    font-size: 6px;
 }
 table img{
    width: 20px;
    height: 20px;
    border-radius: 100%;
   }
 .edit-btn,.delete-btn{
    padding: 5px;
    font-size: 8px;
   }
}

.JobappliedList  li {
    cursor: pointer;
}