.sf-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.sf-tab-label {
    min-width: 0;
}

.sf-tab-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;
    color: #777;
    font-size: 16px;
    line-height: 1;

    cursor: pointer;
}

.sf-tab-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #111;
}

/* =========================================================
   🧭 CORE LAYOUT & NAVIGATION
========================================================= */

/* Layout wrapper */
.sf-layout {
  display: flex;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
}


.sf-nav-staff-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px 0;
  margin: 6px 0 10px 0;
}

.sf-nav-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sf-nav-user {
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
}

.sf-nav-logout {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.sf-nav-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.sf-nav-logout:active {
  transform: translateY(0);
}

.sf-nav-role {
  opacity: 0.75;
  font-size: 0.85rem;
}

/* Sidebar */
.sf-nav-app {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: linear-gradient(180deg, #1a1a1a, #2a2a2a);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-right: 2px solid rgba(255, 204, 0, 0.3);
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.4);
  z-index: 300;
  pointer-events: auto;
}

.sf-nav-app h2 {
  font-family: "Agency FB", "Zilla Slab", sans-serif;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: #ffcc00;
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 204, 0, 0.3);
  margin: 0;
}

/* Sidebar list */
.sf-nav-app ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-nav-app li {
  cursor: pointer;
  user-select: none;
}

/* Sidebar links */
.sf-nav-app nav ul,
.sf-nav-app nav li {
  margin: 0;
  padding: 0;
}

.sf-nav-app nav a,
.sf-nav-app li {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sf-nav-app a:hover,
.sf-nav-app li:hover {
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
}

.sf-nav-app a.active,
.sf-nav-app li.active {
  background: rgba(255, 204, 0, 0.3);
  color: #000;
  font-weight: 700;
}

.sf-nav-app li.sf-nav-direct {
  cursor: pointer;
}


/* Top nav bar */
.sf-nav-top {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid #ffcc00;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 250;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* Main content */
.sf-main {
  flex: 1;
  margin-left: 240px;  /* sidebar width */
  margin-top: 60px;    /* top nav height */
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-left: 2px solid rgba(255, 204, 0, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 60px);
  animation: sfp-fade-in 0.25s ease-in-out;
  position: relative;
  z-index: 100;

  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden; /* tabs manage scroll */
}


/* Tabs container */

.sf-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 60px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  animation: sfp-fade-up 0.3s ease-in-out;
}

/* Tab bar */
.sf-tab-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem 0;
  padding: 0.75rem 1rem 0 1rem;
}

.sf-tab {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px 4px 0 0;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  font-size: 0.95rem;
}

.sf-tab.active {
  background: #ffcc00;
  color: #000;
  border-bottom: 2px solid #000;
  font-weight: 700;
}

/* Tab content viewport */
.sf-tab-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem;
  box-sizing: border-box;
  background: #fff;
}

/* Tab scroll styling */
.sf-tab-content::-webkit-scrollbar {
  width: 8px;
}
.sf-tab-content::-webkit-scrollbar-thumb {
  background-color: #ffcc00;
  border-radius: 4px;
}
.sf-tab-content::-webkit-scrollbar-track {
  background-color: #2a2a2a;
}
