/*
  Custom Design Theme – Floating Card with Warm Gradient
  Based on modern dashboard design (2026)
*/

/* ============================================================
   0. Links
   ============================================================ */
a {
  color: #a48b25;
}

a:hover,
a:focus {
  color: #6c5b16;
}

/* ============================================================
   1. Warm Gradient Background
   ============================================================ */
html {
  background: linear-gradient(135deg, #f5deb0 0%, #f5dbc0 45%, #ba8671 100%) !important;
  background-attachment: fixed !important;
  min-height: 100%;
}

body {
  background: transparent !important;
  position: relative;
  padding: 14px;
  box-sizing: border-box;
  min-height: 100vh;
  margin: 20px;
}

/* ============================================================
   2. Sidebar – Near Black with Rounded Corners
   ============================================================ */
.sidebar {
  background: #141414a1 !important;
  border-radius: 18px 18px 8px 18px !important;
  overflow: hidden !important;
  box-shadow: -2px 0 24px rgba(0, 0, 0, 0.35) !important;
  top: 0 !important;
  bottom: auto !important;
  left: 0 !important;
  min-height: 100% !important;
}

.sidebar li a {
  color: #e2e8f0 !important;
}

.sidebar li a i.menu-icon {
  opacity: 0.6;
}

.sidebar li.active > a {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
}

.sidebar li.active > a i.menu-icon {
  opacity: 1;
}

.sidebar .nav > li > a:hover,
.sidebar .nav > li > a:focus {
  background: rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
}

.sidebar li .nav-second-level {
  background: rgba(0, 0, 0, 0.3) !important;
}

#logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ============================================================
   3. Header – White with Rounded Top-Right Corner
   ============================================================ */
#header {
  background: #ffffff !important;
  border-bottom: 1px solid #f0f0f0 !important;
  border-radius: 0 18px 0 0 !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06) !important;
}

/* ============================================================
   4. Main Wrapper – Semi-transparent with Rounded Bottom-Right Corner
   ============================================================ */
#wrapper {
  background: #f5f6f86b !important;
  border-radius: 0 0 18px 0 !important;
  box-shadow: 4px 4px 20px rgba(80, 35, 10, 0.12) !important;
  min-height: calc(100vh - 28px - 63px) !important;
  margin-right: 0 !important;
}

/* ============================================================
   5. Overrides for Sidebar-Hidden State
   ============================================================ */
body.hide-sidebar:not(.show-sidebar) #header,
body.page-small #header {
  margin-left: 0 !important;
  border-radius: 18px 18px 0 0 !important;
}

body.hide-sidebar:not(.show-sidebar) #wrapper,
body.page-small #wrapper {
  margin-left: 0 !important;
  border-radius: 0 0 18px 18px !important;
}

body.hide-sidebar:not(.show-sidebar) .sidebar,
body.page-small .sidebar {
  box-shadow: none !important;
}

/* ============================================================
   6. Cards / Panels – Slightly refined
   ============================================================ */
.panel {
  border-radius: 10px !important;
  border-color: #e8eaed !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06) !important;
}

.panel-heading {
  border-radius: 10px 10px 0 0 !important;
}

/* ============================================================
   7. Mobile – Reset Rounded Corners
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
  }
  .sidebar {
    border-radius: 0 !important;
    box-shadow: none !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }
  #header {
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  #wrapper {
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
  }
}
