/* Governor House Sindh - Application Shell & Layout */

/* Shell Container */
.gh-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Floating Glass Sidebar */
.gh-sidebar {
  width: var(--gh-sidebar-width);
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  margin: 16px 0 16px 16px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 253, 244, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--gh-radius-card);
  box-shadow: 
    0 0 0 1px rgba(7, 94, 59, 0.10),
    0 24px 60px rgba(7, 60, 38, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.02),
    inset 0 2px 2px rgba(255, 255, 255, 0.98),
    inset 0 -1px 2px rgba(7, 94, 59, 0.06);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 94, 59, 0.25) transparent;
}

.gh-sidebar::-webkit-scrollbar {
  width: 5px;
}
.gh-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.gh-sidebar::-webkit-scrollbar-thumb {
  background: rgba(7, 94, 59, 0.22);
  border-radius: 4px;
}
.gh-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(7, 94, 59, 0.45);
}

.gh-sidebar-brand {
  padding: 20px 18px 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gh-border);
}

.gh-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(7, 94, 59, 0.35));
}

.gh-brand-text {
  display: flex;
  flex-direction: column;
}

.gh-brand-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gh-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.gh-brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--gh-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Sidebar Navigation Items */
.gh-sidebar-nav {
  padding: 14px 12px 36px 12px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gh-nav-section-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gh-muted);
  font-weight: 700;
  padding: 10px 12px 4px 12px;
  margin-top: 6px;
}

.gh-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  color: var(--gh-text);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--gh-radius-control);
  text-decoration: none;
  transition: all 0.18s ease;
  position: relative;
}

.gh-nav-link i {
  font-size: 17px;
  line-height: 1.35;
  margin-top: 1.5px;
  flex-shrink: 0;
  color: var(--gh-emerald);
  transition: transform 0.15s ease;
}

.gh-nav-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.gh-nav-text .badge {
  vertical-align: middle;
  font-weight: 600;
  margin-top: -2px;
}

.gh-nav-link:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--gh-primary);
  box-shadow: 0 4px 12px rgba(7, 94, 59, 0.08);
  backdrop-filter: blur(8px);
}

.gh-nav-link:hover i {
  transform: scale(1.1);
}

.gh-nav-link.active {
  background: linear-gradient(135deg, #075e3b 0%, #0d7a4f 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(7, 94, 59, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.gh-nav-link.active i {
  color: #ffffff !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.gh-nav-link.active .badge.bg-light {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Main Content Area */
.gh-main {
  margin-left: calc(var(--gh-sidebar-width) + 32px);
  padding: 16px 24px 32px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Navbar */
.gh-topbar {
  position: relative;
  z-index: 1040;
  height: var(--gh-topbar-height);
  background: rgba(255, 255, 255, 0.82);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 253, 244, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.90);
  border-radius: var(--gh-radius-card);
  box-shadow: 
    0 0 0 1px rgba(7, 94, 59, 0.10),
    0 16px 40px rgba(7, 60, 38, 0.07),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.98),
    inset 0 -1px 2px rgba(7, 94, 59, 0.06);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin-bottom: 18px;
}

/* Glassmorphic Dropdown Menus */
.dropdown-menu {
  position: absolute;
  z-index: 1070 !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 14px !important;
  box-shadow: 
    0 0 0 1px rgba(7, 94, 59, 0.12),
    0 24px 52px rgba(7, 60, 38, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.98) !important;
  padding: 8px !important;
  margin-top: 8px !important;
  min-width: 260px;
}

.dropdown-menu .dropdown-item {
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gh-deep);
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus {
  background: rgba(7, 94, 59, 0.08) !important;
  color: var(--gh-primary) !important;
  transform: translateX(2px);
}

.dropdown-menu .dropdown-item.active, .dropdown-menu .dropdown-item:active {
  background: var(--gh-primary) !important;
  color: #ffffff !important;
}

.dropdown-menu .dropdown-header {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gh-primary);
  text-transform: uppercase;
  padding: 8px 12px 4px 12px;
}

.dropdown-menu .dropdown-divider {
  border-top-color: rgba(7, 94, 59, 0.12);
  margin: 6px 0;
}

/* Active Office Pill */
.gh-office-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(236, 253, 245, 0.85);
  border: 1px solid rgba(7, 94, 59, 0.2);
  border-radius: var(--gh-radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gh-primary);
  box-shadow: 0 2px 8px rgba(7, 94, 59, 0.06), inset 0 1px 1px #ffffff;
  backdrop-filter: blur(8px);
}

.gh-office-badge i {
  color: var(--gh-gold);
}

/* Search Box */
.gh-search-box {
  position: relative;
  width: 280px;
}

.gh-search-box input {
  padding-left: 36px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-pill);
  font-size: 13px;
  transition: all 0.2s ease;
}

.gh-search-box input:focus {
  background: #ffffff;
  border-color: var(--gh-emerald);
  box-shadow: 0 0 0 3px rgba(7, 94, 59, 0.15);
}

.gh-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gh-muted);
  font-size: 14px;
}

/* User Menu & Actions */
.gh-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gh-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gh-radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gh-border);
  color: var(--gh-text);
  text-decoration: none;
  position: relative;
  transition: all 0.15s ease;
}

.gh-icon-btn:hover {
  background: var(--gh-mint);
  color: var(--gh-primary);
  border-color: var(--gh-emerald);
}

.gh-badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--gh-danger);
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* Responsive Grid Gutters */
.gh-grid {
  display: grid;
  gap: 24px;
}

/* Footer */
.gh-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  color: var(--gh-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(7, 94, 59, 0.08);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .gh-sidebar {
    width: var(--gh-sidebar-compact);
  }
  .gh-sidebar .gh-brand-text,
  .gh-sidebar .gh-nav-section-title,
  .gh-sidebar .gh-nav-text {
    display: none;
  }
  .gh-sidebar .gh-nav-link {
    justify-content: center;
    padding: 12px;
  }
  .gh-main {
    margin-left: calc(var(--gh-sidebar-compact) + 32px);
  }
}

@media (max-width: 768px) {
  .gh-sidebar {
    transform: translateX(-120%);
    margin: 0;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  .gh-sidebar.show {
    transform: translateX(0);
  }
  .gh-main {
    margin-left: 0;
    padding: 12px;
  }
  .gh-search-box {
    display: none;
  }
}