/* 🌴 Global */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

/* 🌸 Navbar */
.navbar {
  background-color: #F06292;
  color: white;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo {
  width: 36px;
  height: 36px;
}

.navbar h1 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.navbar-menu a:hover {
  text-decoration: underline;
}

/* 🌿 Layout */
.container {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  background: linear-gradient(180deg, #43A047, #66BB6A);
  width: 220px;
  padding: 24px 16px;
  color: white;
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
  transition: all 0.2s ease-in-out;
}


/* Content */
.content {
  flex: 1;
  padding: 40px;
}

/* Cards */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.chart-section {
  margin-top: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 24px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-header h3 {
  margin: 0;
  color: #333;
}

.chart-header select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}


.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 24px;
  flex: 1;
  min-width: 220px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card h4 {
  color: #777;
  margin: 0 0 10px;
}

.value {
  font-size: 24px;
  font-weight: bold;
}

.value.green {
  color: #43A047;
}

.value.pink {
  color: #F06292;
}

.value.yellow {
  color: #FBC02D;
}

/* Footer */
.footer {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  background: #fff;
  border-top: 1px solid #ddd;
  color: #555;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-size: 14px;
  opacity: 0.9;
}

.logout-btn {
  background: white;
  color: #F06292;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.logout-btn:hover {
  background: #ffd1e0;
  color: #C2185B;
}


/* style buat login yaa*/

/* 🌴 Login Page */
.login-body {
  background: linear-gradient(135deg, #F06292, #43A047);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

.login-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 360px;
  text-align: center;
}

.login-box h2 {
  color: #333;
  margin-bottom: 25px;
}

.login-box label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  color: #333;
  font-size: 14px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn-login {
  background-color: #43A047;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  width: 100%;
}

.btn-login:hover {
  background-color: #2e7d32;
}

.error-msg {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
}

/*end*/

/*animasi sederhana hero-header*/
.hero-header {
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/*FILTER DASHBOAR*/

.filter-bar {
    background: #b2f3c2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-form label {
  font-weight: 600;
}

.filter-form select,
.filter-form input[type="date"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-green {
  background: #4caf50;
  color: white;
  padding: 7px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-green:hover {
  background: #43a047;
}

.btn-pink {
  background: #ec407a;
  color: white;
  padding: 7px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-pink:hover {
  background: #d81b60;
}


.btn-green {
    background: #22c55e;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-green:hover {
    background: #16a34a;
}

.btn-blue {
    background: #3b82f6;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-blue:hover {
    background: #2563eb;
}

.btn-purple {
    background: #8b5cf6;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-purple:hover {
    background: #7c3aed;
}

.finance-container {
  padding: 20px;
  background: #f9fafb;
  border-radius: 10px;
}

.header-section h2 {
  font-weight: 700;
  color: #333;
}

.header-section .total span {
  color: #2E7D32;
  font-weight: 600;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  flex-wrap: wrap;
}

.filter-form label {
  margin-right: 5px;
  font-weight: 600;
}

.filter-form input {
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 8px;
}

.btn-green {
  background-color: #43A047;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;

  /* TAMBAHAN WAJIB BRO */
  display: inline-block;
  text-decoration: none !important;
}


.btn-pink {
  background-color: #ec407a;
  color: white;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-pink:hover {
  background-color: #d81b60;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.income-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.income-table thead {
  background: linear-gradient(to right, #66BB6A, #43A047);
  color: #fff;
}

.income-table th, .income-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}

.income-table tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

.text-green {
  color: #2E7D32;
  font-weight: 600;
}

.no-data {
  text-align: center;
  padding: 20px;
  color: #999;
}

.quick-filter-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.btn-mode {
    padding: 8px 18px;
    border-radius: 6px;
    background: #e8e8e8;
    color: #333;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: 0.25s;
}

.btn-mode:hover {
    background: #d2d2d2;
}

/* tombol HBT aktif */
.btn-mode.active {
    background: #4CAF50;
    color: white;
}


.summary-table {
    width: 100%;
    margin-top: 10px;
    background: #ffffff;
    border-collapse: collapse;
}

.summary-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.summary-table .outlet-name {
    font-weight: 700;
    background: #e6a3f3;
    white-space: nowrap;
}

.summary-table .outlet-total {
    font-weight: 600;
    color: #2E7D32;
    white-space: nowrap;
}

.sidebar-link {
    display: block;
    padding: 8px 20px;
    margin: 2px 0;
    color: #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.sidebar-link:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}

.sidebar-link.active {
    background-color: #ffffff;
    color: #16a34a; /* hijau rdi */
    font-weight: bold;
}

