@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');

:root{
  --primary-color: #E34933;
  --primary-color-1: #E34D31;
  --light-grey: #F3F3F3;
  --dark-color: #272727;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  display: flex;
  background-color: #f5f6fa;
  min-height: 100vh;
}

.btn-rounded{border-radius: 100px;}

.modal-content{
  border-radius: 10px;
  border: none;
}

/* main area that grows to fill space between header (none) and footer */
.page-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-wrap {position: relative;}
.login-box {
  position: relative;
  backdrop-filter: blur(5px);
  background: #00000059;
  box-shadow: 0px 13px 44px 0px #0000001F;
  border-radius: 40px;
  padding: 50px 40px 50px;
  width: 410px;
  z-index: 2;
  text-align: center;
  overflow: visible;
}
/* Decorative image to the right of the box */
.image-wrapper {
  position: absolute;
  top: 50%;
  right: -90px;
  transform: translateY(-50%) rotate(5deg);
}
/* Form styling */
.login-box form label {
  position: relative;
  display: block;
  margin-bottom: 25px;
}
.login-box form input[type="text"],
.login-box form input[type="password"] {
  width: 100%;
  padding: 20px 15px;
  height: 60px;
  border: none;
  border-bottom: 1px solid white;
  background: transparent;
  color: white;
  font-size: 18px;
  outline: none;
  transition: all 0.3s ease;
}
.login-box form input::placeholder {
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
.login-box form input:focus {
  /* box-shadow: inset 0 0 10px rgba(255,255,255,0.3); */
  color: #fff;
}
.login-box form label span {
  position: absolute;
  top: 18px;
  left: 14px;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease;
}
.login-box form input:focus + span,
.login-box form input:not(:placeholder-shown) + span {
  top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* Submit button */
.btn{
  transition: all 0.2s ease-in-out;
  border: none;
  background: #E76727;
  color: #fff;
  padding: 6px 20px;
  cursor: pointer;
  /* border-radius: 50px; */
}
.btn:hover{
  color: #fff;
  background: var(--primary-color);
}


.fw-medium{font-weight: 500!important;}



/* Remove native arrow and add custom one */
/* Dropdown with black arrow */
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("/filafox/admin/images/chevron-down.png") 
              no-repeat right 0.75rem center/1rem;
  padding-right: 2rem;
  background-color: #fff;
  border: 1px solid #ced4da;
  color: #333;
  border-radius: 6px;
}

.custom-select:focus {
  border-color: #CC5332;
  box-shadow: 0 0 0 0.2rem rgba(204, 83, 50, 0.25);
}




/* --- Sidebar --- */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #2B323C 0%, #7487A2 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  padding-top: 20px;
  transition: all 0.3s ease;
  position: relative;
}
.sidebar-logo {
  width: 150px;
  margin-bottom: 20px;
  text-align: center;
}
/* .sidebar-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
} */

.headicon{
  color:white;
}
.sidebar-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
/* Center sidebar header */
.sidebar h2 {
  color: #ff6b35;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-align: center;
}

/* table-design */
.table-design th, .table-design td{
  border-color: #989898;
}
.table-design > :not(caption) > *{
  border-color: #989898;
}


.menu, .sidebar-links {
  list-style: none;
  width: 100%;
  padding: 0;
}
.menu li, .sidebar-list {
  width: 100%;
}
/* Main menu links */
.menu a, .sidebar-list > a {
  position: relative;
  display: flex;
  padding: 11px 25px 11px 45px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
  align-items: center;
  cursor: pointer;
}
.menu a .sidebar-icon, .sidebar-list > a .sidebar-icon{
  position: absolute;
  top: 15px;
  left: 15px;
  filter: contrast(0) brightness(300%);
}
.menu a:hover .sidebar-icon, .sidebar-list > a:hover .sidebar-icon{
  filter: none;
}
.menu a i, .sidebar-list a i {
  width: 20px;
  text-align: center;
}
.menu a:hover, .sidebar-list > a:hover {
  color: white;
  background-color:#1F2632;
}
/* --- Sidebar Submenu Text-Only --- */
.sidebar-submenu {
  display: none;
  list-style: none;
  padding-left: 25px; /* indent */
  background-color: transparent;
}
.sidebar-submenu li a {
  display: block;
  padding: 10px 0 10px 31px;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
}
.sidebar-submenu li a .sidebar-icon{
  position: absolute;
  top: 51%;
  left: 0px;
  transform: translateY(-50%);
  filter: contrast(0) brightness(300%);
}

/* Dash before submenu items */
.sidebar-submenu li a::before {
  position: absolute;
  left: 25px;
  color: #b5b5b5;
}

/* Hover and active submenu items */
.sidebar-submenu li a:hover,
.sidebar-list.active > .sidebar-submenu li a:hover {
  color: #ff6b35;
  background-color: transparent;
}

/* Show submenu when parent active */
.sidebar-list.active > .sidebar-submenu {
  display: block;
  background: #1F2632;
}

/* Parent menu link when submenu active */
.sidebar-list.active > a {
  color: #FFFFFF;
  background-color: #1D222B;
}

/* Arrow rotation */
.sidebar-list a .arrow {
  font-size: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  transition: transform 0.3s ease;
}
.sidebar-list.active a .arrow {
  transform: translateY(-50%) rotate(90deg);
}

/* --- Main Content --- */
.main-content {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(100% - 240px);
  overflow: hidden;
}
.main-content .admin-footer{background-color: #fff;}


/* --- Topbar --- */
.topbar {
 background: linear-gradient(135deg, #2B323C 0%, #7487A2 100%);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.topbar .toggle-sidebar {
  font-size: 20px;
  cursor: pointer;
  color: white;
}

.topbar .toggle-sidebar:hover {
  color: #ff6b35;
}

.admin-info {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ccc;
}

/* --- Table --- */
/* .table-container {
  margin: 40px;
  border-radius: 8px;
  overflow-x: auto;
} */

.page-title {
  font-size: 1.3rem;
  display: inline-block;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  padding: 6px 11px;
  border-bottom: 1px solid #000000;
}

th {
  background-color: #2E3641;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  white-space: nowrap;
}

table tr td .btn{white-space: nowrap;}

.product-img img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 50px;
}

.option-buttons span {
  cursor: pointer;
  margin: 0 6px;
  font-size: 16px;
}

.option-buttons a{
  background: url(sidebar-icon/edit-icon-grey.svg) no-repeat center / 20px;
  width: 28px;
  height: 28px;
  display: inline-block;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
}
.option-buttons a.delete-icon{background: url(sidebar-icon/delete-icon-grey.svg) no-repeat center / 20px;}
.option-buttons a.edit-icon:hover{background: url(sidebar-icon/edit-icon.svg) no-repeat center / 20px;}
.option-buttons a.delete-icon:hover{background: url(sidebar-icon/delete-icon.svg) no-repeat center / 20px;}
/* .delete:hover {
  background: var(--primary-color-1);
} */
.option-buttons a:hover img {
  transform: scale(1.04);
  /* opacity: 0.8; */
}

/* .edit {
  color: #007bff;
}
.delete {
  color: #e63946;
}
.edit:hover {
  color: #0056b3;
}
.delete:hover {
  color: #b81e2d;
} */

/* --- Profile Dropdown --- */
.profile-dropdown {
  position: absolute;
  top: 45px;
  right: -2px;
  background: #fff;
  /* border: 1px solid #e1e1e1; */
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
  list-style: none;
  display: none;
  width: 180px;
  padding: 0 0;
  overflow: hidden;
}
.profile-dropdown li {
  border-bottom: 1px solid #f2f2f2;
}
.profile-dropdown li:last-child {
  border-bottom: none;
}
.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  background-color: #ff7d35;
}
.profile-dropdown a:hover {
  color: #ff6b35;
  background-color: var(--dark-color);
}


/* Footer styling */
.admin-footer{
  flex: 0 0 auto;
  padding: 18px 25px;
  background: rgba(0,0,0,0.12);
}
.admin-footer span.line{
  position: relative;
  margin: 0 10px;
}
.admin-footer span.line::before{
  content: "";
  width: 1px;
  height: 25px;
  background: linear-gradient(180deg, #252C37 1.92%, #FFFFFF 32.21%, #FFFFFF 61.54%, #252C37 100%);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.admin-footer .footer-content {
  font-size: 14px;
}

/* Footer styling */
.footer-content {
  max-width: 4900px;
  margin: 0 auto;
}





/* --- Footer --- */
/* Nanum Pen for "Crafted by" */
.crafted-by {
  color:var(--primary-color-1);
  font-family: "Nanum Pen Script", cursive;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  position: relative;
  top: 2px;
}

/* Questrial for company name */
.company-name {
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0;
}

.close-sidebar {
    display: none; /* visible only on mobile */
    width: 100%;
    text-align: right;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    color: #fff;
}

/* --- Page Body --- */
.page-body {
    padding: 25px;
    background-color: #FFFFFF;
    min-height: 100vh;
    flex: 1;
}

/* .title-header h5 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
} */

/* --- Card --- */
.card {
  border-radius: 5px;
  margin-bottom: 20px;
}
.card .card-body {
  padding: 20px;
}
.card .card-header {
  padding: 0;
  background-color: transparent;
  border-bottom: 0;
  margin-bottom: 20px;
}
.card .card-header h5 {
  font-size: 18px;
  font-weight: 600;
  color: #3A3A3A;
}

/* --- Form Labels --- */
.label-title {
    /* font-weight: 500; */
    color: #989898;
    margin-bottom: 5px;
}

/* --- Form Inputs --- */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;

}

.form-control:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 5px rgba(255,107,53,0.3);
}

/* --- File Upload Input --- */
input[type="file"].form-control {
    padding: 10px 12px 10px 12px;
}

/* --- Buttons --- */
.btn-primary {
    background-color:#CC5332;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-primary:hover {
    background-color: #e05523;
}

/* --- Row Spacing --- */
/* .row.align-items-center {margin-bottom: 15px;} */

/* Style file input with an icon inside */
input[type="file"].icon {
  background: url("/filafox/admin/images/upload-icon-grey.svg") no-repeat right 0.75rem center / 16px 16px;
  /* padding-left: 30px; */
  color: #6c757d;
  cursor: pointer;
}
input[type="file"].icon:hover, 
input[type="file"].icon:focus {
  border-color: #cc5332;
  box-shadow: 0 0 5px rgba(204, 83, 50, 0.3);
}

/* Hide ugly file path text for cleaner look */
.icon::file-selector-button {
  display: none;
}
/* .btn-custominfo1 {
  background-color: #CC5332;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-custominfo:hover {
  background-color: #b3472d;
} */

/* 
.edit {
  display: inline-block;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.2s ease;
}
.edit-icon {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.edit:hover {
  background: var(--primary-color-1);
}
.edit:hover .edit-icon {
  transform: scale(1.1);
  opacity: 0.7;
} */

.search-block{
  position: relative;
  display: flex; gap: 10px; align-items: center;
}
.search-block .form-control{
  padding: 7px 10px;
  padding-right: 40px;
  border-radius: 0;
}
.search-block input::placeholder{color: #9D9D9D;}
.search-block .btn{
  height: 100%;
  color: #536175;
  padding: 8px 12px;
  background-color:transparent;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}
 
.mega-form{
  background-color: #FBFBFB;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.mega-form .card{
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  margin-bottom: 0;
}
.mega-form .card:last-child{border-bottom: 0;}
.mega-form .card .form-control{background-color: transparent;}

/* order-item */
.order-item{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 0;
  list-style:none;
  margin-bottom: 0;
}
.order-item + .order-item{border-top:1px solid #ddd;}
.order-item .img-box img{
  width: 60px;
  height: 60px;
  object-fit:cover;
  border-radius:6px;
}
.order-item .product-title{
  font-size: 1.1rem;
  margin-bottom: 0;
}








/* Responsive adjustments */
@media (max-width: 767px) {
  .image-wrapper { display: none; } /* hide decorative image on small screens */
  .login-box { width: 100%; padding: 40px 30px; border-radius: 20px; }
}

/* --- Responsive --- */
/* --- Mobile Responsive --- */
@media screen and (max-width: 767px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    height: 100%;
    z-index: 999;
  }

  .sidebar.active {
    left: 0;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }

  .overlay.active {
    display: block;
  }

  .main-content {
    width: 100%;
  }

  .user-info {
    display: none;
  }

  /* .table-container {margin: 10px 0;} */

  th, td {
    padding: 8px 10px;
    font-size: 13px;
  }

  td img {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 767px) {
    .form-label-title {
        margin-bottom: 5px;
    }
    .mb-4 {
        margin-bottom: 12px;
    }
    .card .card-body {
        padding: 15px;
    }
    
    .close-sidebar {
        display: block;
    }

    .page-body{padding: 18px;}
}

@media screen and (max-width: 575px) {
    .page-body{padding: 15px;}
}