/* ==========================================================================
   COMMAND PAGE DESIGN (Matches Screenshot & Base Dark Theme)
   ========================================================================== */

.container-sm {
    max-width: 800px; /* Dipersempit agar fokus seperti pada screenshot */
}

.command-section {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, rgba(11, 20, 26, 1) 0%, rgba(17, 27, 33, 0.5) 100%);
    min-height: 85vh;
}

/* --- HEADER TITLE --- */
.command-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.command-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

/* --- SEARCH BAR --- */
.search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background-color: #202c33; /* Warna search bar gelap */
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-wrapper input:focus {
    outline: none;
    border-color: rgba(37, 211, 102, 0.5);
    background-color: #2a3942;
}

.search-wrapper input::placeholder {
    color: #8696a0;
    opacity: 0.8;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8696a0;
    font-size: 0.95rem;
    pointer-events: none;
}

/* --- COMMAND LIST & CARDS --- */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.command-card {
    background-color: #1f2c34; /* Card base color (Slightly lighter dark) */
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-card:hover {
    transform: translateY(-2px);
    background-color: #23323d;
}

/* Item row syntax styling */
.cmd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.cmd-item.flex-between {
    justify-content: space-between;
    align-items: center;
}

.cmd-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cmd-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    font-family: monospace, sans-serif;
}

/* Argumen/Parameter badge style */
.cmd-param {
    background-color: #37464f;
    color: #b1bcc2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.cmd-desc {
    color: #a4b4be;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 4px;
}

/* Divider untuk command yang menyatu dalam 1 card group */
.cmd-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 16px 0;
}

/* --- WRAPPER ALL BADGES SYSTEM --- */
.badge-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-premium, .badge-limit, .badge-nolimit, .badge-target {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- TARGET AUTHORIZATION COLORS --- */
.badge-user {
    color: #8696a0;
    background-color: rgba(134, 150, 160, 0.1);
}

.badge-admin {
    color: #3498db; /* Biru langit cerah */
    background-color: rgba(52, 152, 219, 0.12);
}

.badge-owner {
    color: #9b59b6; /* Ungu premium */
    background-color: rgba(155, 89, 182, 0.15);
}

/* --- STATUS SYSTEM COLORS --- */
.badge-premium {
    color: #ff9f43; /* Oranye emas */
    background-color: rgba(255, 159, 67, 0.1);
}

.badge-limit {
    color: #ff4d4d; /* Merah menyala */
    background-color: rgba(255, 77, 77, 0.1);
}

.badge-nolimit {
    color: #25d366; /* Hijau Khas WhatsApp */
    background-color: rgba(37, 211, 102, 0.1);
}

/* --- NO RESULTS STATE --- */
.no-results {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ==========================================================================
   MODAL POPUP SYSTEM
   ========================================================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #1f2c34;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: monospace, sans-serif;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: #ff4d4d;
}

.modal-body {
    padding: 20px;
}

.modal-info-group {
    margin-bottom: 16px;
}

.modal-info-group:last-child {
    margin-bottom: 0;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

#modal-cmd-desc {
    color: var(--text-main);
    font-size: 0.95rem;
}

#modal-cmd-example {
    background-color: #0b141a;
    padding: 12px;
    border-radius: 6px;
    color: #e9edef;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
    border-left: 3px solid var(--primary-color);
}

/* Tambahan pointer agar user tahu card bisa diklik */
.command-card {
    cursor: pointer;
}


/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .command-section {
        padding: 110px 0 60px;
    }
    .command-header h1 {
        font-size: 1.8rem;
    }
    .command-card {
        padding: 16px;
    }
    .cmd-item.flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .badge-container {
        width: 100%;
        justify-content: flex-start;
    }
}
