/* Jimber Psono Custom Branding
 * Based on Jimber SASE Platform design
 */

/* ===== CSS Variables ===== */
:root {
    --jimber-primary: #00b8a9;
    --jimber-primary-dark: #009688;
    --jimber-primary-light: #4dd0c4;
    --jimber-sidebar-bg: #ffffff;
    --jimber-sidebar-text: #333333;
    --jimber-sidebar-active: #e8f7f6;
    --jimber-header-bg: #ffffff;
    --jimber-body-bg: #f5f7f9;
    --jimber-card-bg: #ffffff;
    --jimber-text-primary: #333333;
    --jimber-text-secondary: #666666;
    --jimber-border: #e0e0e0;
    --jimber-success: #4caf50;
    --jimber-error: #f44336;
  }
  
  /* ===== Global Styles ===== */
  body {
    background-color: var(--jimber-body-bg) !important;
  }
  
  /* ===== App Bar / Header Layout ===== */
  .MuiAppBar-root {
    background-color: var(--jimber-header-bg) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }
  
  .MuiAppBar-root .MuiContainer-root {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 16px !important;
  }
  
  /* Header toolbar - logo left, user right */
  .MuiAppBar-root .MuiToolbar-root {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-left: 0 !important;
  }
  
  /* Logo container - fixed to left */
  .MuiAppBar-root .MuiToolbar-root > a[href="index.html"] {
    padding: 8px 16px !important;
    margin-right: auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .MuiAppBar-root .MuiToolbar-root > a[href="index.html"] img {
    height: 32px !important;
    width: auto !important;
  }
  
  /* User info container - fixed to right */
  .MuiAppBar-root .MuiToolbar-root > div[style*="width: 100%"] {
    width: auto !important;
    flex: none !important;
    margin-left: auto !important;
  }
  
  .MuiAppBar-root .MuiToolbar-root > div[style*="width: 100%"] > div[style*="float: right"] {
    float: none !important;
  }
  
  /* jss35 - user info section */
  .jss35 {
    display: flex !important;
    align-items: center !important;
    margin-right: 0 !important;
  }
  
  /* jss34 - toolbar layout override */
  .jss34 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  .MuiAppBar-root .MuiTypography-root {
    color: var(--jimber-text-primary) !important;
  }
  
  .MuiAppBar-root .MuiIconButton-root {
    color: var(--jimber-text-primary) !important;
  }
  
  /* ===== Sidebar / Drawer ===== */
  .MuiDrawer-paper {
    background-color: var(--jimber-sidebar-bg) !important;
    border-right: 1px solid var(--jimber-border) !important;
  }
  
  .MuiDrawer-paper .MuiListItem-root {
    color: var(--jimber-sidebar-text) !important;
  }
  
  .MuiDrawer-paper .MuiListItem-root:hover {
    background-color: var(--jimber-sidebar-active) !important;
  }
  
  .MuiDrawer-paper .MuiListItem-root.Mui-selected {
    background-color: var(--jimber-sidebar-active) !important;
    border-left: 3px solid var(--jimber-primary) !important;
  }
  
  .MuiDrawer-paper .MuiListItem-root.Mui-selected .MuiListItemIcon-root {
    color: var(--jimber-primary) !important;
  }
  
  .MuiDrawer-paper .MuiListItemIcon-root {
    color: var(--jimber-text-secondary) !important;
  }
  
  .MuiDrawer-paper .MuiListItemText-primary {
    color: var(--jimber-sidebar-text) !important;
  }
  
  /* ===== Buttons ===== */
  .MuiButton-containedPrimary {
    background-color: var(--jimber-primary) !important;
    color: #ffffff !important;
  }
  
  .MuiButton-containedPrimary:hover {
    background-color: var(--jimber-primary-dark) !important;
  }
  
  .MuiButton-outlinedPrimary {
    border-color: var(--jimber-primary) !important;
    color: var(--jimber-primary) !important;
  }
  
  .MuiButton-outlinedPrimary:hover {
    background-color: rgba(0, 184, 169, 0.08) !important;
  }
  
  .MuiButton-textPrimary {
    color: var(--jimber-primary) !important;
  }
  
  /* ===== Cards ===== */
  .MuiCard-root,
  .MuiPaper-root {
    background-color: var(--jimber-card-bg) !important;
    border-radius: 8px !important;
  }
  
  /* ===== Form Elements ===== */
  .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
    border-color: var(--jimber-primary) !important;
  }
  
  .MuiInputLabel-root.Mui-focused {
    color: var(--jimber-primary) !important;
  }
  
  .MuiCheckbox-root.Mui-checked {
    color: var(--jimber-primary) !important;
  }
  
  .MuiRadio-root.Mui-checked {
    color: var(--jimber-primary) !important;
  }
  
  .MuiSwitch-switchBase.Mui-checked {
    color: var(--jimber-primary) !important;
  }
  
  .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track {
    background-color: var(--jimber-primary-light) !important;
  }
  
  /* ===== Links ===== */
  a {
    color: var(--jimber-primary) !important;
  }
  
  a:hover {
    color: var(--jimber-primary-dark) !important;
  }
  
  /* ===== Tabs ===== */
  .MuiTab-root.Mui-selected {
    color: var(--jimber-primary) !important;
  }
  
  .MuiTabs-indicator {
    background-color: var(--jimber-primary) !important;
  }
  
  /* ===== Progress / Loading ===== */
  .MuiCircularProgress-root {
    color: var(--jimber-primary) !important;
  }
  
  .MuiLinearProgress-root {
    background-color: var(--jimber-primary-light) !important;
  }
  
  .MuiLinearProgress-bar {
    background-color: var(--jimber-primary) !important;
  }
  
  /* ===== Chips ===== */
  .MuiChip-colorPrimary {
    background-color: var(--jimber-primary) !important;
  }
  
  /* ===== FAB ===== */
  .MuiFab-primary {
    background-color: var(--jimber-primary) !important;
  }
  
  .MuiFab-primary:hover {
    background-color: var(--jimber-primary-dark) !important;
  }
  
  /* ===== Selection ===== */
  ::selection {
    background-color: var(--jimber-primary-light);
    color: #ffffff;
  }
  
  /* ===== Scrollbar ===== */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--jimber-body-bg);
  }
  
  ::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
  }