body {
      margin: 0;
      font-family: Arial, sans-serif;
    }
    /* .sidebar {
      background-color: #000;
      color: #fff;
      height: 100vh;
      padding: 30px 15px;
      border: 2px solid red;
    } */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 240px;
  background-color: #000;
  color: #fff;
  padding: 30px 15px;
  z-index: 1000;
  overflow-y: auto;
}

#main-content {
  margin-left: 5%; 
  padding: 30px 20px;
  margin-right: 5%; 

}


.sidebar .nav-link {
  color: #fefcfc;
}
.sidebar .nav-link:hover {
  background-color: #3b3a3a;
  border-radius: 4px;
}
.sidebar .collapse .nav-link {
  color: #ccc;
}


.admin-logo {
  position: relative;
  display: inline-block;
  color: white; 
  z-index: 5;
  border-bottom: 1px solid rgb(41, 40, 40);
}





@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  #main-content {
    margin-left: 0;
    padding: 20px 15px;
  }
}

#gallery-section h2 {
  margin-left: 0;
  padding-left: 0;
}




    .logo {
      font-size: 1.8rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 30px;
    }
    .nav-link {
      color: #fff;
      padding: 15px 10px;
      display: block;
      font-size: 1.1rem;
      text-align: center;
      cursor: pointer;
    }
    .nav-link:hover, .nav-link.active {
      background-color: #333;
    }
    .content {
      padding: 30px;
      background-color: #fff;
      min-height: 100vh;
      color: #000;
    }






.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 3rem 4rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.gallery-card img {
  width: 100%;
  height: 220px; 
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}


.delete-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .delete-overlay {
  opacity: 1;
}

.delete-overlay a {
  color: #fff;
  background-color: #dc3545;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.delete-overlay a:hover {
  background-color: #c82333;
}

/* For very small screens */
@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .delete-overlay a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
    
    #gallery-form, #portfolio-form {
      display: none;
      margin-top: 20px;
    }
    #portfolio-table-wrapper {
      display: block;
    }
    @media (max-width: 991px) {
      .sidebar {
        height: auto;
      }
    }








.image-wrapper {
  position: relative;
}
.image-wrapper .delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
}
.image-wrapper:hover .delete-btn {
  display: inline-block;
}











.table-responsive-custom {
  overflow-x: auto;
}


.contact-table {
  width: 100%;
  table-layout: fixed;
}

.contact-table td,
.contact-table th {
  word-wrap: break-word;
  white-space: normal;
  vertical-align: top;
}


.contact-table td:nth-child(6),  
.contact-table th:nth-child(6) {
  width: 250px;  
  max-width: 300px;
}











.admin-home-section {
  background-color: #fefefe !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #333;
}

.welcome-title .highlight {
  color: #4c63af;
}

.welcome-text {
  font-size: 1.1rem;
  color: #555;
  margin-top: 10px;
  max-width: 500px;
}

.admin-icons i {
  font-size: 1.8rem;
  margin-right: 15px;
  color: #4c63af;
  transition: transform 0.3s;
}

.admin-icons i:hover {
  transform: scale(1.2);
  color: #2f4fa4;
}

.admin-illustration {
  max-width: 80%;
  height: auto;
}
