.main-home-container {
    width:90%;
    margin:0 auto;
    display: flex;
    flex-direction: column;
}

/*subject Box*/
/* Wrapper */
.dashboard-wrap{
  display: flex;
  width: 90%;
  margin: 30px auto;
  min-height: 80vh;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Sidebar */
.dash-sidebar{
  width: 240px;
  background: #222;
  color: #fff;
  border-radius: 12px;
  padding: 20px 0;
  transition: transform 0.3s ease;
}
.sidebar-title{
  text-align: center;
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 600;
  color:goldenrod;
}

/* Menu */
.sidebar-menu{
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li{
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-menu a{
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.sidebar-menu a:hover{
  background: rgba(255,255,255,0.15);
}

.sidebar-menu .logout{
  color: #ffdddd;
}

/* Main */
.dash-main{
  flex: 1;
  margin-left: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  position: relative;
}

/* Toggle button */
/* Toggle button base */
.sidebar-toggle{
  display: none;
  background: #000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
}

/* Content */
.dash-content h1{
  margin-top: 0;
  font-size: 24px;
  color: #222;
}

.gap-margin {margin-top: 60px;}
.verified-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    font-size:13px;
    font-weight:600;
    color:#2e7d32;
    background:#e6f6ea;
    border-radius:20px;
}

.verified-badge::before{
    content:"✓";
    width:18px;
    height:18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#2e7d32;
    color:#fff;
    border-radius:50%;
    font-size:12px;
    font-weight:bold;
}
.not-verified{
    font-size:13px;
    color:#d93025;
    background:#ffe5e5;
    padding:4px 10px;
    border-radius:20px;
}
/* Overlay */
.modal-overlay{
    position:fixed;
    inset:0;
    background:rgb(0, 0, 0, 0.9);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    padding:15px;
}

/* Modal box */
.modal-box{
    background:#fff;
    max-width:420px;
    width:100%;
    border-radius:12px;
    padding:25px 22px;
    text-align:center;
    animation:popupFade .3s ease;
}

.modal-box h2{
    margin:0 0 10px;
    font-size:22px;
}

.modal-box p{
    font-size:15px;
    color:#555;
    line-height:1.5;
}

/* Buttons */
.modal-actions{
    display:flex;
    gap:12px;
    margin-top:20px;
    flex-wrap:wrap;
}

.modal-actions .btn{
    flex:1;
    padding:12px 10px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.btn.primary{
    background:#007bff;
    color:#fff;
}

.btn.secondary{
    background:#09637E;
    color:#fff;
}

/* Animation */
@keyframes popupFade{
    from{transform:scale(.9); opacity:0}
    to{transform:scale(1); opacity:1}
}

.spinner{
    width:18px;
    height:18px;
    border:3px solid rgba(255,255,255,0.4);
    border-top:3px solid #fff;   /* 👈 FORCE visible */
    border-radius:50%;
    display:none;                /* default hidden */
    vertical-align:middle;
    margin-left:8px;
    animation:spin 0.8s linear infinite;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}

/* Box container */
.box-dash{
  background:#fff;
  padding:20px;
  margin-bottom:25px;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  font-family:"Segoe UI", Arial, sans-serif;
}

.box-dash h3{
  margin-top:0;
  font-size:18px;
  color:#0a7c3a;
}

/* Div table */
.divTable{
  display:table;
  width:100%;
  border-collapse:collapse;
  margin-top:15px;
}

.divRow{
  display:table-row;
}

/* Cells */
.divTable [class^="divCell"]{
  display:table-cell;
  padding:10px 12px;
  border-bottom:1px solid #e6e6e6;
  font-size:14px;
  color:#333;
}

/* Header cells */
.backg{
  background:#f3f7f5;
  font-weight:600;
  color:#222;
  border-bottom:2px solid #d0e4da;
}

/* Status color */
.divCell-t,
.divCell-c{
  font-weight:600;
}

.divCell-c{
  color:#0a7c3a;
}

/* Zebra effect */
.divRow:nth-child(even) [class^="divCell"]{
  background:#fafafa;
}

/*Profile*/
.profile {display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px;}
.profile_image {width:100px; padding: 8px; background: #fff; box-shadow: 2px 4px 6px #888;}

/* ---------- Responsive (Mobile) ---------- */
@media (max-width: 768px){

  .divTable,
  .divRow,
  .divTable [class^="divCell"]{
    display:block;
    width:100%;
  }

  .divRow{
    margin-bottom:15px;
    border:1px solid #e6e6e6;
    border-radius:8px;
    overflow:hidden;
  }

  .divTable [class^="divCell"]{
    border:none;
    border-bottom:1px solid #eee;
    padding:10px;
  }

  .backg{
    background:#0a7c3a;
    color:#fff;
    border:none;
  }
}
/* Mobile / Tablet */
@media (max-width: 992px){
  .dash-sidebar{
    position: fixed;
    left: 0;
    top: 60px;
    height: 100%;
    transform: translateX(-100%);
    z-index: 1000;          /* ðŸ”¥ IMPORTANT */
    border-radius: 0;
  }

  .dash-sidebar.show{
    transform: translateX(0);
  }

  .sidebar-toggle{
    display: block;
    position: fixed;       /* ðŸ”¥ IMPORTANT */
    top: 15px;
    left: 15px;
    z-index: 1100;         /* ðŸ”¥ ABOVE sidebar */
  }
}
/* Mobile */
@media(max-width:480px){
    .modal-box h2{font-size:20px}
    .modal-box p{font-size:14px}
}