
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
 
}

body {
  background: #f4f6f8;
  
}

/* heaar logo  */
.shop-header{
  padding:12px 15px;
}

.shop-info{
  display:flex;
  align-items:center;
  gap:10px;
}

.shop-logo{
  width:42px;
  height:42px;
  border-radius:8px;
  object-fit:cover;
  background:#fff;
}

.shop-name{
  font-size:17px;
  margin:0;
  line-height:1.2;
}

.page-title{
  font-size:12px;
  opacity:0.9;
  margin:0;
}
/* left side menu design */
.shop-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 15px;
  background:#2f80ed;
  color:#fff;
}

/* Brand area */
.brand-area{
  display:flex;
  align-items:center;
  gap:10px;
}

.shop-logo{
  width:40px;
  height:40px;
  border-radius:8px;
  background:#fff;
  object-fit:contain;
}

.shop-name{
  font-size:18px;
  margin:0;
  line-height:1.2;
}

.page-title{
  font-size:12px;
  margin:0;
  opacity:0.9;
}

/* Profile */
.profile-box{
  position:relative;
}

.profile-img{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #fff;
  cursor:pointer;
}

/* Dropdown */
.profile-menu{
  position:absolute;
  top:46px;
  right:0;
  background:#fff;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
  width:130px;
  display:none;
  z-index:999;
}

.profile-menu a{
  display:block;
  text-align:center;
  padding:10px;
  text-decoration:none;
  color:#333;
  font-size:14px;
}

.profile-menu a:hover{
  background:#f1f1f1;
   border-radius:8px;
}

.logout-btn{
  display:block;
  text-align:center;
  color: #eb5757 !important;;
  border-radius:8px;
  font-weight:bold;
  text-decoration:none;
}




/* body-design */

.app {
  /* max-width: 420px; */
  width: 100%;
  margin: auto;
  background: #fff;
  min-height: 100vh;
}

.header {
  background: #2f80ed;
  color: #fff;
  /* text-align: center; */
  padding: 15px;
}
.center{
  text-align:center;
  margin-top:15px;
  margin-bottom:15px;
}

.cards {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.card {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  color: #fff;
}

.red {
  background: #eb5757;
}

.green {
  background: #27ae60;
}

.section {
  padding: 15px;
}

.section h3 {
  margin-bottom: 10px;
}

.customer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.baki {
  color: red;
  font-weight: bold;
  font-size: 18px;
}

/* .menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  display: flex;
} */
 .menu{
  position: fixed;
  bottom: 0;
  width: 100%;
  /* max-width: 420px;           */
  display: flex;
  left: 50%;
  transform: translateX(-50%);
  background: #2f80ed;
  z-index: 999;
}

/* ===== PC / Laptop ===== */
@media (min-width: 768px){
  .app{
    /* max-width: 420px;     */
  }
  .menu{
    max-width: 100%;        /* 🖥️ full width */
    left: 0;                /* remove centering */
    transform: none;        /* remove translate */
    justify-content: center;
    border-radius: 0;       /* edge to edge */
  }
}



.menu button {
  flex: 1;
  padding: 15px;
  border: none;
  font-size: 15px;
  background: #2f80ed;
  color: white;
}
 /* payment page */
    .form-box select{
  width:100%;
  padding:12px;
  margin-top:5px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:16px;
}

.paid{
  color:#27ae60;
  font-weight:bold;
}

/* customer page */


.form-box{
  padding:15px;
}

.form-box label{
  display:block;
  margin-top:12px;
  font-size:14px;
}

.form-box input{
  width:100%;
  padding:12px;
  margin-top:5px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:16px;
}

.btn-primary{
  width:100%;
  margin-top:20px;
  padding:14px;
  background:#27ae60;
  color:white;
  border:none;
  border-radius:8px;
  font-size:18px;
}

.list-box{
  padding:15px;
}

.customer-row{
  display:flex;
  justify-content:space-between;
  background:#f1f1f1;
  padding:12px;
  border-radius:8px;
  margin-bottom:8px;
}

.baki{
  color:red;
  font-weight:bold;
}

/*customer-history page */

.tabs{
  display:flex;
  margin:10px;
  gap:10px;
}


.tab-btn{
  flex:1;
  padding:12px;
  border:none;
  background:#e0e0e0;
  border-radius:8px;
  font-size:15px;
  font-weight:bold;
}

.tab-btn.active{
  background:#2f80ed;
  color:white;
}

.tab-content{
  display:none;
  padding:10px;
}

.tab-content.active{
  display:block;
}



.paid{
  color:#27ae60;
  font-weight:bold;
}


/* sale page */
  .sale{
  color:#2f80ed;
  font-weight:bold;
}
.product-row-box{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:6px;
  margin-bottom:10px;
}

.product-row-box select,
.product-row-box input{
  padding:10px;
  font-size:14px;
}

.btn-add{
  width:100%;
  padding:12px;
  background:#f2994a;
  color:white;
  border:none;
  border-radius:8px;
  margin-top:10px;
}


/* login- register page */
.text-center{
  text-align:center;
  margin-top:15px;
}

a{
  color:#2f80ed;
  text-decoration:none;
  font-weight:bold;
}
.login-box{
  margin: 150px 10px;
  background:#e8e7e7;
}
.register-box{
  margin: 50px 10px;
  background:#e8e7e7;
}

/* Logo center */
.logo-wrap{
  text-align:center;
  margin-bottom:20px;
}

.logo-wrap img{
  width:90px;
  height:auto;
}

/* Optional: soft card feel */
.form-box{
  /* background:#e8e7e7; */
  
  /* margin: 150px 10px; */
  border-radius:12px;
  /* box-shadow:0 4px 10px rgba(0,0,0,0.08); */
}



/* customer hisab page */

.summary-box{
  background:#f9f9f9;
  margin:15px;
  padding:15px;
  border-radius:10px;
  border-left:5px solid #2f80ed;
}

.summary-box h3{
  margin-bottom:8px;
}

.baki-text{
  color:red;
  font-weight:bold;
  margin-top:5px;
}

.product-row{
  display:flex;
  justify-content:space-between;
  background:#f1f1f1;
  padding:12px;
  border-radius:8px;
  margin-bottom:8px;
}

.amount{
  font-weight:bold;
  color:#2f80ed;
}


/* all customer list */



/* .customer-row small{
  color:#555;
} */

.list-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.btn-add-customer{
  background:#27ae60;
  color:white;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
  font-weight:bold;
}


.customer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f1f1f1;
  padding:12px;
  border-radius:8px;
  margin-bottom:8px;
}

.customer-info{
  flex:1;
}

.customer-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.baki{
  color:red;
  font-weight:bold;
  font-size:15px;
  margin-right:5px;
}

/* Edit Button */
.btn-edit{
  background:#2f80ed;
  color:white;
  padding:6px 8px;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
}

/* Delete Button */
.btn-delete{
  background:#eb5757;
  color:white;
  padding:6px 8px;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
}



/* dashboard-page */

.cards{
  display:flex;
  gap:10px;
  padding:10px;
}

.card{
  flex:1;
  padding:15px;
  border-radius:10px;
  color:white;
}

.red{ background:#eb5757; }
.green{ background:#27ae60; }
.blue{ background:#2f80ed; }
.gray{ background:#828282; }

.section{
  padding:15px;
}

.quick{
  display:flex;
  gap:10px;
}

.quick a{
  flex:1;
  text-align:center;
  padding:12px;
  background:#2f80ed;
  color:white;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
}

.activity-row{
  display:flex;
  justify-content:space-between;
  background:#f1f1f1;
  padding:12px;
  border-radius:8px;
  margin-bottom:8px;
}

/* customer-history */
.history-card{
  background:#f1f1f1;
  padding:12px;
  border-radius:10px;
  margin-bottom:12px;
}

.history-date{
  font-weight:bold;
  margin-bottom:6px;
  color:#333;
}

.payment-bg{
  background:#eafaf1;
}


.tabs{
  display:flex;
  margin:10px;
  gap:10px;
}

.tab-btn{
  flex:1;
  padding:12px;
  border:none;
  background:#e0e0e0;
  border-radius:8px;
  font-size:15px;
  font-weight:bold;
}

.tab-btn.active{
  background:#2f80ed;
  color:white;
}

.tab-content{
  display:none;
  padding:10px;
}

.tab-content.active{
  display:block;
}



.paid{
  color:#27ae60;
  font-weight:bold;
}


/* product page */
.product-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.amount{
  font-weight:bold;
  color:#2f80ed;
}

.btn-edit{
  background:#2f80ed;
  color:#fff;
  padding:6px 8px;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
}

.btn-delete{
  background:#eb5757;
  color:#fff;
  padding:6px 8px;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
}
.btn-add-product{
  background:#27ae60;
  color:white;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
  font-weight:bold;
}

/* profile page */
.profile-card{
  background:#f9f9f9;
  padding:15px;
  border-radius:12px;
  margin:15px;
}

.profile-image-wrap{
  text-align:center;
  margin-bottom:15px;
}

.profile-big{
  width:100px;
  height:100px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid #2f80ed;
}

.upload-btn{
  display:inline-block;
  margin-top:8px;
  font-size:14px;
  color:#2f80ed;
  cursor:pointer;
}
.update-profile-box{
  margin-bottom:90px;
}
.profile-menu{
  animation: fadeIn 0.50s ease;
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(-5px);}
  to{opacity:1; transform:translateY(0);}
}


.menu a button{
  transition: all 0.25s ease;
  position: relative;
}

.menu a.active button{
  background: linear-gradient(135deg, #1f6fe0, #3a8bfd);
  color: #fff;
  box-shadow: 0 -2px 12px rgba(47,128,237,0.6);
  font-weight: 700;
}

/* top indicator line */
.menu a.active button::before{
  content:'';
  position:absolute;
  top:0;
  left:20%;
  width:60%;
  height:3px;
  background:#fff;
  border-radius:0 0 6px 6px;
}
  
.menu a button:hover{
  background: linear-gradient(135deg, #3a8bfd, #1f6fe0);
  /* box-shadow: 0 -2px 10px rgba(47,128,237,0.3); */
}