/*
 *  Stisla v2.3.0 - Bootstrap 4 Admin Template
 *  Refined for Dragon Topup
 */

:root {
  --primary: #6777ef;
  --secondary: #cdd3d8;
  --success: #47c363;
  --info: #3abaf4;
  --warning: #ffa426;
  --danger: #fc544b;
  --dark: #191d21;
  --light: #e3eaef;
}

/* ========== BASE ========== */
body {
  background-color: #f4f6f9;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #34395e;
  overflow-x: hidden;
  position: relative;
}

a { color: #6777ef; transition: all .4s; }
a:hover { color: #394eea; text-decoration: none; }

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
  position: relative;
  min-height: 100vh;
}

/* ========== NAVBAR ========== */
.navbar {
  height: 70px;
  background-color: #6777ef;
  left: 250px;
  right: 0;
  position: fixed;
  top: 0;
  z-index: 890;
  padding: 0 30px;
  display: flex !important;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  transition: all .5s;
}

.navbar .navbar-nav {
  flex-direction: row;
  align-items: center;
}

.navbar .nav-link { 
  color: #fff !important; 
  padding: 0 15px; 
  font-weight: 600; 
  font-size: 14px;
  display: flex;
  align-items: center;
}

.navbar .nav-link i { font-size: 18px; }
.navbar .nav-link-user img { width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; }

.navbar .form-inline { 
  display: flex; 
  align-items: center; 
  flex: 1; 
}

.navbar .form-inline .search-element { position: relative; width: 100%; max-width: 300px; }
.navbar .form-inline .form-control {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  border-radius: 30px;
  padding-left: 20px;
  width: 100%;
  height: 36px;
}
.navbar .form-inline .form-control::placeholder { color: rgba(255,255,255,.6); }
.navbar .form-inline .btn { position: absolute; right: 5px; top: 0; height: 100%; color: #fff; background: transparent; border: none; }

/* Mobile Navbar */
@media (max-width: 991.98px) {
  .navbar { left: 0; padding: 0 15px; }
  .navbar .form-inline .search-element { display: none; }
}

/* ========== SIDEBAR ========== */
.main-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  background-color: #fff;
  z-index: 1000; /* Higher than navbar */
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: all .5s;
}

.sidebar-brand {
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}
.sidebar-brand a { color: #6777ef; }
.sidebar-brand-sm { display: none; }

@media (max-width: 991.98px) {
  .sidebar-brand { display: none; }
  .sidebar-brand-sm {
    display: block;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
  }
  .sidebar-brand-sm a { color: #6777ef; }
}

.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu .menu-header {
  padding: 10px 20px;
  color: #98a6ad;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 700;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #6b7c93;
  font-weight: 600;
  transition: all .3s;
  position: relative;
}
.sidebar-menu li a i { width: 28px; font-size: 16px; margin-right: 10px; text-align: center; color: #a4b0be; }
.sidebar-menu li.active a i { color: #6777ef; }
.sidebar-menu li a:before {
  content: '';
  position: absolute;
  left: 0; top: 0; height: 100%; width: 4px;
  background-color: #6777ef;
  display: none;
}
.sidebar-menu li.active > a:before { display: block; }

.sidebar-menu li .dropdown-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f9f9f9;
}
.sidebar-menu li.active > .dropdown-menu {
  display: block;
}
.sidebar-menu li .dropdown-menu li a {
  padding-left: 50px;
  font-size: 13px;
  font-weight: 500;
}
.sidebar-menu li .dropdown-menu li.active a {
  color: #6777ef;
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {
  .main-sidebar { left: -250px; }
  body.sidebar-show .main-sidebar { left: 0; }
}

/* ========== MAIN CONTENT ========== */
.main-content {
  padding-left: 280px;
  padding-right: 30px;
  padding-top: 100px; /* Navbar height + gap */
  padding-bottom: 80px;
  width: 100%;
  min-height: 100vh;
  transition: all .5s;
}

@media (max-width: 991.98px) {
  .main-content { padding-left: 20px; padding-right: 20px; }
}

.section { position: relative; }
.section .section-header {
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 3px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section .section-header h1 { margin: 0; font-size: 24px; font-weight: 700; color: #34395e; }

/* ========== CARDS ========== */
.card {
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,.03);
  background-color: #fff;
  margin-bottom: 30px;
}
.card .card-header {
  border-bottom: 1px solid #f9f9f9;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}
.card .card-header h4 { font-size: 16px; font-weight: 700; color: #6777ef; margin: 0; }
.card .card-body { padding: 20px 25px; }

/* Stat Card */
.card-statistic-1 { display: flex; align-items: center; overflow: hidden; }
.card-statistic-1 .card-icon {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.card-statistic-1 .card-wrap { padding: 15px 20px; }
.card-statistic-1 .card-header { padding: 0; border: none; }
.card-statistic-1 .card-header h4 { font-size: 13px; color: #98a6ad; text-transform: uppercase; letter-spacing: 1px; }
.card-statistic-1 .card-body { padding: 0; font-size: 26px; font-weight: 700; color: #34395e; }

/* ========== FOOTER ========== */
.main-footer {
  padding: 20px 30px;
  padding-left: 280px;
  border-top: 1px solid #e4e6fc;
  background-color: #fff;
  color: #98a6ad;
  font-size: 13px;
  transition: all .5s;
}
@media (max-width: 991.98px) {
  .main-footer { padding-left: 30px; }
}

/* ========== OVERLAY & TOGGLE ========== */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,.3);
  z-index: 875;
}
body.sidebar-show .sidebar-overlay { display: block; }

/* Utilities */
.bg-primary { background-color: #6777ef !important; }
.bg-danger { background-color: #fc544b !important; }
.bg-warning { background-color: #ffa426 !important; }
.bg-success { background-color: #47c363 !important; }
.text-primary { color: #6777ef !important; }
