@import url(variables.css);


.auth-content{
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}


/*nav*/

.left-top-menu-adm{
    display: flex;
    align-items: center;
    gap: 20px;
}

.left-menu-toggle{
    font-size: 30px;
    cursor: pointer;
}

.top-modal-opener{
    cursor: pointer;
    position: relative;
}

.top-modal-opener .top-profile-img{
    height: 40px;
    border-radius: 50%;
}

.top-modal-opener .top-modal{
    position: absolute;
    right: 0%;
    top: 120%;
    max-width: 320px;
    width: 300px;
    display: none;
    flex-direction: column;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.top-modal-opener .top-modal.active{
    display: flex;
}

.top-modal .top{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    padding: 40px 20px;
}

.top-modal .top img{
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.top-modal .bottom{
    width: 100%;
    background-color: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-modal .bottom a{
    text-decoration: none;
    color: #fff;
    max-width: 45%;
    width: 100px;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.top-modal .bottom a:nth-child(1){
    background-color: var(--primary);
}

.top-modal .bottom a:nth-child(2){
    background-color: var(--accent);
}

.top-head-table-form{
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 10px 0;
  max-width: 100%;
  width: 500px;
}

.dash-sect{
  max-width: 100%;
  width: 1000px;
  height: auto;
  border-top: 2px solid var(--accent);
  margin-top: 30px;
  box-shadow: 1px 1px 3px 2px rgba(0,0,0,0.1);
  padding: 10px;
}

/*minor navigations*/



.scroll-nav {
  z-index: 3;
  background: white;
  
  max-width: 100%;
  width: 700px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 20px;
  box-shadow: 1px 1px 5px 5px rgba(0,0,0,0.05);
}

.scroll-nav.after-scroll{
  position: fixed;
  right: 5%;
  top: 100px;
}

.scroll-nav a{
  max-width: 30%;
  width: 150px;
  font-size: 14px;
  padding: 15px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--common-family);
}

.scroll-nav a.active{
  border-top: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}



/*side bar*/


.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 100px;
  background-color: #f5f5f5;
}

.dashboard-wrapper .page-header{
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary);
    max-width: 90%;
    width: 300px;
}

/* === Sidebar === */
.sidebar {
  width: 250px;
  background-color: #f0f0f0;
  color: var(--text);
  flex-shrink: 0;
  position: fixed;
  top: 100px;
  left: 0;
  height: 100vh;
  z-index: 10;
  overflow-y: auto;
  font-family: var(--common-family);
  transition: transform 0.3s ease-in-out;
}

/* === Main Content === */
.main-dashboard-content {
  margin-left: 250px;
  flex-grow: 1;
  padding: 30px 10px;
  background-color: #f5f5f5;
  width: calc(100vw - 250px);
}

/* === Toggle Button (hidden by default) === */
.left-menu-toggle {
  display: none;
}



.sidebar-header {
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid #334155;
  font-size: 1.25rem;
  margin-bottom: 50px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  position: relative;
}

.sidebar-menu > li > a {
  display: flex;
  gap: 10px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s ease;
  align-items: center;
}

.sidebar-menu > li > a span{
    font-size: 13px;
}

.sidebar-menu > li > a i{
    font-size: 13px;
}

.sidebar-menu > li > a:hover {
  background-color: var(--primary);
  color: #fff;
}

.sidebar-menu i {
  margin-right: 8px;
}

.treeview-menu {
  max-height: 0;
  overflow: hidden;
  background-color: #e2e2e2;
  transition: max-height 0.3s ease;
}

.treeview.open .treeview-menu {
  max-height: 500px;
}

.treeview-menu li a {
  display: block;
  padding: 10px 32px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s;
  font-size: 13px;
}

.treeview-menu li a.active{
  background-color: var(--primary);
  color: #fff;
}

.active-link.active{
  background-color: var(--primary);
  color: #fff;
}

.treeview-menu li a:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Active arrow rotation */
.treeview.open .toggle-arrow {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.toggle-arrow {
  transition: transform 0.3s ease;
}


.form-wrapper{
    max-width: 100%;
    width: 1000px;
    padding: 40px 0px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.insertion-res{
    max-width: 95%;
    width: 300px;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    left: 2%;
    top: 15%;
    text-align: center;
    align-items: center;
    justify-content: center;
    animation: appear .5s ease-in-out forwards;
    z-index: 10;
}

@keyframes appear{
    from{
        transform: translateX(-100%);
    }
    to{
        transform: translateX(0);
    }
}

.insertion-res i{
    font-size: 50px;
}

.insertion-res.error i{
    color: var(--error);
}
.insertion-res.success i{
    color: var(--success);
}


.product-table {
  width: 100%;
  max-width: 95%;
  padding: 30px 20px;
  border-top: 2px solid var(--accent);
  border-radius: 2px;
  overflow-x: auto; 
  box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.1);
}


.product-table table td{
    border-right: 1px solid rgba(0,0,0,0.3);
    font-family: var(--common-family);
    font-size: 13px;
}

#globalSearch{
    padding: 13px;
    border: 1px solid rgba(0,0,0,0.1);
}
#globalSearch:focus{
    outline: none;
}


/*dashboard*/

.quick-actions h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1 1 150px;
  background-color: white;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.2s, transform 0.2s;
  font-family: var(--common-family);
}

.action-btn:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 24px;
  margin-bottom: 5px;
  display: block;
  color: var(--primary);
}

.action-btn span {
  font-size: 14px;
}


/*ORDERS - DATA CARDS*/

.data-cards{
 
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.data-cards .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.data-card {
  flex: 1 1 200px; /* Grow/shrink, minimum width 200px */
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease-in-out;
  color: #fff;
}

.data-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.data-card h3 {
  font-size: 1.4rem;
  margin: 0;
}

.data-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .data-card {
    flex: 1 1 100%;
  }
}


.data-cards .container .data-card.orders{
  background-color: var(--primary);
}
.data-cards .container .data-card.rev{
  background-color: var(--success);
}
.data-cards .container .data-card.pending-deliveries{
  background-color: var(--error);
}

.data-cards .container .data-card h4{
  font-size: 14px;
}

.data-cards .container .data-card h3{
  font-size: 24px;
}


.order-row.highlight{
  background-color: #d1fae5 !important; 
  transition: background-color 1s ease;
}


/*sales summary*/

.sales-sum-header{
  max-width: 100%;
  width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 10px;
}

.sales-sum-header .date-filter{
  max-width: 45%;
  width: 200px;
}

.sales-sum-header .date-filter select{
  cursor: pointer;
}

.sales-sum-top .container{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.sales-sum-top .container .report-card, .sales-sum-bottom .report-card{
  max-width: 100%;
  width: 450px;
  min-height: 250px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(245, 245, 245, 0.445);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  box-shadow: 2px 2px 10px 4px rgba(0,0,0,0.05);
}

.report-card i{
  font-size: 50px;
}

.report-card.red i{
  color: var(--error);
}

.report-card.prog i{
  color: var(--success);
}

.report-card h3{
  font-size: 16px;
}

.sales-sum-top .container .report-card .main-rep{
  font-size: 25px;
}

.report-card .prod-list{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-card .prod-list span{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.report-card .prod-list span h4{
  font-size: 14px;
  max-width: 100%;
  width: 200px;
}

.sales-representation {
  display: grid;
  gap: 2rem;
}
.status-cards {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px;
}
.status-cards .card {
  max-width: 45%;
  width: 200px;
  padding: 1rem;
  background: white;
  border-left: 5px solid #007bff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.status-cards .card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}
.status-cards .card p {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: bold;
}
.chart-container{
  
  display: flex;
  align-items: center;
  gap: 10px;

}
.charts {
  flex: 1 1 100%;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.no-data-overlay{
  position: absolute;
  left: 0%;
  top: 12%;
  width: 100%;
  height: 85%;
  background-color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
  border-radius: 10px;
}

canvas {
  width: 100% !important;
  max-width: 850px;
  height: 450px !important;
  aspect-ratio: 1 / 1;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
}


/*banner preview content*/

.preview-content {
    width: 100%;
    height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px 30px;
}

.preview-content img {
    width: 100%;
    height: 100% !important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(70%);
    object-fit: cover;
   
}

.preview-content .description {
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #30303054;
    border: 1px solid rgba(255, 255, 255, 0.288);
    border-radius: 20px;
    padding: 30px 10px;

    backdrop-filter: blur(2px);
}

.preview-content .description p{
  font-size: 13px;
}

.preview-content .description h2{
  font-size: 23px;
}

.preview-content .description a{
    text-decoration: none;
    padding: 10px;
    width: 200px;
    text-align: center;
    background-color: var(--accent);
    color: #fff;
    border-radius: 5px;
    font-family: var(--common-family);
    transition: all .3s ease;
}

.preview-content .description a:hover{
    transform: translateX(-3px);
    filter: drop-shadow(2px 2px 15px var(--accent));
}




/****************************USER PROFILE ***********************/
/**/
.user-profile{
  width: 100%;
  margin-top: 130px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
}

.user-profile section{
  width: 100%;
  box-shadow: 2px 2px 5px 2px rgba(0,0,0,0.05);
  border-radius: 5px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-top: 2px solid var(--accent);
}

.welcome {
  background: linear-gradient(135deg, var(--pri-fade), var(--card-bg));
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.welcome .acc-section-body {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.welcome h1 {
  font-family: var(--header-family), sans-serif;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.welcome-subtext {
  font-family: var(--common-family), sans-serif;
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 0;
  line-height: 1.6;
}


.user-profile section .section-div{
  padding: 10px;
}

.user-profile section .acc-section-header{
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  align-items: center;
  justify-content: space-between;
}

.user-profile section .acc-section-header h3{
  max-width: 50%;
}

.user-profile section .acc-section-body{
  width: 100%;
  gap: 10px;
  padding: 10px;
}

.user-profile section .acc-section-footer{
  width: 100%;

}

.profile-card{
  width: 100%;
  gap: 20px;

}

.profile-card .user-dets{
  max-width: 100%;
  width: 600px;
  gap: 10px;
}

.profile-card .profile-img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}


/*orders*/

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.order-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.order-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.order-card p {
  margin: 0.5rem 0;
  font-size: 15px;
  color: var(--text);
}

.order-card strong {
  font-weight: 600;
  color: var(--text);
}

.order-card .view-details{
  background-color: var(--primary);
}


.order-card::before {
  content: attr(data-status);
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.6rem;
  background-color: #10b981;
  color: white;
  font-size: 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* You can add different status styles like this */
.order-card[data-status="Pending"]::before {
  background-color: #f59e0b;
}

.order-card[data-status="Cancelled"]::before {
  background-color: #ef4444;
}


.address-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: box-shadow 0.3s ease;
}

.address-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.address-info {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.edit-btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.edit-btn:hover {
  background-color: #1e40af;
}

.user-profile .products-list{
  flex-wrap: wrap;
}


/****************************USER PROFILE************************/


/* === Responsive === */
@media (max-width: 768px) {
  .dashboard-wrapper {
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-dashboard-content {
    margin-left: 0;
    width: 100%;
  }

  .left-menu-toggle {
    display: block;
    color: var(--text);
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
  }

  .data-cards .container .data-card h4{
    font-size: 12px;
  }
  .data-cards .container .data-card h3{
    font-size: 16px;
  }

  .data-cards .container .data-card{
    padding: 10px;
  }
  .chart-container{
    flex-wrap: wrap;
  }

  
}