/*
 * kamu.co.id Admin — Custom CSS
 * Supplements Tailwind CDN with admin-specific styles.
 */

/* ---------- Google Fonts (Inter) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #2E3140;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3E4250;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(0, 85, 255, 0.3);
    color: #fff;
}

/* ---------- Table hover transitions ---------- */
table tbody tr {
    transition: background-color 0.15s ease;
}

/* ---------- Card hover subtle glow ---------- */
.stat-card:hover {
    border-color: rgba(0, 85, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 85, 255, 0.05);
}

/* ---------- Input focus animation ---------- */
input:focus, select:focus, textarea:focus {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ---------- Button press effect ---------- */
button:active {
    transform: scale(0.98);
}

/* ---------- Sidebar animation ---------- */
aside {
    transition: transform 0.2s ease;
}

/* ---------- Badge pulse for active items ---------- */
@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-green {
    animation: pulse-green 2s ease-in-out infinite;
}

/* ---------- Responsive table ---------- */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    table {
        font-size: 0.75rem;
    }
    table th, table td {
        padding: 0.5rem 0.75rem;
    }
}
