/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
}

.glass-panel-dark {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 50px -12px rgba(31, 38, 135, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px -12px rgba(17, 12, 46, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -15px rgba(17, 12, 46, 0.06);
    background: #ffffff;
}

/* Soft gradients matching Tran Mau Tri Tam style */
.bg-mesh {
    background-color: #fcfdfe; /* Pure clean bright off-white */
    background-image: 
        radial-gradient(at 0% 0%, rgba(224, 231, 255, 0.25) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(243, 232, 255, 0.2) 0px, transparent 40%);
}

.bg-login-mesh {
    background-color: #f3f4f6;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 40%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.18) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 40%),
        radial-gradient(at 0% 100%, rgba(245, 158, 11, 0.12) 0px, transparent 40%);
}

/* Tooltip Custom Styles */
.sidebar-tooltip {
    pointer-events: none;
    transform: scale(0.9) translateX(-10px);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item:hover .sidebar-tooltip,
.group:hover .sidebar-tooltip {
    opacity: 1;
    transform: scale(1) translateX(0);
}

/* Glass inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(203, 213, 225, 0.6);
    transition: all 0.2s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Dropdown popups animations */
.popup-scale {
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-scale.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Modern Pill Badges */
.badge-pill-indigo {
    background-color: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-pill-green {
    background-color: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-pill-red {
    background-color: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-pill-amber {
    background-color: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-pill-yellow {
    background-color: rgba(234, 179, 8, 0.08);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-pill-grey {
    background-color: rgba(100, 116, 139, 0.08);
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Quick credentials badge styles for login */
.role-badge {
    transition: all 0.2s ease;
}
.role-badge:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

/* Premium Table Row Hover Effect */
.table-hover-row {
    transition: background-color 0.15s ease;
}
.table-hover-row:hover {
    background-color: rgba(99, 102, 241, 0.04) !important;
}
.table-hover-row:hover td:first-child {
    box-shadow: inset 4px 0 0 0 #6366f1;
}
