/* =============================================
   MIKBOTAM CSS - Starlight Admin Theme Style
   Matching the original PHP Mikbotam.min.css
   ============================================= */

:root {
  --primary: #008080;
  --primary-dark: #006666;
}

* { box-sizing: border-box; }

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #343a40;
  background: #e9ecef;
  margin: 0;
  padding: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* === LOGO === */
.sl-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 1060;
}

/* === SIDEBAR === */
.sl-sideleft {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 230px;
  background: #1b2e4b;
  overflow-y: auto;
  z-index: 1050;
  transition: all 0.2s;
}

.sl-sideleft-menu { padding: 10px 0; }

.sl-menu-link {
  display: block;
  color: rgba(255,255,255,0.6);
  padding: 0;
  text-decoration: none;
  transition: all 0.2s;
}

.sl-menu-link:hover,
.sl-menu-link.active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.sl-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

.menu-item-icon {
  width: 30px;
  font-size: 18px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

.menu-item-label {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 400;
}

.menu-item-arrow {
  position: absolute;
  right: 20px;
  font-size: 14px;
  transition: transform 0.2s;
}

.sl-menu-link.show-sub .menu-item-arrow {
  transform: rotate(180deg);
}

.sl-menu-sub {
  display: none;
  padding: 5px 0;
  background: rgba(0,0,0,0.15);
}

.sl-menu-link.show-sub + .sl-menu-sub {
  display: block;
}

.sl-menu-sub .nav-link {
  padding: 8px 20px 8px 55px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  transition: all 0.2s;
}

.sl-menu-sub .nav-link:hover,
.sl-menu-sub .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.sl-menu-sub .nav-link i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* === HEADER === */
.sl-header {
  position: fixed;
  top: 0;
  left: 230px;
  right: 0;
  height: 60px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1040;
}

.sl-header-left { display: flex; align-items: center; }
.sl-header-left a { color: #fff; font-size: 20px; }

.sl-header-right { display: flex; align-items: center; }

.nav-link-profile {
  display: flex;
  align-items: center;
  color: #fff !important;
  padding: 5px 10px;
}

.logged-name {
  margin-right: 10px;
  font-size: 14px;
  color: #fff;
}

.wd-32 { width: 32px; height: 32px; }
.rounded-circle { border-radius: 50%; }

.dropdown-menu-header {
  padding: 10px 0;
  min-width: 200px;
}

.user-profile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-profile-nav li a {
  display: block;
  padding: 8px 20px;
  color: #343a40;
  font-size: 13px;
}

.user-profile-nav li a:hover {
  background: #f0f0f0;
}

/* === MAIN PANEL === */
.sl-mainpanel {
  margin-left: 230px;
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.sl-pagebody {
  padding: 20px;
}

/* === CARDS === */
.card {
  border-radius: 3px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card.boxed {
  border: 1px solid #e0e0e0;
}

.card-header {
  padding: 12px 15px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-body { padding: 15px; }
.card-footer { padding: 10px 15px; border-top: 1px solid rgba(0,0,0,0.05); }

.bd-primary { border: 1px solid var(--primary); }
.bd { border: 1px solid #dee2e6; }

.bg-primary { background-color: var(--primary) !important; }
.bg-danger { background-color: #dc3545 !important; }

.tx-white { color: #fff !important; }
.tx-primary { color: var(--primary) !important; }
.tx-gray-500 { color: #868e96 !important; }
.tx-inverse { color: #343a40 !important; }
.tx-center { text-align: center; }
.tx-bold { font-weight: 700; }
.tx-15 { font-size: 15px; }
.tx-20 { font-size: 20px; }
.tx-22 { font-size: 22px; }
.tx-16 { font-size: 16px; }
.tx-14 { font-size: 14px; }
.tx-uppercase { text-transform: uppercase; }

/* === SPACING === */
.mg-b-0 { margin-bottom: 0 !important; }
.mg-t-2 { margin-top: 2px; }
.mg-t-8 { margin-top: 8px; }
.mg-t-10 { margin-top: 10px; }
.mg-t-15 { margin-top: 15px; }
.mg-t-20 { margin-top: 20px; }
.mg-l-10 { margin-left: 10px; }
.mg-l-15 { margin-left: 15px; }
.mg-r-2 { margin-right: 2px; }
.pd-8 { padding: 8px; }
.pd-15 { padding: 15px; }
.pd-20 { padding: 20px; }
.pd-25 { padding: 25px; }
.pd-sm-8 { padding: 8px; }
.pd-sm-10 { padding: 10px; }
.pd-sm-15 { padding: 15px; }
.pd-sm-20 { padding: 20px; }

/* === BADGES === */
.badge { font-size: 11px; padding: 4px 8px; }

/* === FORMS === */
.form-control-label {
  font-weight: 600;
  font-size: 13px;
  padding-top: 8px;
}

/* === BUTTONS === */
.btn-success {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-success:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* === TABLE === */
.table-wrapper { overflow-x: auto; }

table.dataTable {
  font-size: 13px;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .sl-logo { width: 60px; font-size: 0; }
  .sl-logo::after { content: 'M'; font-size: 24px; }
  .sl-sideleft { left: -230px; }
  .sl-header { left: 60px; }
  .sl-mainpanel { margin-left: 0; }

  body.show-left .sl-sideleft { left: 0; }
  body.show-left .sl-header { left: 230px; }
  body.show-left .sl-mainpanel { margin-left: 230px; }

  .hidden-md-down { display: none !important; }
}

@media (min-width: 992px) {
  .hidden-lg-up { display: none !important; }
}

/* === SCROLLBAR === */
.sl-sideleft::-webkit-scrollbar { width: 4px; }
.sl-sideleft::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* === MISC === */
hr { border-color: #dee2e6; margin: 8px 0; }
.signin-logo { text-align: center; }
.wd-200 { width: 200px; }
.wd-100p { width: 100%; }
.ht-100v { height: 100vh; }
code { color: var(--primary); }
.mg-t--1 { margin-top: -1px; }
.mg-t-10-force { margin-top: 10px !important; }
