/* Google Font Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins" , sans-serif;
}
.sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 78px;
  background: #e23e57;
  padding: 6px 14px;
  z-index: 99;
  transition: all 0.5s ease;
}
.sidebar.open{
  width: 250px;
}
.sidebar .logo-details{
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}
.sidebar .logo-details .icon{
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar .logo-details .logo_name{
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.5s ease;
}
.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name{
  opacity: 1;
}
.sidebar .logo-details #btn{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 22px;
  transition: all 0.4s ease;
  font-size: 23px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
}
.sidebar.open .logo-details #btn{
  text-align: right;
}
.sidebar i{
  color: #fff;
  height: 60px;
  min-width: 50px;
  font-size: 28px;
  text-align: center;
  line-height: 60px;
}
.sidebar .nav-list{
  margin-top: 20px;
  height: 100%;
}
.sidebar li{
  position: relative;
  margin: 8px 0;
  list-style: none;
}
.sidebar li .tooltip{
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0s;
}
.sidebar li:hover .tooltip{
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
  top: 50%;
  transform: translateY(-50%);
}
.sidebar.open li .tooltip{
  display: none;
}
.sidebar input{
  font-size: 15px;
  color: #FFF;
  font-weight: 400;
  outline: none;
  height: 50px;
  width: 100%;
  width: 50px;
  border: none;
  border-radius: 12px;
  transition: all 0.5s ease;
  background: #1d1b31;
}
.sidebar.open input{
  padding: 0 20px 0 50px;
  width: 100%;
}
.sidebar .bx-search{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 22px;
  background: #1d1b31;
  color: #FFF;
}
.sidebar.open .bx-search:hover{
  background: #1d1b31;
  color: #FFF;
}
.sidebar .bx-search:hover{
  background: #FFF;
  color: rgba(240, 135, 117, 0.795);
}
.sidebar li a{
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  transition: all 0.4s ease;
  background: #e23e57;
}
.sidebar li a:hover{
  background: #FFF;
}
.sidebar li a .links_name{
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
}
.sidebar.open li a .links_name{
  opacity: 1;
  pointer-events: auto;
}
.sidebar li a:hover .links_name,
.sidebar li a:hover i{
  transition: all 0.5s ease;
  color: #e23e57;
}
.sidebar li i{
  height: 50px;
  line-height: 50px;
  font-size: 18px;
  border-radius: 12px;
}
.sidebar li.profile{
  position: fixed;
  height: 60px;
  width: 78px;
  left: 0;
  bottom: -8px;
  padding: 10px 14px;
  background: #1d1b31;
  transition: all 0.5s ease;
  overflow: hidden;
}
.sidebar.open li.profile{
  width: 250px;
}
.sidebar li .profile-details{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.sidebar li img{
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 10px;
}
.sidebar li.profile .name,
.sidebar li.profile .job{
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}
.sidebar li.profile .job{
  font-size: 12px;
}
.sidebar .profile #log_out{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #1d1b31;
  width: 100%;
  height: 60px;
  line-height: 60px;
  border-radius: 0px;
  transition: all 0.5s ease;
}
.sidebar.open .profile #log_out{
  width: 50px;
  background: none;
}
.home-section{
  position: relative;
  background-color: #002147;
  background-image: linear-gradient(315deg, #002147 0%, #3b3c36 74%);  
  min-height: 100vh;
  top: 0;
  left: 78px;
  width: calc(100% - 78px);
  transition: all 0.5s ease;
  z-index: 2;
}
.sidebar.open ~ .home-section{
  left: 250px;
  width: calc(100% - 250px);
}
.home-section .text{
  display: inline-block;
  color: #e23e57;
  font-size: 25px;
  font-weight: 500;
  margin: 18px
}

/* Start movie element css */



.movie-card img{
  cursor: pointer;
  border: solid 3px #e23e57;
  border-radius: 5px;
}

.movie-card h3, p{
  color: white;
}

.search-result {
  cursor: pointer;
  max-width: 250px;
  min-width: 250px;
  min-height: 400px;
  max-height: 400px;
  margin-top: 25px;
}

.search-result h3, p {
  color: white;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.pagination button {
  padding: 5px 10px;
  border: 1px solid #032541;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.pagination button:hover:not(:disabled) {
  background: #032541;
  color: white;
}

.pagination button:disabled {
  background: #032541;
  color: white;
  cursor: default;
}

.pagination input {
  width: 50px;
  text-align: center;
  border: 1px solid #032541;
  border-radius: 4px;
  padding: 5px;
}

.hamburger-toggle-div {
  background-color: #002147;
  display: none;
}

#hamburger-toggle {
  display: none;
  font-size: 28px;
  color: white;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin-left: auto;
    padding-right: 10px;
}

@media (max-width: 768px) {

  .hamburger-toggle-div {
    display: block;
    height: 60px;
    background-color: #e23e57;
  }

  /* Hamburger icon outside sidebar */
  #hamburger-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 26px;
    color: white;
    z-index: 100;
    cursor: pointer;
  }

  /* Hide sidebar by default */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 250px !important;
  }

  /* Show sidebar when toggled */
  .sidebar.active {
    transform: translateX(0);
  }

  /* Hide internal toggle icon on mobile */
  .sidebar .logo-details #btn {
    display: none;
  }

  /* Always show link names */
  .sidebar li a .links_name {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Disable sidebar collapsing behavior */
  .sidebar {
    width: 250px !important;
  }

  /* Ensure home-section takes full width */
  .home-section {
    left: 0 !important;
    width: 100% !important;
  }

  /* Optional: Shift content when sidebar is open */
  .home-section.shifted {
    margin-left: 250px;
  }
}
