/* Import Font dari Google Fonts (Opsional, untuk tampilan lebih baik) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Kustomisasi Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease-in-out;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #333;
}

/* Gaya dasar untuk link navigasi */
.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    margin: 0 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent; /* Garis bawah transparan sebagai dasar */
    transition: all 0.3s ease;
}

/* Efek saat kursor mouse di atas link */
.nav-link:hover {
    color: #007bff;
    border-bottom-color: #0d6efd; /* Warna biru muda */
}

/* Gaya untuk link yang sedang aktif */
.nav-link.active {
    color: #0d6efd; /* Warna biru primary Bootstrap */
    font-weight: 600;
    border-bottom-color: #0d6efd; /* Garis bawah tebal berwarna */
}

/* Menyesuaikan tombol logout */
.btn-outline-danger {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 500;
}

/* Penyesuaian untuk tampilan mobile (saat menu diciutkan) */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        text-align: left;
    }
    .nav-link {
        padding: 0.8rem 0;
        margin: 0;
    }
    .nav-link:hover, .nav-link.active {
        border-bottom-color: transparent; /* Hapus garis bawah di mobile */
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 5px;
    }
    .d-flex {
        margin-top: 1rem;
        flex-direction: column;
        align-items: left;
    }
    .navbar-text {
        margin-bottom: 0.5rem;
    }
}

.list-group-item .fw-bold {
    min-width: 150px;
    display: inline-block;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-grid .card {
    background-color: #fff;
    padding: 13px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.info-grid .card.warning {
    background-color: #fffbeb;
    border-color: #fbbF24;
    color: #b45309;
}

.info-grid .card.label {
    font-size: 10px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.info-grid .card .value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.info-grid .card .value.saldo {
    color: #059669; /* Hijau untuk saldo */
}

.apikey-section {
    margin-top: 30px;
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.apikey-section .label {
    font-weight: 500;
    color: #374151;
    margin: 0 0 10px 0;
}

.apikey-display {
    background-color: white;
    color: #000;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
    margin-bottom: 12px;
}

.copy-button, .submit-button, .cancel-button, .edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}

.copy-button:hover, .submit-button:hover, .cancel-button:hover, .edit-button:hover {
    transform: translateY(-1px);
}

.copy-button { background-color: #4b5563; color: white; }
.copy-button:hover { background-color: #374151; }
.copy-button svg { margin-right: 8px; }
/* CSS untuk feedback tombol saat berhasil disalin */
.copy-button.copied {
    background-color: #16a34a; /* Warna hijau tanda sukses */
    pointer-events: none; /* Mencegah klik berulang saat menampilkan status "Tersalin" */
}
