*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
}
body{
    min-height: 100vh;
    max-width: 100vw;
}
/* TOP navbar */
.nav-bar{
    position: relative;
    max-width: 100vw;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-container{
    width: 90%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}
.Hamburger-icon{
    font-size: 1.4rem;
    color: #6e6eff;
    cursor: pointer;
    /* position:absolute;
    left: 20px;
    top: 20px; */
}
.Hamburger-icon:hover{
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}
.nav-logo{
    font-size: 2.2rem;
    color: #6e6eff;
}
.searchbar{
    width: 390px;
    height: 40px;
    border-radius: 5px;
    outline: none;
    border: 2px solid #d3d3d3c2;
    padding-left: 20px;
    font-size: 1.2rem;
}
.nav-link{
    display: flex;
    list-style: none;
    gap: 25px;
}
.nav-link a{
    font-size: 1.2rem;
    font-weight: 600;
    color: #6e6eff;
}
.button-container{
    display: flex;
    gap: 20px;
}
.login{
    font-size: 1.3rem;
    font-weight: 600;
    color: #6e6eff;
    background: white;
    border: 1px solid #6e6eff;
    border-radius: 5px;
    width: 90px;
    height: 40px;
    cursor: pointer;
    /* text-align: center;
    padding-top: 6px; */
}
.login:hover{
    color: white;
    background-color: #6e6eff;
}
.logout{
    background: #6e6eff;
    height: 40px;
    width: 120px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    /* text-align: center;
    padding-top: 6px; */
}
.logout:hover{
    background-color: white;
    border: 1px solid #6e6eff;
    color: #6e6eff;
}
/* Submenu */
.submenu {
    max-height: 0;             /* collapsed */
    overflow: hidden;          /* hide content */
    position: absolute;
    top: 50px;
    left: 20px;
    background: white;
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    transition: max-height 0.4s ease; /* smooth slide */
}
.submenu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: gray;
    font-weight: 600;
}

.submenu li a:hover {
  background: #ddd;
}

/* Show submenu when active */
.submenu.active {
    max-height: 300px;
}
/* Side navbar */
 .Sidebar-container {
  position: fixed;
  top: 0;
  left: -250px; 
  width: 250px;
  height: 100%;
  background: #333;
  color: #fff;
  padding: 20px;
  transition: left 1s ease-out;
  z-index: 200;
}

.Sidebar-container ul {
  list-style: none;
  padding: 0;
}

.Sidebar-container li {
  margin: 15px 0;
}

.Sidebar-container a {
  color: #fff;
  text-decoration: none;
}

.Sidebar-container.active {
  left: 0;  /* slide in */
}
 .Sidebar-container .button-container {
  margin-top: 20px;
}
.Sidebar-container .button-container button {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background: #6e6eff;
  border: none;
  color: #fff;
  cursor: pointer;
}
.Sidebar-container .button-container button:hover {
  background: #5555ff;
}

/* main */
.Main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.para1{
    font-size: 5rem;
    font-family: math;
    color: #585454;
}
.para2{
    font-size: 2rem;
    font-family: math;
    color: #585454;
}
/* Product-list */
.Product-list{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.product-searchbar{
    display: none;
    width: 250px;
}
.Sr-no{
    width: 100px;
   
}
.table-container {
  overflow-x: auto;
  width: 800px;
  margin-top: 20px ;
  color: #6e6eff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

table th {
  background-color:#888888;
  color: white;
}
.Details tr td{
    display: flex;
    flex-direction: column;
}

.pagination{
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.pagination a {
  color: #5b5959;
  float: left;
  font-size: 1.5rem;
  padding: 8px 16px;
  text-decoration: none;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  border-radius: 5px;
}

.pagination a:hover:not(.active) {
  background-color: #adacac;
  border-radius: 5px;
}

@media(max-width:991px){
    .nav-container{
        gap: 60px;
    }
    .nav-logo {
       font-size: 1.4rem;
    }
    .searchbar {
       width: 250px;
       height: 35px;
       padding-left: 10px;
       font-size: 1rem;
    }
    .nav-link a {
       font-size: 1rem;
    }
    .login{
        width: 80px;
        height: 35px;
        font-size: 1.1rem;
    }
    .logout{
        height: 35px;
        width: 90px;
        font-size: 1.1rem;
    }
}

@media(max-width:768px){
    .nav-bar{
        height: 60px;
    }
    .nav-container {
        gap: 40px;
    }
    .nav-logo {
        font-size: 1.3rem;
    }
    .searchbar {
       width: 208px;
       height: 35px;
       padding-left: 5px;
       font-size: 15px;
    }
        .nav-link a {
        font-size: 15px;
    }
        .login {
        width: 65px;
        height: 30px;
        font-size: 15px;
    }
    .logout {
        height: 30px;
        width: 75px;
        font-size: 15px;
    }
    .submenu li a {
        padding: 8px 12px;
        font-size: 15px;
    }

}

@media(max-width:576px){
    .nav-container {
        gap: 10px;
    }
    .Hamburger-icon {
        font-size: 1rem;
    }
    .nav-logo {
        font-size: 1rem;
    }
    .searchbar {
        width: 174px;
        height: 30px;
        padding-left: 2px;
        font-size: 12px;
    }
    .nav-link{
        gap: 15px;
    }
    .nav-link a {
        font-size: 13px;
    }
    .login {
        width: 55px;
        height: 28px;
        font-size: 12px;
    }
    .logout {
        height: 28px;
        width: 60px;
        font-size: 12px;
    }
    .button-container {
        gap: 10px;
    }
    .submenu li a {
        padding: 8px 10px;
        font-size: 12px;
    }

}

@media(max-width:400px){

   .submenu { 
        display: none; 
    }  
   .Sidebar-container { 
        display: block; 
    }
    .searchbar {
        display: none;
    }
    .nav-bar{
        height: 45px;
        justify-content: flex-start;
        width: 100%;
        background: white;
        position: fixed;
    }
    .nav-logo {
        font-size: 2.5rem;
    }
    .nav-container {
        justify-content: space-between;
        align-items: center;
        width: 290px;
        margin-left: 20px;
    }
    .Hamburger-icon {
        font-size: 20px;
    }
    .nav-link {
        display: none;
    }
       
    .button-container {
        display: none;
    }
    .Sidebar-container{
        top: 45px;
        width: 110px;
    }
    .Sidebar-container a {
        font-size: 12px;
        font-weight: 600;
    }
    .sidebar-button{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .login{
        width: 75px;
        height: 30px;
        font-size: 15px;
    }
    .logout{
        width: 75px;
        height: 30px;
        font-size: 15px;
    }
    .nav-link,
    .button-container {
        display: none;
    }
    .product-searchbar{
        display: block;
        height: 35px;
        padding-left: 10px;
        font-size: 1rem;
        margin: 15px 0;
        outline: none;
    }
    .table-container{
        width: 100%;
    }
    .Sr-no{
        width: 40px;
    }
    tr td {
        font-size: 12px;
    } 

    /* pagination */
    .pagination{
        justify-content: space-evenly;
    }
    .pagination a{
        font-size: 15px;
        font-weight: 550;
        padding: 5px 10px;
    }
}


/* Login Form */

.login-container{
    width: 100vw;
    height: 100vh;
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    
}
.login-card{
    width: 320px;
    height: 330px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.8);
    border-radius: 10px;
    background-color: rgb(231, 230, 230);
}
.login-card input{
    width: 280px;
    height: 40px;
    padding: 3px 10px;
    font-size: 17px;
    border:none;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
    outline: none;
    border-radius: 5px;
}
hr {
    width: 80%;
}
.forgot{
    color: #807e7e;
}

@media(max-width: 400px){
    .login-card {
        width: 300px;
        height: 295px;
        gap: 20px;
        margin-bottom: 90px;
    }
    .login-card input {
        width: 260px;
        height: 45px;
        padding: 3px 5px;
        font-size: 14px;
    }
    .forgot{
        font-size: 14px;
    }
    
}

/* Add Product-Form */
.product-container {
    width: 100vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.product-form{
    width: 400px;
    height: 380px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.3);
    border-radius: 5px;
}
.product-form input{
    height: 40px;
    width: 350px;
    font-size: 1rem;
    padding-left: 10px;
    outline: none;
    border:1px solid #686666;
    border-radius: 5px;
}
.Submit-btn{
    height: 40px;
    width: 135px;
    font-size: 1.3rem;
    border-radius: 5px;
    outline: none;
    border: none;
    font-weight: 600;
    color: #ffff;
    background-color: #6e6eff;
}
.Action{
    width: 80px;
}
.edit-btn{
    width: 100px;
    height: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: math;
    color: #ffffff;
    background: #6e6eff;
    border: none;
    border-radius: 5px;
}

@media(max-width: 400px){
    .product-container{
        height: calc(100vh-200px);

    }
    .product-form {
        width: 285px;
        height: 310px;
        gap: 25px;
        margin-top: 0px;
    }
    .product-form input {
        height: 30px;
        width: 250px;
        font-size: 13px;
    }
    .Submit-btn {
        height: 35px;
        width: 90px;
        font-size: 15px;
    }
    .Action{
        width: 50px;
    }
    .edit-btn {
       width: 50px;
       height: 30px;
           font-size: 15px;
    }
}


/* User-Table */
 .card-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-top: 50px;
    }
   .User-card {
      border: 1px solid;
      height: 170px;
      width: 400px;
      border-radius: 5px;
      border-color: lightgray;
      margin: auto;
      overflow: hidden;
   }
   .Card-header {
      border-bottom: 1px solid;
      text-align: center;
      border-color: lightgray;
      font-size: 23px;
      background-color: #6e6eff;
      color: white;
      height: 35px;
      padding-top: 3px;
   }
   .card-body {
      height: 100px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 13px;
      border-bottom: 1px solid;
      border-color: lightgray;
   }
   strong{
      color: gray;
      font-size: 15px;
      padding-left: 5px
   }
   .card-footer {
      display: flex;
      justify-content: center;
      gap: 15px;
      align-items: center;
      margin-top: 3px;
    }
   .Edit{
      background: #6969ef;
      color: white;
      font-size: 15px;
      text-align: center;
      width: 56px;
      height: 25px;
      padding-top: 4px;
      border-radius: 4px;
   }
   .Delete{
      background: #f45959;
      color: white;
      font-size: 15px;
      text-align: center;
      width: 67px;
      height: 25px;
      padding-top: 4px;
      border-radius: 4px;
   }
@media(max-width:400px){
    .card-container {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-top: 50px;
    }
   .User-card {
      border: 1px solid;
      height: 130px;
      width: 100%;
      border-radius: 5px;
      border-color: lightgray;
      margin: auto;
   }
   .Card-header {
      border-bottom: 1px solid;
      text-align: center;
      border-color: lightgray;
      font-size: 23px;
      background-color: #6e6eff;
      color: white;
   }
   .card-body {
      display: flex;
      flex-direction: column;
      gap: 8px;
      border-bottom: 1px solid;
      border-color: lightgray;
   }
   strong{
      color: gray;
      font-size: 15px;
      padding-left: 5px
   }
   .card-footer {
      display: flex;
      justify-content: center;
      gap: 15px;
      align-items: center;
      margin-top: 3px;
    }
   .Edit{
      background: #6969ef;
      color: white;
      font-size: 15px;
      text-align: center;
      width: 56px;
      height: 25px;
      padding-top: 4px;
      border-radius: 4px;
   }
   .Delete{
      background: #f45959;
      color: white;
      font-size: 15px;
      text-align: center;
      width: 67px;
      height: 25px;
      padding-top: 4px;
      border-radius: 4px;
   }

}