/* ===================================
   USER DASHBOARD
=================================== */

.orders-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.order-card{
  background: rgba(255,255,255,0.92);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(43,107,63,0.16);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.10),
    0 4px 10px rgba(0,0,0,0.05);

  transition:
    transform .2s ease,
    box-shadow .2s ease;

  position: relative;
  overflow: hidden;
}

/* top green glow */
.order-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:6px;

  background: linear-gradient(
    90deg,
    #2b6b3f,
    #3b8d52,
    #6b8f4e
  );
}

.order-card:hover{
  transform: translateY(-6px);

  box-shadow:
    0 18px 40px rgba(0,0,0,0.14),
    0 6px 16px rgba(0,0,0,0.08);
}

/* top row */
.order-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}

.order-id{
  font-size: 17px;
  font-weight: 900;
  color: #163a25;
}

.order-date{
  font-size: 13px;
  font-weight: 700;
  color: #5d6f63;
}

/* status badges */
.status-badge{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  text-transform:capitalize;
  color:#fff;
}

.status-pending{
  background:#f0ad4e;
  color:#fff;
}

.status-processing{
  background:#5bc0de;
  color:#fff;
}

.status-completed{
  background:#5cb85c;
  color:#fff;
}

.status-cancelled{
  background:#d9534f;
  color:#fff;
}

/* total */
.order-total{
  font-size: 20px;
  font-weight: 900;
  color: #0f2f1e;

  margin-bottom: 20px;
}

/* invoice button */
.order-btn{
  width: 100%;
  display:flex;
  justify-content:center;
  align-items:center;

  padding: 12px;

  border-radius: 14px;

  background: linear-gradient(
    135deg,
    #1e4a2f,
    #2b6b3f
  );

  color: #fff;
  font-weight: 900;

  box-shadow: 0 10px 20px rgba(43,107,63,0.24);

  transition:
    transform .15s ease,
    box-shadow .2s ease;
}

.order-btn:hover{
  transform: translateY(-2px);

  box-shadow:
    0 16px 30px rgba(43,107,63,0.30);
}

/* mobile */
@media (max-width: 600px){

  .order-card{
    padding:18px;
  }

  .order-top{
    flex-direction:column;
    align-items:flex-start;
  }

  .order-total{
    font-size:18px;
  }
}


/* dashboard profile and logout*/
.dashboard-hero{
  background:linear-gradient(135deg,#2b6b3f,#3b8d52);
  color:#fff;
  border-radius:24px;
  padding:30px;
  margin-bottom:25px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.dashboard-title{
  margin:0;
  font-size:32px;
  font-weight:900;
}

.dashboard-subtitle{
  margin-top:8px;
  opacity:0.9;
}

.dashboard-icon{
  font-size:70px;
  opacity:0.9;
}

.profile-card{
  background:#fff;
  border-radius:20px;
  padding:20px;
  margin-bottom:30px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.profile-top{
  display:flex;
  align-items:center;
  gap:15px;
}

.profile-avatar{
  font-size:60px;
  color:#2b6b3f;
}

.empty-orders{
  text-align:center;
  padding:60px 20px;
  background:#fff;
  border-radius:24px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.empty-icon{
  font-size:80px;
  color:#2b6b3f;
}

.shop-btn{
  display:inline-block;
  margin-top:20px;
  padding:12px 24px;
  border-radius:12px;
  background:#2b6b3f;
  color:#fff;
  font-weight:800;
}

.profile-menu{
  position: relative;
}

/* PROFILE BUTTON */
.profile-btn{
  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(43,107,63,0.22);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  box-shadow: 0 8px 18px rgba(0,0,0,0.10);

  transition: transform .15s ease,
              box-shadow .2s ease,
              background .2s ease;
}

.profile-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.14);
  background: #ffffff;
}

.profile-btn .material-icons{
  font-size: 40px;

  color: #2b6b3f;   /* green outer icon */
  background: #ffffff; /* WHITE middle */

  border-radius: 50%;

  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

/* DROPDOWN */
.profile-dropdown{
  position: absolute;
  right: 0;
  top: 58px;

  width: 220px;

  background: #ffffff;
  border-radius: 18px;

  border: 1px solid rgba(43,107,63,0.14);

  box-shadow: 0 18px 40px rgba(0,0,0,0.14);

  display: none;
  overflow: hidden;

  z-index: 9999;
}

/* SHOW DROPDOWN */
.show-dropdown{
  display: block;
  animation: dropdownFade .18s ease;
}

/* LINKS */
.profile-dropdown a{
  display: flex;
  align-items: center;

  padding: 15px 18px;

  color: #1e4a2f;
  font-weight: 800;
  font-size: 15px;

  transition: background .18s ease,
              padding-left .18s ease;
}

/* HOVER */
.profile-dropdown a:hover{
  background: rgba(59,141,82,0.10);
  padding-left: 22px;
}

/* DIVIDER */
.profile-dropdown a:not(:last-child){
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* ANIMATION */
@keyframes dropdownFade{
  from{
    opacity:0;
    transform: translateY(-8px);
  }

  to{
    opacity:1;
    transform: translateY(0);
  }
}