/* css/premium-common.css */

/* High-Fidelity Design Tokens & Animations */
:root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-std: 14px;
    --premium-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --vibrant-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --haptic-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Body Style (The Harmony Theme) */
body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background: #f1f5f9; /* Fallback solid color */
    background: linear-gradient(-45deg, #f1f5f9, #e2e8f0, #cbd5e1, #f8fafc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance Optimization for Low-End Devices (HP Kentang) */
@media (max-width: 768px) {
    body {
        animation: none !important;
        background: #f1f5f9 !important; /* Static background on mobile */
    }
    
    body::before, body::after {
        display: none !important; /* Remove heavy blurred shapes on mobile */
    }

    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .fancy-card, .menu-card, .game-card {
        transform: none !important; /* Disable transforms on hover for mobile to avoid repaint */
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important; /* Simpler shadows */
    }
}

/* Abstract Background Shapes */
body::before {
    content: '';
    position: fixed;
    top: -100px; left: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -150px; right: -50px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* Keyframes */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb Premium */
.breadcrumb-premium-wrapper {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: var(--radius-std);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: inline-flex;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.breadcrumb-flat {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
}

.breadcrumb-flat .breadcrumb-item + .breadcrumb-item::before {
    content: "•" !important;
    color: var(--accent-blue) !important;
    opacity: 0.5;
    font-size: 1.2rem;
    line-height: 1;
}

.breadcrumb-flat .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-premium {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none !important;
    gap: 12px;
    align-items: center;
}

.breadcrumb-premium .breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-premium .breadcrumb-item + .breadcrumb-item::before {
    content: "•" !important;
    color: #cbd5e1;
    font-weight: 900;
    padding-right: 12px;
}

.breadcrumb-premium a {
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-premium a:hover {
    color: var(--accent-blue);
    transform: translateY(-1px);
}

.breadcrumb-premium .active {
    color: var(--text-main);
    font-weight: 700;
}

/* Premium Card System */
.fancy-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--premium-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Optimized transition */
    padding: 20px;
    will-change: transform; /* Hint for hardware acceleration */
}

.fancy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.1);
}

.card-header-premium {
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.card-body-premium {
    padding: 1.5rem;
    color: #334155;
}

/* Premium Button System */
.btn-premium-gradient {
    background: var(--vibrant-gradient);
    border: none;
    color: white !important;
    border-radius: var(--radius-std);
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    transition: var(--haptic-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-premium-gradient:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.btn-action-glass {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main) !important;
    font-weight: 700;
    border-radius: var(--radius-std);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-action-glass:hover {
    background: #fff;
    border-color: var(--accent-blue);
    color: var(--accent-blue) !important;
    transform: translateY(-2px);
}

.btn-elegant-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
    border-radius: var(--radius-std);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    transition: var(--haptic-transition);
}

.btn-elegant-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
    filter: brightness(1.1);
}

/* Premium Form Elements */
.premium-input-soft {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--radius-std) !important;
    padding: 0.65rem 1rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    color: var(--text-main) !important;
}

.premium-input-soft:focus {
    background: #fff !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08) !important;
}

/* Utility Badges */
.badge-premium-blue {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--accent-blue) !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
}

/* Disable custom scrollbar on mobile for performance */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        display: none; /* Let the OS handle scrollbars on mobile */
    }
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.4);
}

/* Global Administrative Components */
.dashboard-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    color: #0f172a;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dashboard-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.menu-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.btn-qa {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--haptic-transition);
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.menu-card:hover::before {
    transform: scaleX(1);
}

.menu-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-icon {
    transform: scale(1.1);
}

.menu-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.menu-description {
    font-size: 0.9rem;
    color: #64748b;
}

/* Glass Modal Styling */
.glass-modal {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    color: #1e293b;
}

.glass-modal .modal-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px 24px 0 0;
}

.glass-modal .modal-title {
    color: #0f172a;
    font-weight: 700;
}

.glass-modal .modal-footer {
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 24px 24px;
}

/* Global Footer Styling */
.premium-footer {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1.25rem 0;
    color: var(--text-main);
    font-size: 0.85rem;
    margin-top: 3rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.02);
}

.premium-footer strong {
    font-weight: 700;
    color: var(--text-main);
}

.premium-footer .text-primary {
    color: var(--accent-blue) !important;
    font-weight: 800;
}

/* ==========================================================
   TRANSAKSI GAME MODULE STYLES
   ========================================================== */

/* Game Cards Portfolio-Style */
.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-std);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    will-change: transform;
}
.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

.game-cover-container {
    position: relative;
    padding-top: 133%; /* 3:4 Aspect Ratio */
    background: #f1f5f9;
    overflow: hidden;
}
.game-cover-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    image-rendering: -webkit-optimize-contrast; /* Clearer images on some devices */
    backface-visibility: hidden; /* Prevent flickering */
}
.game-card:hover .game-cover-img { transform: scale(1.08); }

/* Selection Indicator */
.selection-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.selection-indicator i {
    font-size: 0.8rem;
    color: #fff;
    transform: scale(0);
    transition: transform 0.3s ease;
}
.game-card.selected .selection-indicator {
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}
.game-card.selected .selection-indicator i {
    transform: scale(1);
}
.game-card.selected {
    border-color: var(--accent-blue) !important;
    background: rgba(59, 130, 246, 0.04);
}

/* Floating Cart */
.floating-cart-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1040;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-float-cart {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: var(--accent-blue);
    border: 3px solid #fff;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center; justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 8px;
    padding: 2px 6px;
    min-width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Batch Selection Menu */
.batch-selection-menu {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    z-index: 1050;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    height: 56px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.batch-selection-menu.active {
    transform: translateX(-50%) translateY(0);
}

/* Status Bubble & Overlays */
.status-overlay {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid rgba(255,255,255,0.2);
}
.status-overlay-red { background: #ef4444; color: #fff; }
.status-overlay-yellow { background: #f59e0b; color: #000; }
.status-overlay-blue { background: #3b82f6; color: #fff; }

#gameStatusBubble {
    display: none;
    position: fixed;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    overflow: hidden;
    animation: bubblePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
@keyframes bubblePop {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Premium Field Card for Modals */
.premium-field-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-std);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Custom Select Dropdown */
.custom-select-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-std);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
    text-align: left;
}
.custom-select-menu {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-std);
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    z-index: 101;
}
.custom-select-dropdown.open .custom-select-menu {
    display: block;
    animation: slideUpFade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   ADMIN DASHBOARD SPECIFIC STYLES
   ========================================================== */
.profile-image-wrapper {
    display: inline-block;
    position: relative;
}
.profile-image-large {
    width: 120px; height: 120px;
    border-radius: 50%; object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}
.profile-badge {
    position: absolute; bottom: 5px; right: 5px;
    background: #3b82f6; color: white;
    width: 30px; height: 30px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    border: 3px solid white; font-size: 14px;
}
.info-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px; padding: 1rem;
    display: flex; align-items: center; gap: 1rem;
}
.info-icon {
    width: 45px; height: 45px;
    background: var(--vibrant-gradient);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}

/* Statistics / Summary Cards */
.summary-card-inner {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--haptic-transition);
    height: 100%;
}
.summary-card-inner:hover {
    transform: translateY(-5px);
    background: #ffffff;
}
.summary-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Soft Badges & Backgrounds */
.bg-soft-primary { background: rgba(59, 130, 246, 0.1) !important; color: #3b82f6 !important; }
.bg-soft-success { background: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }
.bg-soft-danger { background: rgba(244, 63, 94, 0.1) !important; color: #f43f5e !important; }
.bg-soft-warning { background: rgba(245, 158, 11, 0.1) !important; color: #f59e0b !important; }
.bg-soft-info { background: rgba(6, 182, 212, 0.1) !important; color: #06b6d4 !important; }
.bg-soft-indigo { background: rgba(99, 102, 241, 0.1) !important; color: #6366f1 !important; }

.badge-soft-laporan {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Info Rows & Icons */
.info-row-premium {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.info-row-premium:last-child { border-bottom: none; }

.info-icon-soft {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.8rem;
}

.info-label { color: var(--text-muted); font-weight: 500; font-size: 0.75rem; width: 90px; }
.info-value { color: var(--text-main); font-weight: 700; font-size: 0.8rem; }

/* ==========================================================
   UTILITY & SHARED COMPONENT CLASSES
   ========================================================== */
.text-dark-main { color: var(--text-main) !important; }
.text-accent { color: var(--accent-blue) !important; }
.text-indigo { color: #6366f1 !important; }

.icon-box-60 {
    width: 60px; height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fs-1-8 { font-size: 1.8rem !important; }
.fs-1-3 { font-size: 1.3rem !important; }
.fs-0-85 { font-size: 0.85rem !important; }

.btn-pill {
    border-radius: 100px !important;
}

.input-group-premium {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-radius: 12px !important;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
}

.input-group-premium .form-control {
    border: none !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.input-group-premium .input-group-text {
    border: none !important;
    background: transparent !important;
}

.glass-modal-content {
    border-radius: 14px !important;
    border: 1px solid var(--glass-border) !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.profile-img-80 {
    width: 80px; height: 80px;
    object-fit: cover;
}

.border-premium {
    border: 3px solid var(--accent-blue) !important;
}

.fs-0-6 { font-size: 0.6rem !important; }

.border-premium-subtle {
    border: 1px solid var(--glass-border) !important;
}

/* ==========================================================
   KASIR & TRANSACTION MODULE STYLES
   ========================================================== */
.total-box {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
}

.table-kasir thead th {
    background: rgba(59, 130, 246, 0.05);
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    padding: 15px;
}
.table-kasir td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Premium General Table */
.premium-table thead th {
    background: rgba(59, 130, 246, 0.03);
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.premium-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--text-main);
    font-size: 0.85rem;
}
.premium-table tbody tr:hover td {
    background-color: rgba(59, 130, 246, 0.02);
}

/* Small Premium Buttons */
.btn-premium-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--haptic-transition);
}

/* Marketplace Tab Switcher */
.marketplace-tab-wrapper {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.4);
    padding: 8px;
    border-radius: var(--radius-std);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.marketplace-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.3s ease;
    color: var(--text-muted);
    border: 1px solid transparent;
}
.marketplace-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--accent-blue);
}
.marketplace-tab.active {
    background: #fff;
    color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.1);
}

/* Premium Enhanced Table (Card-like on Mobile) */
.table-container-premium { border-radius: var(--radius-std); overflow: hidden; border: 1px solid rgba(0,0,0,0.03); }
.table-premium { margin-bottom: 0; width: 100%; border-collapse: separate; border-spacing: 0; }
.table-premium thead th {
    background: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-main);
    font-weight: 800;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table-premium tbody td {
    background: rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-weight: 600;
    color: #1e293b;
}
.table-premium tbody tr:hover td { background: rgba(255,255,255,0.4); }
.table-premium tbody tr:last-child td { border-bottom: none; }

/* Mobile Responsive Premium Card Layout */
@media (max-width: 768px) {
    .table-premium, .table-premium thead, .table-premium tbody, .table-premium th, .table-premium td, .table-premium tr {
        display: block;
    }
    .table-premium thead tr { position: absolute; top: -9999px; left: -9999px; }
    
    .table-premium tr.premium-row {
        border: none;
        margin-bottom: 25px;
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.04);
        position: relative;
        padding: 20px;
        border-top: 4px solid var(--accent-blue);
        transition: transform 0.3s ease;
    }

    .table-premium td {
        border: none !important;
        padding: 0 !important;
        text-align: left !important;
        margin-bottom: 12px;
        display: block;
        min-height: auto;
    }

    .mobile-check { position: absolute; top: 15px; left: 15px; margin: 0 !important; }
    .mobile-actions { 
        position: absolute; 
        top: 15px; 
        right: 15px; 
        margin: 0 !important; 
        background: rgba(255,255,255,0.9);
        padding: 4px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .mobile-title {
        margin-top: 25px;
        margin-bottom: 5px !important;
    }
    .mobile-title .fw-bold { font-size: 1.15rem !important; color: var(--text-main) !important; letter-spacing: -0.02em; }
    .mobile-id { 
        display: inline-block !important; 
        font-weight: 800 !important; 
        color: var(--accent-blue) !important; 
        margin-right: 10px !important;
        background: rgba(59, 130, 246, 0.08);
        padding: 2px 8px;
        border-radius: 6px;
    }
    .mobile-meta { display: inline-block !important; margin-bottom: 20px !important; }
    .mobile-meta:before, .mobile-id:before { content: none !important; }
    .mobile-price {
        background: #f8fafc;
        border-radius: 12px;
        padding: 12px 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 8px !important;
        border: 1px solid rgba(0,0,0,0.02) !important;
    }
    .mobile-price:before {
        content: attr(data-label);
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 800;
        color: var(--text-muted);
    }
    .mobile-price .fw-bold { font-size: 1rem !important; }
    .mobile-price[data-label="Tetap"] {
        background: rgba(99, 102, 241, 0.05);
        border: 1px dashed rgba(99, 102, 241, 0.2) !important;
    }
}

.w-70 { width: 70px !important; }

.alert-soft-info {
    background: rgba(59, 130, 246, 0.05) !important;
    border: none !important;
    border-radius: 12px !important;
    color: var(--accent-blue) !important;
}

/* Autocomplete Global Standard */
.ui-autocomplete {
    z-index: 1050;
    border: 1px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    box-shadow: var(--premium-shadow) !important;
    padding: 8px !important;
}
.ui-menu-item-wrapper {
    padding: 10px 15px !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.2s ease !important;
}
.ui-menu-item-wrapper:hover, .ui-state-active {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--accent-blue) !important;
    transform: translateX(5px);
}

/* Print Rules */
@media print {
    .no-print { display: none !important; }
    body * { visibility: hidden; }
    #strukArea, #strukArea * { visibility: visible; }
    #strukArea { position: absolute; left: 0; top: 0; width: 100%; }
}
/* Floating Profile & Action Bubbles */
.floating-profile-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    transition: var(--haptic-transition);
}

.btn-float {
    width: 60px;
    height: 60px;
    padding: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--haptic-transition);
}

.btn-float:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    object-fit: cover;
}

.profile-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.dropdown-menu-premium {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    padding: 15px !important;
    min-width: 250px !important;
    animation: slideUpFade 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item-premium {
    border-radius: 12px !important;
    padding: 10px 15px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 5px !important;
}

.dropdown-item-premium:last-child { margin-bottom: 0 !important; }

.dropdown-item-premium i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.dropdown-item-premium:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: var(--accent-blue) !important;
    transform: translateX(5px);
}

.dropdown-item-premium:hover i {
    transform: scale(1.2);
}

.dropdown-item-premium.text-danger:hover {
    background: rgba(244, 63, 94, 0.08) !important;
    color: #f43f5e !important;
}

/* Modal Enhancements - Ultra Premium */
.modal-content.glass-modal, .modal-content-premium {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(50px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(50px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-xl) !important;
    overflow: hidden;
    position: relative;
}

/* Subtle Top Accent for Modals */
.modal-content.glass-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--vibrant-gradient);
    z-index: 10;
}

.modal-header.border-0 {
    padding: 25px 30px 15px !important;
}

.modal-body {
    padding: 20px 30px 30px !important;
}

.modal-footer.border-0 {
    padding: 15px 30px 25px !important;
    background: rgba(0, 0, 0, 0.02);
}

.modal-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Form controls inside modals */
.glass-modal .form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.glass-modal .form-control:focus {
    background: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Quick Actions & Dashboard Enhancements */
.quick-actions-card {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.btn-qa {
    border: none !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    transition: var(--haptic-transition) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-qa:hover {
    transform: translateY(-5px) scale(1.02) !important;
}

.btn-qa-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

.btn-qa-secondary {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%) !important;
    color: #a21caf !important;
    border: 1px solid rgba(162, 28, 175, 0.1) !important;
}

.btn-qa-tertiary {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.1) !important;
}

.btn-qa-quaternary {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
    color: #c2410c !important;
    border: 1px solid rgba(249, 115, 22, 0.1) !important;
}

.btn-qa-primary:hover { box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15) !important; }
.btn-qa-secondary:hover { box-shadow: 0 15px 30px rgba(162, 28, 175, 0.15) !important; }
.btn-qa-tertiary:hover { box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15) !important; }
.btn-qa-quaternary:hover { box-shadow: 0 15px 30px rgba(249, 115, 22, 0.15) !important; }

/* Dashboard Premium Enhancements */
.dashboard-header-premium {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.text-gradient-primary {
    background: var(--vibrant-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-muted-premium {
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.fw-800 { font-weight: 800 !important; }

.abstract-blob-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
}

.abstract-blob-2 {
    position: absolute;
    bottom: -30px;
    left: 20%;
    width: 180px;
    height: 180px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.z-index-2 { z-index: 2 !important; }

.avatar-sm-premium {
    width: 36px;
    height: 36px;
    background: var(--vibrant-gradient);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}
