/* custom.css - place in /assets/css/custom.css */

/* Fonts: Poppins already included in your index, keep using it */
:root{
  --brand: #1a472a;
  --brand-2: #2d6b46;
  --accent: #d4af37;
  --muted: #6c757d;
  --card-shadow: 0 10px 30px rgba(15, 23, 15, 0.08);
  --glass: rgba(255,255,255,0.75);
  --radius: 12px;
}

/* Body baseline */
body{
  background: linear-gradient(180deg, #f6fbf7 0%, #eef7ef 100%);
  font-family: 'Poppins', sans-serif;
  color: #223;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Navbar */
.navbar-brand{ font-weight:700; letter-spacing:0.4px; color:var(--brand) !important; font-family:'Playfair Display', serif;}
.navbar { box-shadow: 0 6px 18px rgba(20,30,15,0.04); border-bottom:1px solid rgba(0,0,0,0.03); }
.navbar .nav-link { color:#334 !important; font-weight:500 }
.navbar .btn-ghost { border:1px solid rgba(0,0,0,0.06); background:transparent; color:var(--brand); }

/* Animasi garis bawah untuk nav-link */
.nav-link {
  position: relative;
  padding-bottom: 0.5rem !important; /* Memberi ruang untuk garis bawah */
  color: #212529 !important; /* Pastikan warna teks sesuai */
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand); /* Gunakan variabel warna yang sudah Anda definisikan */
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Untuk halaman aktif, pertahankan garis bawah */
.nav-link.active::after {
  width: 100%;
}

/* Khusus untuk link dengan badge */
.nav-link.d-flex.align-items-center::after {
  bottom: 0.5rem; /* Sesuaikan posisi untuk link dengan badge */
}

/* Efek tambahan: perubahan warna teks saat hover */
.nav-link:hover {
  color: var(--primary) !important;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* Dashboard stat cards */
.stat-card { padding:20px; border-radius: 14px; }
.stat-card .k { font-size:24px; font-weight:700; color:#fff;}
.stat-card small{ color: rgba(255,255,255,0.92); }

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg,var(--brand),var(--brand-2));
  border: none;
  box-shadow: 0 8px 20px rgba(28,72,36,0.12);
  border-radius:10px;
  padding:10px 18px;
}
.btn-outline-secondary {
  border-radius:10px;
}

/* Forms */
.form-control {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 12px 14px;
  box-shadow: none;
}
.form-control:focus{
  box-shadow: 0 6px 18px rgba(26,93,38,0.06);
  border-color: var(--brand-2);
  outline: none;
}

/* Tables */
.table thead th { background: transparent; color: #111; font-weight:600; border-bottom: 2px solid rgba(0,0,0,0.06); }
.table tbody tr:hover { background: rgba(26,93,38,0.03); }

/* Badges */
.badge-admin { background: linear-gradient(90deg,#2ebd6f,#1ea36a); color:#fff; border-radius:8px; padding:6px 8px; font-weight:600; }
.badge-user { background: #f0f0f0; color:#555; border-radius:8px; padding:6px 8px; }

/* Referral input box */
.ref-box {
  display:flex;
  gap:8px;
  align-items:center;
}
.ref-box input { border-radius:8px 0 0 8px; }
.ref-box button { border-radius:0 8px 8px 0; }

/* Toast */
.toast-custom {
  background: rgba(18,40,24,0.95);
  color: #fff;
  border-radius:10px;
  padding:12px 16px;
  box-shadow: 0 8px 30px rgba(10,20,10,0.25);
}

/* Footer */
.site-footer {
  background: #0f2b16;
  color: #d7e7da;
  padding:40px 0;
  margin-top:60px;
}
.site-footer a { color: var(--accent); text-decoration:none; }
.site-footer small { color: #bfcfc0; }

/* Utilities */
.card-compact { padding:16px; border-radius:12px; }
.muted { color:var(--muted); }

/* Responsive tweaks */
@media (max-width:768px){
  .nav-links { display:none; }
}

/* ===== WEB3 WALLET STYLES - MINIMAL ===== */
#ltk-wallet-container {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hanya styling dasar, tidak ada kontrol display */
#wallet-info {
    background: #f8f9fa;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 6px 10px;
    align-items: center;
}

#wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    color: #495057;
    font-weight: 600;
    margin: 0 8px;
}

.wallet-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #ltk-wallet-container {
        margin-top: 8px;
        min-height: 36px;
    }
    
    .wallet-alert {
        left: 10px;
        right: 10px;
        min-width: auto;
        top: 70px;
    }
}