/* ========== SYEMFIT Base Layout (clean-base.css) - ZIMA/CASA Aesthetic ========== */
/* 
   Refactored for ZimaOS Glassmorphism.
   Layout logic primarily handled in theme.css now. 
   This file provides minimal reset and structural fallbacks.
*/

:root {
  /* Minimal fallbacks */
  --bg: #000;
  --text: #fff;
  --radius: 4px;
}

/* Base Body/HTML setup */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  /* Font/Bg handled by theme.css */
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  display: flex;
}

/* ---------- Sidebar (Defined as fixed in theme.css overrides) ---------- */
.sidebar {
  /* Dimensions match theme.css padding-left on body */
  width: 280px;
  position: fixed;
  /* Explicit Fixed */
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 999;

  /* Flex layout for internal items */
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 8px;

  /* Scroll handling hidden by theme.css, but ensured here */
  overflow-y: auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 12px;
}

/* Navigation Container */
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  /* Push footer down */
}

/* Footer fixed at bottom of flex container */
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- Content Area ---------- */
.content {
  flex: 1;
  min-width: 0;
  padding: 32px;
  /* No margin-left needed because body has padding-left in theme.css */
}

.content .container {
  max-width: 1600px;
  /* Wide layout */
  margin: 0 auto;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  body {
    padding-left: 80px;
  }

  /* Slim sidebar */
  .sidebar {
    width: 80px;
    padding: 16px 8px;
  }

  .brand-logo {
    margin: 0 auto;
  }

  .brand-name,
  .nav-section,
  .sidebar-footer .user {
    display: none;
  }

  .nav a {
    justify-content: center;
    padding: 12px;
  }
}

@media (max-width: 600px) {

  /* Mobile: Bottom Nav or Hidden Sidebar (Zima style usually keeps icons) */
  body {
    padding-left: 0;
    padding-bottom: 80px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    bottom: 0;
    top: auto;
    flex-direction: row;
    justify-content: space-around;
    padding: 12px;
    background: rgba(20, 20, 20, 0.95);
    /* Opaque on mobile */
    backdrop-filter: blur(20px);
  }

  .nav {
    flex-direction: row;
    gap: 0;
  }

  .nav a {
    padding: 8px;
  }

  .brand,
  .sidebar-footer {
    display: none;
  }
}