* {
    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: #ffffff; }
 
  /* 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-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: 0.9rem;
   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;
 }

.page-header {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.page-header p {
    font-size: 13px;
    color: #666;
}


.stats-row {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 2rem;
}

.stat-card {
    flex: 1;

    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: white;

}

.stat-card.green {
    background: linear-gradient(135deg, #e82727, #ff7f7f);
}

.stat-card.blue {
    background: linear-gradient(135deg, #e82727, #ff7f7f);
}

.stat-card.purple {
    background: linear-gradient(135deg, #e82727, #ff7f7f);
}

.stat-card .sv {
    font-size: 34px;
    font-weight: 800;
}

.stat-card .sl {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

.window-grid {
    display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    width: 100%;
}

.wcard {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
  
    width: 100%;

}

.wcard:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.win-label {
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
}



.win-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.wcard h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111;
}

.wcard p {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.get-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.wcard:hover .get-btn {
    background: #8B0000;
}

@media (max-width: 600px) {

    .stats-row,
    .window-grid {
        padding: 14px;
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 16px;
    }
}

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



}

.main-layout {
   
  
     width: 100%;
    margin: 0;
    padding: 0 1.5rem 2rem;
}


.history-panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 78px;
}

.history-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-header h3 {
    font-size: .95rem;
    font-weight: 700;
}

.history-badge {
    font-size: .7rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border-radius: 20px;
    padding: .15rem .55rem;
}

.history-filter {
    display: flex;
    gap: .4rem;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.filter-lbl {
    flex: 1;
    text-align: center;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .35rem .4rem;
    cursor: pointer;
    color: var(--muted);
    transition: background .15s, color .15s, border-color .15s;
    user-select: none;
}

.filter-lbl:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent);
}

#f-all:checked~.main-layout .lbl-all,
#f-done:checked~.main-layout .lbl-done,
#f-wait:checked~.main-layout .lbl-wait,
#f-miss:checked~.main-layout .lbl-miss {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.history-list {
    max-height: 490px;
    overflow-y: auto;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* All items shown by default */
.history-item {
    padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: .75rem;
    transition: background .15s;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: #f8fafc;
}


#f-done:checked~.main-layout .history-item:not(.is-done) {
    display: none;
}

#f-wait:checked~.main-layout .history-item:not(.is-waiting) {
    display: none;
}

#f-miss:checked~.main-layout .history-item:not(.is-missed) {
    display: none;
}

.h-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.h-info {
    min-width: 0;
}

.h-title {
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h-sub {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .15rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.h-num {
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: .1rem .4rem;
    border-radius: 5px;
}

.nav-links  a{
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.h-right {
    text-align: left;
    flex-shrink: 0;
}

.h-status {
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 20px;
    white-space: nowrap;
}

.h-status.done {
    background: var(--green-bg);
    color: var(--green);
}

.h-status.active {
    background: var(--blue-bg);
    color: var(--blue);
}

.h-status.waiting {
    background: #fef3c7;
    color: #b45309;
}

.h-status.missed {
    background: #fee2e2;
    color: #dc2626;
}

.h-time {
    font-size: .66rem;
    color: var(--muted);
    margin-top: .25rem;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .history-panel {
        position: static;
    }
}


.filter-radio {
    display: none;
}

:root {
    --bg: #f0f4f8;
    --surface: #ffffff;
    --nav-bg: #1a2744;
    --accent: #3b6ef8;
    --accent-light: #dbe7ff;
    --text: #1e2d40;
    --muted: #6b7f99;
    --border: #dde4ef;
    --green: #16a34a;
    --green-bg: #dcfce7;
    --blue: #2563eb;
    --blue-bg: #dbeafe;
    --purple: #7c3aed;
    --shadow: 0 2px 12px rgba(30, 45, 64, 0.08);
    --radius: 14px;
}

.popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);

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


    opacity: 0;
    visibility: hidden;
    transition: 0.24s ease;



}



.popup:target {
    opacity: 1;
    visibility: visible;
}


.popup-card {
    background: white;
    width: 340px;
    padding: 20px;
    border-radius: 16px;
    position: relative;

    transform: scale(0.9);
    transition: 0.25s ease;
}

.popup:target .popup-card {
    transform: scale(1);
}

.popup-content {
    background: white;
    width: 300px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    text-decoration: none;
    font-size: 20px;


}

.proceed-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 100%;

}

.ulpop {

    margin-bottom: 10px;
    list-style: none;
}

.schedpad {

    margin: 10px;
}

.optionchoice {

    margin: 3px;
    width: 100%;
    padding: 10px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.optionchoice:hover {

    background-color: #8B0000;
}

.confirmBoxes {

    display: none;
    margin-top: 10px;

}

.proceed-btn:hover {

    background-color: white;
    color: black;
    cursor: pointer;
}

.selandreq {

    transition: background 0.2s;
    margin-top: 10px;

    font-size: 15px;


}

.nav-links a.checked {
    color: white;
    font-weight: 700;
}

.modalinfo {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

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

  background-color: rgba(0,0,0,0.5);
  z-index: 999;
}

.modalinfo-content {
  background: white;
  padding: 20px;
  margin: 100px auto;
  width: 400px;
  border-radius: 10px;
  text-align: center;
 
}

.modalinfo-content input[type="text"],
.modalinfo-content input[type="tel"] {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modalinfo-content button {
  padding: 10px 20px;
  background-color: #111827;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
  cursor: pointer;
}

#terms{
    cursor: pointer;
}

.closeinfo {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.priority-box {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
    
    
    margin-top: 15px;
    font-family: Arial, sans-serif;
}

.priority-title {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

.priority-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.priority-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}


.priority-list input[type="text"] {
    margin-left: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 13px;
}

.priority-choice {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.priority-choice label {
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}

.priority-choice input[type="radio"] {
    margin-right: 5px;
}
.window-section {
      margin-bottom: 40px;
    display: flex;
    flex-direction: column;
   align-items: stretch;
}

.section-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #8B0000;
    margin: 6px auto 0;
    border-radius: 2px;
}


.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px); 
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    color: #8B0000; 
}

.close-btn {
    background: none; border: none; font-size: 24px; cursor: pointer; color: #888;
}

.req-text {
    color: #d97706;
    background: #fffbeb;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    margin-top: 10px;
}

.input-group input, .priority-box select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.terms-label {
    display: flex;
    gap: 10px;
    font-size: 0.85em;
    margin: 15px 0;
    color: #555;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-cancel, .btn-confirm {
    padding: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    flex: 1;
    font-weight: bold;
}

/* smooth appear */
.window-section, .popup, .modalinfo-content {
    animation: fadeInUp 0.6s ease;
}
.wcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    transition: 0.25s;
}
.btn-confirm, .proceed-btn, .optionchoice {
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-confirm:hover, .proceed-btn:hover, .optionchoice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,0,0,0.2);
}

:root{
  --crimson:#8B0000;--crimson-dark:#6a0000;--crimson-light:#fdf2f2;
  --white:#fff;--bg:#f5f5f5;--text:#1a1a1a;--muted:#6b7280;
  --border:#e5e7eb;--success:#16a34a;--warning:#d97706;--danger:#dc2626;
  --radius:10px;--shadow:0 2px 12px rgba(0,0,0,.08);
  --sidebar:240px;--topbar:60px;
}