/*theme CSS variables */
:root {
  --brand: #A77B1E;
  --brand-dark: #4A2E0C;
  --page-topbar: #A77B1E;
  --bg-body-pattern: #F9F9F7;
  --bg-card: #FFFFFF;
  --border-card: #DCDCDC;
  --text-main: #1E1E1E;
  --text-dim: #6B7280;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 20px 40px rgba(0,0,0,0.04);
  --line-soft: rgba(0,0,0,0.08);
  --pattern-bg: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
}

/* setup base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-main);
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/*top bar styles*/

/* Overall top bar */ 
.topbar2 { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  /* full width */ 
  height: 50px; 
  /* or whatever height you use */ 
  background: #a87d1f; 
  /* your empire gold */ 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0 1rem; 
  box-sizing: border-box; 
  z-index: 1000; 
  } 
  
/* Left section (☰ + name inline) */ 
.topbar-left { 
  display: flex; 
  align-items: center; 
  
/* ✅ keep burger + name in one row */ 
gap: 1rem; 
/* space between ☰ and name */ 
} 
/* Burger button styling */ 

.burger-btn { 
  position: relative; 
  top: -2px; background: 
  transparent; 
  border: 0px solid rgba(255, 255, 255, 0.5); 
  border-radius: 6px; 
  color: white; 
  font-size: 1.2rem; 
  padding: 0.5rem 0.5rem; 
  cursor: pointer; 
} 
/* Employee name style */ 
.page-headline { 
  font-weight: 600; 
  font-size: 1rem; 
  color: white; 
  white-space: nowrap; 
  display: inline-block; 
  line-height: 1; 
  /* ensures it aligns vertically */ 
} 

/* Right section (🔔 + avatar inline) */ 
.topbar-right { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
} 

.primary-ghost-btn { 
  background: #1d0d0d; 
  color: var(--brand-dark); 
  font-weight: 600; 
  font-size: .8rem; 
  border-radius: var(--radius-btn); 
  border: 1px solid rgba(0,0,0,0.1); 
  line-height: 1.2; 
  padding: .5rem .75rem; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: .4rem; 
} 

.icon-btn { 
  background: rgba(255,255,255,0.15); 
  border: 1px solid rgba(255,255,255,0.4); 
  border-radius: var(--radius-btn); 
  color: #fff; font-size: .9rem; 
  line-height: 1; 
  padding: .5rem .6rem; 
  cursor: pointer; 
  min-width: 2rem; 
  text-align: center; 
} 

.avatar-chip { 
  display: flex; 
  align-items: center; 
  gap: .5rem; 
} 

.avatar-circle-btn { 
  background: #fff; 
  color: var(--brand-dark); 
  font-weight: 600; 
  font-size: .8rem; 
  width: 2rem; 
  height: 2rem; 
  border-radius: 999px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  line-height: 1;
   border: 1px solid rgba(0,0,0,0.1); 
   cursor: pointer; 
   transition: background 0.2s, transform 0.1s; 
} 
   
.avatar-circle-btn:hover { 
  background: #4a2e0c50; 
} 

.avatar-circle-btn:active { 
  transform: scale(0.95); 
}

/*sidebar styles*/
/* SIDEBAR CONTAINER */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px; /* Hidden by default */
  width: 260px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #dcdcdc;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  z-index: 1500;
}

/* Slide-in state */
.sidebar.open {
  left: 0;
}

/* SIDEBAR HEADER */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
}

/* NAVIGATION LINKS */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.sidebar-link {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ADMIN-SPECIFIC LINK STYLE */
.admin-only {
  color: #a77b1e;
  font-weight: 600;
}

/* BACKDROP OVERLAY (active when sidebar is open) */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: all;
}


/*generic card styles*/
.main-body {
  background-color: var(--bg-body-pattern);
  background-image: var(--pattern-bg), var(--pattern-bg);
  background-size: 16px 16px, 32px 32px;
  background-position: 0 0, 8px 8px;
  padding: calc(50px + 1.5rem) 1rem 4rem;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.info-card-header {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.info-card-inner { 
    padding: 1rem 1rem 1.25rem; 
} 

/*responsive adjustments*/
@media (max-width: 900px) {
  .cards-row { grid-template-columns: 1fr; }
  .topbar-right { padding: 5px; width: 100%; justify-content: flex-end; }
}

/* =========================
   QUICK ACCESS BUTTONS
   ========================= */

.quick-grid {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quick-btn {
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.75rem 0.75rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: background 0.2s, border 0.2s, color 0.2s;
}

/* Primary (gold) solid buttons */
.quick-btn-solid {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-btn-solid:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* White outline buttons */
.quick-btn-outline {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--brand);
}

.quick-btn-outline:hover {
  background: rgba(167,123,30,0.1);
}

/* Disabled (optional) */
.quick-btn-disabled {
  background: #E5E7EB;
  color: #9CA3AF;
  border-color: #E5E7EB;
  cursor: not-allowed;
}

.small-action-btn { 
  background: #fff; 
  border: 1px solid var(--line-soft); 
  border-radius: var(--radius-btn); 
  font-size: .8rem; 
  font-weight: 500; 
  padding: .45rem .6rem; 
  line-height: 1.2; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  gap: .4rem; 
}