@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');


body{
  background-color: #f5f5f5;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}



/* Header Css */
header{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
header .top-header{
  height: 120px;
  max-width: 1350px;
  width: 95%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .top-header .dash-logo{
  color: #542ca7;
  font-weight: 600;
  font-size: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.search-wrap{
  width: 30%;
}
#search-txt{
  font-size: 18px!important;
  color: #fff;
}
#search-form{
  position: relative;
}
.search-wrap input{
  background-color: #fff;
  border: 1px solid #cdcdcd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 45px 8px 12px;
  text-transform: inherit;
  outline: none;
  width: 100%; 
  height: 36px;
  color: #333;
}
.search-wrap input::placeholder{
  color: #333;
  opacity: 0.8;
}

.search-wrap button{
  align-items: center;
  display: flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 36px;
  border-bottom-right-radius: 6px;
  border-top-right-radius: 6px;
  color: #f7fdfc;
  background-color: #542ca7;
  border: none;
  cursor: pointer;
  transition: ease-in-out 0.3s;
}
.search-wrap button:hover{
  background: #5722c9;
}

.search-wrap button i{
  font-size: 20px;
}

header nav{
  background-color: #fff;
  max-width: 1350px;
  width: 95%;
  height: 70px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 15px;
  border: 1px solid #cdcdcd;
}
header nav ul{
  display: flex;
  gap: 35px;
}
header nav ul li{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
header nav ul a{
  text-decoration: none;
  color: #333;
  transition: 0.2s ease-in-out;
  font-size: 16px;
}
header nav ul i{
  font-size: 25px;
}
header nav ul a:hover{
  color: #542ca7;
}
nav .menu-icon{
  display: flex;
  align-items: center;
  gap: 5px;
  color: #333;
  font-size: 16px;
  display: none;
  cursor: pointer;
}
nav .menu-icon i{
  font-size: 20px;
}
.admin-container{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background-color: #542ca7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-container i{
  color: #fff;
  font-size: 30px;
}
.admin-menu{
  position: absolute;
  right: 0;
  top: 75px;
  padding: 15px;
  display: none;
  flex-direction: column;
  gap: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.admin-menu.is-open {
  display: flex; 
}
.admin-menu a{
  text-decoration: none;
  color: #333;
  transition: 0.2s ease-in-out;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-menu i{
  font-size: 25px;
}
.admin-menu a:hover{
  color: #542ca7;
}
/* Header Css End */


/* Login start */
.login-form-cont{
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.login-form-cont .form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 95%;
    max-width: 430px;
    background: #fff;
    padding: 35px 20px;
    border-radius: 20px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }
  
  .login-form-cont .form .input-span {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .login-form-cont .form input[type="email"],
  .login-form-cont .form input[type="password"] {
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--clr-alpha);
    outline: 2px solid #9e9e9e;
  }
  
  .login-form-cont .form input[type="email"]:focus,
  .login-form-cont .form input[type="password"]:focus {
    outline: 2px solid #542ca7;
  }
  
  .login-form-cont .label {
    align-self: flex-start;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  .login-form-cont  .span {
    text-decoration: none;
    color: var(--bg-dark);
  }
  
  .login-form-cont .span a {
    color: var(--clr);
  }
.login-form-cont button{
    padding: 10px 51px;
    outline: none;
    border: none;
    border-radius: 10px;
    transition: ease-in-out 0.2s;
    background-color: #542ca7;
    color: #fff;
    margin-top: 15px;
}
.login-form-cont button:hover{
    background-color: #5722c9;
    color: #fff;
    cursor: pointer;
}
.login-title{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
}
.title{
    position: relative;
    display: flex;
    align-items: center;
    color: #444444;
    font-size: 20px;
}
.title::before, .title::after {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    border-radius: 50%;
    left: -30px;
    background-color: #542ca7;
}
.title::before {
    width: 18px;
    height: 18px;
    background-color: #542ca7;
}
@keyframes pulse {
    from {
      transform: scale(0.9);
      opacity: 1;
    }
  
    to {
      transform: scale(1.8);
      opacity: 0;
    }
  }
.title::after {
    width: 18px;
    height: 18px;
    animation: pulse 1s linear infinite;
}
.cookies-span{
    display: flex;
    align-items: center;
    gap: 5px;
}
.login-form-cont .error{
    margin-top: 28px;
    color: red;
    background: #ffd9d9;
    padding: 15px;
    border-radius: 10px;
}
/* Login End */ 


/* Container Css */
.container{
  max-width: 1350px;
  width: 95%;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #cdcdcd;
  overflow: hidden;
  margin-bottom: 100px;
}
.active-page-title{
  max-width: 1350px;
  width: 95%;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.active-page-title h1{
  color: #333;
  font-size: 18px;
  display: flex;
  align-items: center;
}
.active-page-title i{
  font-size: 27px;
}
.active-page-title a{
  color: #fff;
  display: flex;
  text-decoration: none;
  align-items: center;
  font-size: 14px;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  background: #542ca7;
  transition: 0.3s ease-in-out;
}
.active-page-title a:hover{
  background: #5722c9;
}
/* Container Css End */


/* Dashboard Css */
.cards-container{
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cards-container .card{
  background-color: #542ca7;
  border-radius: 8px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}
.card .round.small {
  top: -125px;
  right: -15px;
  opacity: .5;
}
.card .round.big {
  top: -85px;
  right: -95px;
}
.card .round {
  position: absolute;
  background: #946beb;
  border-radius: 50%;
  width: 210px;
  overflow: hidden;
  height: 210px;
  z-index: 1;
}
.card .card-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card .icon-wrapper{
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: rgba(0,0,0,.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .icon-wrapper i{
  color: #fff;
  font-size: 25px;
}
.card .link-wrapper{
  height: 50px;
  padding: 0 12px;
  border-radius: 8px;
  background-color: rgba(0,0,0,.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .link-wrapper a{
  color: #fff;
}
.card .card-stat{
  color: #fff;
  font-weight: 600;
  font-size: 34px;
  display: block;
  margin-top: 15px;
  margin-bottom: 15px;
}
.card .card-text{
  color: #fff;
  opacity: .5;
}

.chart-container{
  padding: 15px;
  position: relative;
}
.chart-container .chart-card{
  background-color: rgb(249 249 249);
  border-radius: 8px;
  border: 1px solid #cdcdcd;
}

.tables-container{
  padding: 15px;
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.tables-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
  flex: 1;
}
.tables-container thead {
  background: rgb(249 249 249);
}
.tables-container th, td {
  padding: 15px;
  border: 1px solid #ddd;
}
.tables-container th{
  text-align: left;
  font-size: 16px;
  color: #fff;
  background-color: #542ca7;
  font-weight: 100;
}
.tables-container tbody tr:hover {
  background: #f3f3f3;
}
.tables-container a {
  text-decoration: none;
  color: #3b3b3b;
  font-size: 16px;
}
.tables-container a:hover {
  text-decoration: underline;
}
.tables-container .table-card{
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tables-container .table-card h3{
  font-size: 16px;
  margin-bottom: 10px;
  color: #464646;
  display: flex;
  align-items: center;
  gap: 3px;
}
.tables-container .table-card i{
  font-size: 23px;
}
/* Dashboard Css End  */


/* Posts List css */
.p-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
}

.p-container thead {
  background: #f4f4f4;
}

.p-container th, td {
  padding: 15px;
  border: 1px solid #ddd;
}
.p-container th{
  text-align: left;
  font-size: 16px;
  color: #fff;
  background-color: #542ca7;
  font-weight: 100;
}

.p-container tbody tr:hover {
  background: #f9f9f9;
}

.p-container a {
  text-decoration: none;
  color: #3b3b3b;
  font-size: 16px;
}

.p-container a[href*="delete"] {
  color: #dc3545;
  margin-right: 6px;
}
.p-container .bx-edit {
  color: #39cf2b;
}

.p-container a:hover {
  text-decoration: underline;
}

.p-container td:last-child {
  direction: ltr;
  text-align: center;
}
.p-container i{
  font-size: 20px;
}
.p-container i:hover{
  transform: scale(1.2);
}
.pagination {
  display: flex;
  align-items: center;
  margin-top: 40px;
  font-family: 'Arial', sans-serif;
  gap: 6px;
}

.page-link {
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #444;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-link:hover {
  background-color: #f7f7f7;
  border-color: #ccc;
}

.page-link.active {
  background-color: #542ca7;
  color: white;
}

.page-link.disabled {
  color: #aaa;
  background-color: #f9f9f9;
  border-color: #e5e5e5;
  pointer-events: none;
  box-shadow: none;
}
.page-link.prev,
.page-link.next {
  background-color: #f0f3ff;
  min-width: 85px;
  text-align: center;
}

.page-link.prev:hover,
.page-link.next:hover {
  color: #fff;
  background-color: #542ca7;
}

.ellipsis {
  padding: 8px 6px;
  color: #777;
  font-weight: bold;
}
/* Posts List Css End */

/* Add Post Css */
.add-post-container {
  padding: 15px;
}
.add-post-header{
  height: auto;
  overflow: hidden;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  border-bottom: 1px solid #c7c7c7;
  padding-bottom: 30px;
}
.file-upload {
  width: 350px;
  height: 215px;
  background-color: white;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
  flex-shrink: 0;
}

.file-upload:hover {
  border-color: #666;
}

.file-upload input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload span {
  font-size: 16px;
  color: #666;
  user-select: none;
  transition: 0.3s;
  position: absolute;
  z-index: 1;
}

.file-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
  display: none;
}
.post-infos{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.title-section{
  width: 100%;
  display: flex;
  gap: 15px;
}
.title-section input {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  outline: none;
  border: 1px solid #ccc;
  font-size: 15px;
}
.desc-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}
.desc-section textarea{
  padding: 15px;
  border-radius: 8px;
  outline: none;
  border: 1px solid #ccc;
  height: 100%;
  font-size: 15px;
}
.add-post-body{
  overflow: hidden;
  margin-top: 30px;
  border-bottom: 1px solid #c7c7c7;
  padding-bottom: 30px;
}
.add-post-footer{
  overflow: hidden;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.add-post-footer textarea{
  padding: 15px;
  width: 100%;
  border-radius: 8px;
  outline: none;
  border: 1px solid #ccc;
  font-size: 15px;
}
.publish-section {
  display: flex;
  justify-content: space-between;
}
.add-post-footer select{
  padding: 10px 40px;
  border-radius: 8px;
  outline: none;
  border: 1px solid #ccc;
  font-size: 15px;
}
.add-post-footer button{
  padding: 10px 40px;
  border-radius: 8px;
  outline: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  background-color: #542ca7;
  color: #fff;
}
.add-post-footer button:hover{
  background-color: #5722c9;
}
/* Add Post Css End */

/* Session Error Css */
.dash-error-msg{
  background-color: #56bd7b;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  margin: 0 auto;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease;
  direction: ltr;
}
.dash-error-msg.hide {
  transform: translateX(-100%);
  opacity: 0;
}
.dash-error-msg span{
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.dash-error-msg i{
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.dash-error-msg a{
  font-size: 16px;
  text-decoration: none;
  color: #bd2525;
  transition: ease-in-out 0.2s;
}
.dash-error-msg a:hover{
  color: #d15252;
}
/* Session Error Css End */

/* Profile Section Css */
.profile-container{
  padding: 15px;
}
.profile-container form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-container input {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  outline: none;
  border: 2px solid #ccc;
  font-size: 15px;
}
.profile-container button{
  padding: 10px 40px;
  border-radius: 8px;
  outline: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  background-color: #542ca7;
  color: #fff;
}
.profile-container button:hover{
  background-color: #5722c9;
}
/* Profile Section Css End */


/* Footer Css */
footer{
  background-color: #3d3d3d;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
footer p{
  color: #fff;
  font-size: 16px;
}
footer a{
  text-decoration: none;
  color: #8534ff;
}
/* Footer Css End */

/* Responsive Css */
@media (max-width: 991px) {
  header .top-header, header nav, .active-page-title{
      width: 95%;
  }
  .container{
      flex-direction: column;
      width: 95%;
  }
  nav .mobile-menu-open{
      display: flex;
  }
  header nav ul{
      position: absolute;
      width: 100%;
      border-radius: 8px;
      z-index: 100;
      flex-direction: column;
      padding: 15px;
      top: 75px;
      left: 0;
      background-color: #fff;
      border: 1px solid #cdcdcd;
      display: none;
      gap: 25px;
  }
  .cards-container{
    grid-template-columns: repeat(1, 1fr);
  }
  .tables-container, .add-post-header{
    flex-direction: column;
  }
  .file-upload{
    width: auto;
  }
}
/* Responsive Css End */