@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f4f6f9;
}

/* ===========================
   Logo Login
=========================== */

.logo-login {
  width: 120px;

  display: block;

  margin: 15px auto 15px auto;

  object-fit: contain;
}
/* =====================================
SIDEBAR
===================================== */

.sidebar {
  width: 260px;

  height: 100vh;

  position: fixed;

  left: 0;

  top: 0;

  background: linear-gradient(180deg, #5d4037, #3e2723);

  overflow-y: auto;

  z-index: 1000;

  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
}

.logo {
  text-align: center;

  padding: 25px 15px;
}

.logo img {
  width: 85px;

  margin-bottom: 10px;
}

.logo h4 {
  color: #ffd54f;

  font-weight: 700;

  margin-bottom: 5px;
}

.logo small {
  color: #ddd;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;

  color: #eeeeee;
  text-decoration: none;

  width: 100%;
  padding: 15px 25px;

  transition: 0.3s;

  font-size: 15px;
  border-radius: 0;
}

.sidebar .nav-link i {
  width: 28px;
}

.sidebar .nav-link:hover {
  background: #8d6e63;

  color: #ffd54f;

  padding-left: 35px;
}

.sidebar .nav-link.active {
  background: #ffd54f;
  color: #3e2723 !important;
  font-weight: 600;
}

.sidebar .nav-link.active i {
  color: #3e2723 !important;
}

/* =====================================
CONTENT
===================================== */

.content {
  margin-left: 260px;

  padding: 30px;
}

/* =====================================
NAVBAR
===================================== */

.navbar {
  background: white;

  border-radius: 15px;

  padding: 15px 20px;

  margin-bottom: 25px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.navbar h4 {
  font-weight: 700;
}

.navbar img {
  border-radius: 50%;

  border: 3px solid #ffd54f;
}

/* =====================================
CARD
===================================== */

.card {
  border: none;

  border-radius: 18px;
}

.dashboard-card {
  transition: 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.dashboard-card h2 {
  font-size: 34px;

  font-weight: 700;
}

.dashboard-card small {
  color: #777;
}

.dashboard-card i {
  opacity: 0.9;
}

/* =====================================
TABLE
===================================== */

.table {
  margin-bottom: 0;
}

.table thead {
  background: #5d4037;

  color: white;
}

.table td {
  vertical-align: middle;
}

/* =====================================
BUTTON
===================================== */

.btn-primary {
  background: #5d4037;

  border: none;
}

.btn-primary:hover {
  background: #3e2723;
}

.btn-warning {
  color: #3e2723;
}

/* =====================================
FOOTER
===================================== */

.footer {
  margin-top: 50px;

  padding: 20px;

  text-align: center;

  color: #777;

  font-size: 14px;

  border-top: 1px solid #ddd;
}

.footer strong {
  color: #5d4037;
}

/* =====================================
SCROLLBAR
===================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #8d6e63;

  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5d4037;
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 991px) {
  .sidebar {
    left: -260px;

    transition: 0.3s;
  }

  .sidebar.active {
    left: 0;
  }

  .content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .dashboard-card {
    margin-bottom: 20px;
  }

  .dashboard-card h2 {
    font-size: 28px;
  }

  .navbar {
    padding: 12px;
  }
}

/* =====================================
PAGE TITLE
===================================== */

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #3e2723;
  margin-bottom: 20px;
}

/* =====================================
TABLE RESPONSIVE
===================================== */

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

/* =====================================
BADGE RANKING
===================================== */

.badge-ranking {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 20px;
}

/* =====================================
ALERT
===================================== */

.alert {
  border-radius: 12px;
}

/* =====================================
PRINT
===================================== */

@media print {
  .sidebar,
  .navbar,
  .btn,
  .footer {
    display: none !important;
  }

  .content {
    margin: 0;
    padding: 0;
  }

  body {
    background: white;
  }
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: auto;
}

.logo h3 {
  color: #ffc107;
  font-weight: 700;
}

.logo small {
  color: #ddd;
}
