/* =========================
   GLOBAL RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

body{
  background:#d9d9d9;
}


/* =========================
   DASHBOARD WRAPPER
========================= */
.dashboard-wrapper{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding:20px;
}


/* =========================
   DASHBOARD MAIN LAYOUT
   Sidebar | Main Content | Right Panel
========================= */
.dashboard-layout{

  grid-template-columns: 247px minmax(0, 1fr) 300px;

   display:flex;
  align-items:flex-start;
  gap:20px;
  min-height:100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar{
  width:247px;
  min-height:790px;
  background:#384054;
  border-radius:18px;
  padding:10px 0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  flex-shrink:0;
}

.sidebar-top{
  width:100%;
}

.sidebar-logo{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:15px;
  margin-bottom:20px;
}

.sidebar-logo img{
  width:200px;
  height:auto;
}

.sidebar-menu{
  list-style:none;
  padding:0 11px;
}

.sidebar-item{
  margin-bottom:5px;
  border-radius:30px;
}

.sidebar-item a{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:white;
  font-size:17px;
  padding:9px 12px;
  border-radius:30px;
}

.sidebar-item.active a{
  background:#ffffff;
  color:#000;
}

.sidebar-item.active .icon svg{
  fill:black;
}
.sidebar-item:hover{
    opacity: 0.8;
}
.sidebar-item:active{
    opacity: 0.5;
}

.sidebar-item:not(.active) a:hover{
  background:rgba(255,255,255,0.08);
}

.icon{
  width:22px;
  text-align:center;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sidebar-bottom{
  padding:0 15px;
}

.logout-btn{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:white;
  font-size:17px;
  padding:9px 14px;
  border-radius:30px;
  margin-bottom: 40%;
}

.logout-btn:hover{
  background:rgba(255,255,255,0.08);
}


/* =========================
   MAIN CONTENT
========================= */
.main-content{

  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
    flex:1;
  padding:20px 24px 20px 24px;
}

.welcome-card{
  background:#f3f3f3;
  border-radius:22px;
  padding:28px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:180px;
}

.welcome-left h2{
  font-size:28px;
  margin-bottom:12px;
}

.welcome-left p{
  font-size:16px;
  margin-bottom:18px;
}

.welcome-left a{
  color:#18a6db;
  text-decoration:underline;
  font-size:16px;
}

.welcome-right img{
  width:180px;
  height:auto;
  display:block;
}

.customer-bottom-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:20px;
  align-items:stretch;
}

.orders-container{
  background:#f3f3f3;
  border-radius:22px;
  padding:24px;
  min-height:380px;
}

.orders-container h2{
  font-size:22px;
  margin-bottom:6px;
}

.subtitle{
  font-size:16px;
  color:#444;
  margin-bottom:18px;
}

.orders-table-wrapper{
  max-height:250px;
  overflow-y:auto;
  margin-top:8px;
}

.orders-table{
  width:100%;
  border-collapse:collapse;
}

.orders-table th{
  text-align:left;
  padding:12px 10px;
  border-bottom:2px solid #999;
  font-size:15px;
  font-weight:700;
}

.orders-table td{
  padding:16px 10px;
  border-bottom:1px solid #c9c9c9;
  font-size:15px;
  vertical-align:middle;
}

.status-badge{
  display:inline-block;
  padding:6px 14px;
  border-radius:18px;
  font-size:13px;
  font-weight:700;
  color:#fff;
}

.status-progress{
  background:#ff7a18;
}

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

.status-completed{
  background:#28a745;
}

.status-cancelled{
  background:#dc3545;
}

.orders-summary{
  margin-top:16px;
  font-size:15px;
  color:#333;
}

.stats-column{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.stat-card{
  background:#f3f3f3;
  border-radius:22px;
  padding:24px;
  min-height:180px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.stat-icon{
  font-size:58px;
  margin-bottom:14px;
}

.stat-card h3{
  font-size:20px;
  margin-bottom:12px;
  line-height:1.3;
}

.stat-card p{
  font-size:16px;
  color:#333;
}

.right-panel{
  width:320px;
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.profile-bar{
  background:#f4f4f4;
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.calendar-container{
  background:#f3f3f3;
  border-radius:22px;
  padding:24px;
}

.no-orders{
  font-size:16px;
  color:#555;
}


/* =========================
   RIGHT PANEL
========================= */
.right-panel{
  width:300px;
  display:flex;
  flex-direction:column;
  gap:18px;
}


/* =========================
   PROFILE BAR
========================= */
.profile-bar{
  background:#f4f4f4;
  border-radius:14px;
  padding:10px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

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

.profile-icon{
  display:flex;
  align-items:center;
  justify-content:center;
}

.profile-name{
  font-size:16px;
  color:#222;
}

.profile-arrow{
  font-size:15px;
  color:#222;
  align-items: center;
}
.profile-bar{
  position:relative;
}

.profile-dropdown{
  position:relative;
  right:0;
  top:0px;
  width:160px;
  background:white;
  border-radius:10px;
  box-shadow:0 5px 15px rgba(0,0,0,0.2);
  display:none;
  flex-direction:column;
}

.profile-dropdown a{
  padding:2px;
  text-decoration:none;
  color:#333;
}

.profile-dropdown a:hover{
  background:#f2f2f2;
}

/* =========================
   CALENDAR CARD
========================= */
.calendar-container{
  background:#f3f3f3;
  border-radius:22px;
  padding:24px;
}


/* =========================
   CALENDAR HEADER
========================= */
.calendar-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.calendar-header h3{
  font-size:20px;
}

.today-text{
  font-size:14px;
}


/* =========================
   CALENDAR MONTH / YEAR
========================= */
.calendar-month{
  display:flex;
  justify-content:space-between;
  font-weight:bold;
  margin-bottom:10px;
}


/* =========================
   CALENDAR WEEKDAYS
========================= */
.calendar-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  font-size:12px;
  color:#555;
  margin-bottom:8px;
}


/* =========================
   CALENDAR DAYS GRID
========================= */
.calendar-days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  font-size:14px;
}

.calendar-days span{
  text-align:center;
}


/* =========================
   TODAY HIGHLIGHT
========================= */
.today{
  background:#1ea7d6;
  color:white;
  border-radius:50%;
  padding:5px;
}