* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    font-family: Arial, sans-serif;
    background-color: #f5f5f5;

}

    .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
  }
  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }
 
  /* Sidebar */
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 110;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
  }
  .sidebar.open {
    transform: translateX(0);
  }
 
  /* Header */
  .sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e5e7eb;
  }

 .nav-item.logout{
    font-size: 13px;
    color: #6b7280;
    border-radius: 10px;
  }
  .sb-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }
  .close-btn {
    width: 30px; height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6b7280;
  }
  .close-btn:hover { background: #f3f4f6; }
 
  /* Profile */
  .profile-section {
    padding: 20px 16px 16px;
    border-bottom: 1px solid #e5e7eb;
  }
  .avatar {
    padding: 12px 20px;
    border-radius: 20px;
    background: #4A1B0C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #F5C4B3;
    margin-bottom: 10px;
  }
  .profile-name {
   font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    text-decoration: none;
     background: none;
     border: none;
     padding: 0;
  }
  .profile-email {
    font-size: 20px;
    font-weight: 500;
    color: #5f0606;
  }
  .role-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
  }
  .role-pill.registrar {
     background: #FAECE7;
      color: #993C1D; 
    }
  .role-pill.cashier   {
     background: #E1F5EE; 
     color: #0F6E56;
     }
  .role-dot {
     width: 6px;
      height: 6px;
       border-radius: 50%;
     }
  .role-pill.registrar .role-dot {
     background: #D85A30; 
    }
  .role-pill.cashier   .role-dot { 
    background: #1D9E75;
 }
 
  /* Section Label */
  .section-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px 6px;
    background-color: #ffffff;
  }
 
  /* Nav Items */
  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    color: #111827;
    font-size: 14px;
    transition: background 0.15s;
    text-decoration: none;
    background-color: #ffffff;
  }
  .nav-item:hover, .nav-item.active {
     background: #777777;
     }
  .nav-item.logout span { 
    font-size: 13px; 
    color: #8b0000; 
     font-weight: 600;
      }
 
  .nav-icon {
    width: 32px; 
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .nav-icon.blue  { 
    background: #E6F1FB; 
}
  .nav-icon.amber {
     background: #FAEEDA;
     }
  .nav-icon.coral {
     background: #FAECE7;
     }
  .nav-icon.teal  {
     background: #E1F5EE;
     }
  .nav-icon.gray  { 
    background: #f3f4f6; 
}
 
  .history-badge {
    margin-left: auto;
    font-size: 11px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
  }
 
  /* Role Switcher */
  .role-section { 
    padding: 10px 16px 4px; 
    background-color: #ffffff;
    
}
  .role-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
  }
  .role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .role-btn {
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Segoe UI', sans-serif;
  }
  .role-btn:hover { 
    background: #f3f4f6; 
}
  .role-btn.selected.reg  {
     background: #FAECE7; 
     border-color: #F0997B;
      color: #993C1D; 
    }
  .role-btn.selected.cash { 
    background: #E1F5EE; 
    border-color: #5DCAA5;
     color: #0F6E56;
     }
 
  /* Footer */
  .sb-footer {
    margin-top: auto;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
   
    background-color: #ffffff;
    color: #000000;
    border-radius: 0 0 8px 8px;


  }
 
  /* Hamburger Button */
  .hamburger {
    width: 36px; 
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    padding: 0;
    
  }
  .hamburger:hover {
      background: #c20000;
     }
  .bar {
    width: 20px; 
    height: 2px;
     background: #eef0f4;
    border-radius: 2px;
    transition: all 0.25s;
  }
  .hamburger.active .bar:nth-child(1) { 
    transform: translateY(7px) rotate(45deg);
 }
  .hamburger.active .bar:nth-child(2) { 
    opacity: 0; transform: scaleX(0);
 }
  .hamburger.active .bar:nth-child(3) {
     transform: translateY(-7px) rotate(-45deg);
     }
.profile-section{
    background: #bebebe;
    color: #fff9f7;
    
}

nav {
  position: fixed;
  top: 0; 
  left: 0;
   right: 0; 
   z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(139,0,0,0.97);
  backdrop-filter: blur(8px);
}
.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    max-height: 95px;
    width: 150px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}
.nav-links a.checked{
     color: white;
     font-weight: 700;
     }

.nav-name {
  font-size: 1rem; 
  font-weight: 700;
   color: white;
  letter-spacing: 0.05em; 
  text-transform: uppercase;
}
.nav-name span { font-size: 0.55rem;
     display: block; 
     font-weight: 400;
      opacity: 0.6; 
      letter-spacing: 0.08em; 
      margin-top: -2px; 
    }
.nav-links {
     display: flex; 
    gap: 2rem;
     list-style: none; 
    }
.nav-links a {
  font-size:15px;
   font-weight: 500; 
   color: rgba(255,255,255,0.75);
  text-decoration: none; 
  transition: color 0.2s;
}
.nav-links a:hover { 
    color: white;
 }
.nav-btn {
    background: rgba();
    color: rgb(204, 5, 5);
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 500;
    padding: 6px 12px;
    transition: background 0.2s, color 0.2s;
}
.nav-btn:hover { 
    opacity: 0.9;
 }


.bodd1 {
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;

}

.bodd2 {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

}

.queue-container {
    background: white;
    border-radius: 20px;
    padding: 40px 60px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 400px;

}

.current-number {
    font-size: 60px;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 10px;
}

.status-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.queue-list {
    list-style: none;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.queue-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f7f7f7;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    transition: 0.3s;
    font-size: 13px;
}

.queue-list li.current {
    background: #8B0000;
    color: white;
    font-weight: bold;
}



.cancel-btn {
    display: block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background-color: #eee;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    text-align: center;
}

.cancel-btn:hover {
    background-color: #ffffff;

    color: #000000;
    border: solid black;
}

footer {
    background-color: #7a0000;
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 600px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .card {
        width: 90%;
    }

    .stats,
    .sg {
        grid-template-columns: 1fr;
    }

    .queue-container {
        width: 90%;
        padding: 30px 20px;
    }
}

.cancel-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #7a0000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 20px;
}

.queue-typepri {
  color: red  ;
  font-weight: 600;
}
.queue-typereg {
  color: #8B0000;
  font-weight: 600;
}


@keyframes popInScale {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.queue-container {
    animation: popInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background: #ffffff;
    border-top: 6px solid #8B0000; /* WMSU Accent */
    transition: box-shadow 0.3s ease;
}

.queue-container:hover {
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.15);
}

.current-number {
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); color: #a80000; }
}


/* Animations */
.queue-container {
    animation: popInScale 0.6s ease;
}
@keyframes popInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
.cancel-btn {
    transition: background 0.3s, transform 0.2s;
}
.cancel-btn:hover {
    transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
    .bodd2 {
        padding: 20px 10px;
        align-items: flex-start;
        padding-top: 80px; 
    }

    .queue-container {
        width: 100%;
        max-width: 100%;
        padding: 25px 15px;
        margin: 0 auto;
    }

    .current-number {
        font-size: 48px;
    }

    .queue-list li {
        font-size: 12px;
        padding: 10px;
    }

    .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .optionchoice {
        width: 100%;
        padding: 12px;
    }
}