/* =========================================================================
   ZAK PMS — ULTRA LUXURY EDITION
   • Glass Sidebar
   • Gold Active States
   • Motion Animation
   • Icon Menu Support
   • Perfect Mobile Behavior
   • Zero Conflicts
========================================================================= */

/* GLOBAL RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui;
}

body {
  background: #ddd;
  color: #ddd;
}

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}

/* MAIN AREA */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 260px; /* 🔥 zoom-safe */
  transition: padding-left .25s ease;
  min-width: 0; /* prevents overflow on zoom */
}
/* ==========================================================
   SIDEBAR — ULTRA GLASS GOLD
========================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  padding: 22px 18px;

  background: #111;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 40px rgba(0,0,0,0.35);

  display: flex;
  flex-direction: column;
  gap: 26px;

  overflow-y: auto;
  z-index: 9999;

  transform: translateZ(0);
  transition: transform .28s ease;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}

/* ==========================================================
   SIDEBAR HEADER LOGO
========================================================== */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b1976b, #8e7448);
  color: #111;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(177,151,107,0.45);
  transition: .25s ease;
}

.sidebar-logo:hover .logo-circle {
  transform: scale(1.12);
  box-shadow: 0 10px 34px rgba(177,151,107,0.7);
}

.logo-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
}

.logo-sub {
  font-size: 11px;
  color: #aaa;
}

/* ==========================================================
   MENU WITH ICONS + GOLD ACTIVE
========================================================== */

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu li {}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 10px;

  text-decoration: none;
  color: #e4e4e4;
  font-size: 15px;

  transition: .25s ease;
}

/* ICON STYLE */
.sidebar-menu a svg,
.sidebar-menu a i {
  width: 18px;
  height: 18px;
  opacity: .75;
  stroke-width: 2;
}

/* HOVER */
.sidebar-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: white;
  transform: translateX(5px);
}

/* ACTIVE STATE */
.sidebar-menu a.active {
  background: linear-gradient(135deg,#b1976b,#8e7448);
  color: #111 !important;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(177,151,107,0.4);
  transform: translateX(4px);
}

/* ==========================================================
   CONTENT AREA
========================================================== */
.content {
  width: 100%;
  max-width: 1600px; /* safer for laptops */
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 28px);
}
/* Content fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   CARDS — LUX GOLD SHADOW
========================================================== */
.card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;

  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
  margin-bottom: 24px;

  color: #fff;
}

/* ==========================================================
   TABLES — MODERN LUX
========================================================== */
.table,
.table-modern {
  width: 100%;
  border-collapse: collapse;
  color: #111;                 /* 🔥 force black text */
  background: #fff;
  font-size: 13px;
}

/* HEADERS */
.table th,
.table-modern th {
  background: #fafafa;         /* light neutral */
  padding: 12px 14px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #111;                 /* 🔥 black text */
  border-bottom: 1px solid #e5e5e5;
}

/* CELLS */
.table td,
.table-modern td {
  padding: 12px 14px;
  color: #111;                 /* 🔥 black text */
  border-bottom: 1px solid #ededed;
}

/* ROW HOVER */
.table tbody tr:hover {
  background: #f7f7f7;         /* subtle clean hover */
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table,
.table-modern {
  min-width: 720px; /* keeps columns readable */
}
/* ==========================================================
   FOOTER
========================================================== */
.footer {
  margin-top: auto;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 1850px;
  margin: 0 auto;
  padding: 16px 26px;
  font-size: 13px;
  color: #ccc;
}

/* ==========================================================
   MOBILE BEHAVIOR
========================================================== */
@media (max-width: 900px) {

  /* Sidebar hidden by default */
  .sidebar {
    transform: translateX(-270px);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .content {
    padding: 18px;
  }
}
