:root {
  /* Colors */
  --primary: #013236;
  --accent: #4EA771;
  --light-green: #C1E6BA;
  --background: #EAF8E7;
  --text: #013236;
  --coffee-brown: #795b5b;
  --coffee-light: #f8f3ee;
  --gold: #EEAD2B;

  /* Layout */
  --sidebar-width: 260px;
  --container-max: 1400px;
  --header-height: 4rem;

  /* Typography */
  --font-base: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-heading: 'League Spartan', var(--font-base);
}

/* Reset & Base Styles */
*, *::before, *::after { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-base);
  color: var(--text);
  background: var(--coffee-light);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: #f8f3ee;
  color: #795b5b;
  line-height: 1.6;
}

/* Helpful utilities and accessibility improvements */
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; box-sizing: border-box; }
input, select, textarea { max-width: 100%; }
a:focus, button:focus, input:focus { outline: 3px solid rgba(78,167,113,0.25); outline-offset: 2px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Hero Section Styles */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/delicious-organic-coffee-still-life.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background:rgba(0, 0, 0, 0.597);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.logo span {
  color: var(--accent);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding-right: 90px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.cta {
  background: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  color: white !important;
}

.hero-content {
  max-width: min(1200px, 90%);
  width: 100%;
  text-align: center;
  padding: 1rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-logo svg {
  width: 80px;
  height: auto;
}

.hero-head h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
}

.hero-about {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hero-about p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.portals {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 600px;
  width: 100%;
}


/* Mulinga Systems Section */
.mulinga-systems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 90%), 3fr));
  gap: 10px;
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 3vw, 2rem);
  background-color: #fff;
  max-width: 1400px;
  margin: 10px auto;
}
.cards {
  box-sizing: border-box;
}

.cards:hover {
  transform: translateY(-5px);
}

.cards svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.cards h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 1rem 0;
}

.cards p {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.6;
}

/* Advert Section */
.advert {
  background: linear-gradient(90deg, rgba(66, 102, 6, 0.88) 33.58%, rgba(238, 173, 43, 0.88) 74.47%);
  color: white;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.advert h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
  max-width: min(1200px, 90%);
  line-height: 1.3;
}

.advert p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: min(800px, 90%);
  margin: 0 auto;
  line-height: 1.5;
}

.portal a {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  transition: all 0.3s ease;
}

.portal a:hover {
  background-color: #3d8f5d;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-head {
    flex-direction: column;
    text-align: center;
  }

  .portals {
    gap: 1rem;
  }

  /* .mulinga-systems {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 2rem 1rem;
  } */

  .cards {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  
    .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.4s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .hero-section {
    padding: 1rem;
  }

  .hero-about {
    padding: 0 1rem;
  }

  .farmer-portal a,
  .admin-portal {
    width: 100%;
    text-align: center;
  }

  /* .mulinga-systems {
    grid-template-columns: 1fr;
  } */

  .advert {
    padding: 2rem 1rem;
  }
}

/* Top Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
}

.left-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
  /* flex: 1;
  min-width: 200px; */
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-small {
  width: clamp(32px, 4vw, 48px);
  height: auto;
}

.nav-head h3 {
  margin: 0;
  font-weight: 600;
}

.nav-head p {
  margin: 0;
  font-size: 0.8rem;
  color: #d1d5db;
}

/* .right-nav {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1rem);
  align-items: center;
} */
 .right-nav button {
      background: transparent;
      border: none;
      color: white;
      position: relative;
      margin-left: 0.75rem;
      cursor: pointer;
    }

.messages-btn, .notifications-btn {
  background: none;
  border: none;
  color: white;
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.messages-btn:hover, .notifications-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #000000;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 50%;
}
main{
    display: flex;
    background-color: #C1E6BA;
}
  /* .left-bar{
    background-color: #EAF8E7;
   /* border: 0.3px solid #795b5b; */
   /* padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 660px;
    border-radius: 0px, 0px, 20px;
    padding: 10px 80px 10px 50px;


}
.items{
    background-color: #EEAD2B;
    padding: 10px 50px;
    width: 70%;
    border-radius: 15px;
    align-items: center;
    display: flex;
    gap:40px;
    justify-content: center;
}
.item-id{
    font-size: 16px; */









/* Sidebar Styles */
.sidebar {
  /* width: var(--sidebar-width); */
  background: var(--primary);
  color: white;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
  height: fit-content;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar .logo {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin: 1rem 0;
}
.sidebar::-webkit-scrollbar {
      width: 6px;
    }

    .sidebar::-webkit-scrollbar-thumb {
      background-color: var(--accent);
      border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar-track {
      background-color: var(--primary);
    }

.sidebar nav ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.sidebar nav ul li.active a,
.sidebar nav ul li a:hover {
  background: var(--accent);
}
/* Dashboard Container */
.dashboard-container {
  margin-left: 260px;
  padding: 2rem;
}

.dashboard-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.welcome-section {
  flex: 1;
  min-width: 250px;
}

.dashboard-title {
 color: var(--primary);
  font-size: 1.75rem;
}

.welcome-message {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #795b5b;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #795b5b;
  opacity: 0.8;
}

.upload-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
}

.upload-btn:hover {
  background: #e1a423;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(78, 167, 113, 0.3);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.stat-card {
  background-color: #EAF8E7;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 3px 3px 4px rgba(20, 194, 110, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
   font-family: 'Montserrat', sans-serif;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-icon {
  width: clamp(24px, 4vw, 32px);
  height: clamp(24px, 4vw, 32px);
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

.stat-value {
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0.3rem 0;
}

.stat-label {
  font-size: 0.9rem;
}

/* Bottom Section *//* Recent Activity */
/* .bottom-section {
  display: flex;
  width: 100%;
  gap: 1rem;
  flex-wrap: nowrap;
} */

/* Recent Activity */
.recent-activity {
  background-color: #EAF8E7;
  border-radius: 12px;
  padding: 1rem;
  flex: 1 1 48%;
   box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  
}

/* .activity-title {
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: #494545;
} */



/* .activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center; */
  /* border-radius: 12px; */
  /* background-color: #C1E6BA; */
  /* padding: 0.5rem;
  border-bottom: 1px solid #000000;
  transition: transform 0.2s ease; */



.activity-date {
  font-weight: 400;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #795b5b;
  opacity: 0.8;
}

.activity-status {
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
      border-radius: 6px;
      font-weight: 600;
      text-transform: capitalize;
}
  .green { background: #dcfce7; color: #166534; }
  .red { background: #fee2e2; color: #991b1b; }
  .yellow { background: #fef9c3; color: #92400e; }
  .purple { background: #ede9fe; color: #5b21b6; }
  .beige { background: #fef3c7; color: #78350f; }




.my-item{
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-wrap: nowrap;
  /* margin: 0 auto; */
}
.upper-item{
  display: flex;
  gap: 10px;
  margin: 0 auto;
  width: 100%;
  /* height: 90%; */
}

.activity-profile{
  display: flex;
  flex-direction: column;
  /* gap: 15px; */
  padding: 15px;
  background-color: var(--background);
  /* align-content: center; */
  border-radius: 20px;
  width: 100%;
  /* max-width: 500px; */
  margin: 0 auto;
}
.potrait img{
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  text-align: center;
}
.calendar {
  align-items: center; padding: 10px;
}
table{
   width: 100%;
  border-collapse: collapse;

}
td{
     padding:  2px;
     /* margin-left: 0; */
   font-size: 10px;
}
tr,td :nth-child{
    display: flex;
   align-items: left;
    /* gap: 12px; */
    /* padding-left: 6px; */
}
.upcoming-card{
  background-color: var(--accent);
  /* padding: 10px; */
  width: 90%;
  text-align: center;
  padding: 5px;
  border-radius: 10px;
  color: #FFFFFF;
}
.upcoming-today{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
button{
  /* background: var(--background); */
  border: none;
  padding: 10px;border-radius: 10px;

}
span{
  text-align: left;
}


/* upload using drag and drop */
.new-uploading{
  background: #00000096;
  backdrop-filter: blur(2px);
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  position: fixed;
  /* filter: blur(5px); */
  position: absolute;
  padding: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  z-index: 120;
  bottom: 100%;
  
  transition: 0.3s ease-in-out;
  /* bottom: 100%; */
  /* display: none; */
}
.showForm{
  /* display: flex; */
  /* bottom: 12%; */
  bottom: 0%;
  /* left: 35%; */
  position: fixed;
  transition: 0.6s ease-in-out;

  filter: blur(0px);
}

.upload-container{
  background-color: var(--accent);
  border-radius: 15px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: min(720px, 90%);
  max-width: 720px;
  height: auto;
  overflow-y: auto;

}
.upper-group{
  display: flex;
  justify-content: space-between;
}
 /* .left-group{
  width: 100%;
 } */
.input-group{
  width: 100%;
}
label{
  color: #000000;
}
select, input{
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  color: black;
}


.upload-box {
  border: 2px #4ea771;
  border-radius: 12px;
  width: 320px;
  height: 220px;
  text-align:center;
  padding: 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}

.upload-box.dragover {
  border-color: #013236;
  background: #c1e6ba;
}

.upload-box p {
  color: #013236;
  margin-top: 50px;
}

.upload-box span {
  color: #4ea771;
  font-weight: bold;
  cursor: pointer;
}

#previewImage {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}






















































/* Hero Page Styles */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/delicious-organic-coffee-still-life.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo svg {
    width: clamp(80px, 10vw, 132.93px);
    height: auto;
    margin-bottom: 1rem;
}

.hero-head span {
    display: block;
    font-family: 'FONTSPRING DEMO - The Seasons', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 96px);
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.hero-about span {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 20px);
    line-height: 1.5;
    text-align: center;
    color: #FFFFFF;
    padding: 0 1rem;
}

.portals {
    display: flex;
    gap: clamp(1rem, 3vw, 40px);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.farmer-portal {
    background: transparent;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    border: 2px solid #FFFFFF;
    font-size: clamp(1rem, 1.5vw, 20px);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.farmer-portal:hover, .admin-portal:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.farmer-portal a {
    text-decoration: none;
    color: #fff;
    display: block;
    width: 100%;
    text-align: center;
}

.admin-portal {
    border: 2px solid #FFFFFF;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 20px);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    cursor: pointer;
    background: transparent;
}

.cards {
    background-color: var(--background);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 15px;
    border: 0.1px solid #795B5B;
    box-shadow: 2px 6px 4px #795B5B33;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards:hover {
    box-shadow: 0 10px 20px rgba(86, 49, 49, 0.15);
    transform: translateY(-1px);
}

.cards h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.5vw, 30px);
    margin: 1rem 0;
    text-align: center;
    color: #000000;
}

.cards p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 18px);
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #795B5B;
    text-align: center;
    margin-top: auto;
}







.advert {
    box-sizing: border-box;
    width: 100%;
    min-height: 300px;
    padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 3rem);
    background: linear-gradient(90deg, rgba(66, 102, 6, 0.88) 33.58%, rgba(238, 173, 43, 0.88) 74.47%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
}

.advert h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 50px);
    line-height: 1.3;
    color: #FFFFFF;
    max-width: 1200px;
    margin: 0 auto;
}

.advert p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2vw, 24px);
    line-height: 1.5;
    color: #FFFFFF;
    max-width: 900px;
    margin: 0 auto;
}

.portal {
    display: inline-block;
    margin-top: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #FFFFFF;
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 20px);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portal:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

footer p{
    width: 100%;
    max-width: 788px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.4;
    text-align: center;
    margin: 2rem auto;
    color: #000000;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Profile Section Styles */
.profile-section {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* margin-bottom: 1rem; */
}

.profile-image .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info h4 {
  color: white;
  margin: 0;
  font-size: 1rem;
}

.farmer-status {
  color: var(--accent);
  margin: 0;
  font-size: 0.875rem;
}

/* Sidebar Footer */
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.sidebar-nav li {
  margin-bottom: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav .active a {
  background-color: rgba(78, 167, 113, 0.2);
}
.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer button {
  width: 100%;
  padding: 0.75rem;
  /* margin: 0.5rem 0; */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-footer button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Close Menu Button */
.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  /* Mobile Menu Styles */
  .menu-toggle {
    display: block;
  }
  
  .close-menu {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    z-index: 1000;
    width: 85%;
    max-width: 320px;
    transition: left 0.3s ease;
    background: var(--primary);
    overflow-y: auto;
    padding-top: 4rem;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  }

  .sidebar-open {
    left: 0;
  }

  .dashboard-container {
    padding: clamp(0.75rem, 2vw, 1rem);
    width: 100%;
    margin-left: 0;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .upload-btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
  }

  /* .bottom-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  } */

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .activity-status {
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .nav-head p {
    display: none;
  }

  .right-nav {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.7rem;
    min-width: 1.2rem;
    height: 1.2rem;
  }
}

/* Small Screen Styles */
@media screen and (max-width: 480px) {
  .dashboard-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .activity-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
  }

  .activity-action {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
  }

  .activity-date {
    font-size: 0.75rem;
  }

  .activity-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .nav-head h3 {
    font-size: 1rem;
  }

  .upload-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .sidebar {
    width: 90%;
    max-width: 280px;
  }

  .dashboard-container {
    padding: 0.5rem;
  }

  .top-nav {
    padding: 0.5rem;
  }

  .left-nav {
    gap: 0.5rem;
  }

  .logo-small {
    width: 28px;
    height: auto;
  }
}

/* Desktop-specific styles */
@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
  }

  .dashboard-container {
    margin-left: 0;
    flex: 1;
  }

  .close-menu {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* .bottom-section {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  } */
}


 .card {
      background-color: white;
      border-radius: 1rem;
      /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
      padding: 10px;
      /* margin-bottom: 1.5rem; */
      transition: all 0.3s ease;
      /* margin-top: px; */
    }
    .card:hover {
      box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
      transform: translateY(-2px);
    }
        table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
    }
    
    th, td {
      padding: 1rem;
      text-align: left;
      border-bottom: 1px solid #E2E8F0;
    }
    
    th {
      font-weight: 600;
      color: var(--primary);
    }
    .badge {
      font-size: 0.75rem;
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-weight: 500;
      position: relative;
    }
    
    .badge-success {
      background-color: var(--light-green);
      color: var(--primary);
    }
    
    .badge-warning {
      background-color: #FFEEB8;
      color: #665600;
    }
    
    .badge-danger {
      background-color: #FFCDC7;
      color: #8B0000;
    }
 

  /* //shipment */
  .progress {
      height: 0.5rem;
      background-color: #E2E8F0;
      border-radius: 9999px;
      overflow: hidden;
    }
    
    .progress-bar {
      height: 100%;
      background-color: var(--accent);
      border-radius: 9999px;
    }