
        :root {
            --primary: #6366f1;
            --primary-hover: #4f46e5;
            --success: #10b981;
            --danger: #ef4444;
            --bg: #f8fafc;
            --card-bg: #ffffff;
            --text-main: #1e293b;
            --text-muted: #64748b;
            --input-border: #e2e8f0;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text-main);
           /* padding-top: 20px; */
        }

        .container-fluid {
           /* max-width: 1200px; */
        }

        /* Card Styling */
        .main-card {
            background: var(--card-bg);
            border: none;
            border-radius: 24px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            margin-bottom: 30px;
        }

        .card-header {
            background: #fff;
            border-bottom: 1px solid #f1f5f9;
            padding: 24px 32px;
        }

        .card-header h6 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-header h6 i {
            color: var(--primary);
        }

        /* Table Styling */
        .table-responsive {
            padding: 0 32px 32px 32px;
        }

        table.dataTable {
            /*border-collapse: separate !important; */
            border-spacing: 0 5px !important;
            margin-top: 10px !important;
        }

        table.dataTable thead th {
            background: #f8fafc !important;
            border: none !important;
            color: var(--text-muted);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 12px 15px !important;
        }

        table.dataTable tbody tr {
            background: #fff !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.02);
            transition: transform 0.2s;
        }

        table.dataTable tbody td {
            border: none !important;
            padding: 16px 15px !important;
            font-size: 0.9rem;
            vertical-align: middle;
            border-top: 1px solid #f1f5f9 !important;
            border-bottom: 1px solid #f1f5f9 !important;
        }

        table.dataTable tbody td:first-child {
            border-left: 1px solid #f1f5f9 !important;
            /* border-top-left-radius: 12px;
            border-bottom-left-radius: 12px; */
        }

        table.dataTable tbody td:last-child {
            border-right: 1px solid #f1f5f9 !important;
          /*  border-top-right-radius: 12px;
            border-bottom-right-radius: 12px; */
        }

        /* Buttons */
        .btn {
            border-radius: 10px;
            font-weight: 600;
            padding: 8px 16px;
            transition: all 0.2s;
        }

        .btn-primary { background: var(--primary); border: none; }
        .btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
        
        .btn-success { background: var(--success); border: none; }
        .btn-success:hover { background: #059669; transform: translateY(-1px); }

        /* Modal Styling */
        .modal-content {
            border: none;
            border-radius: 24px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        .modal-header {
            border-bottom: 1px solid #f1f5f9;
            padding: 24px;
        }

        .modal-title {
            font-weight: 700;
            color: var(--text-main);
        }

        .modal-body {
            padding: 24px;
        }

        .form-label {
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .form-control, .form-select {
            border-radius: 12px;
            border: 1px solid var(--input-border);
            padding: 10px 14px;
        }

        .form-control:focus {
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
            border-color: var(--primary);
        }

        /* Badge Styling */
        .badge-status {
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 700;
        }




        #box {
            background: var(--card-bg);
            width: 100%;
            max-width: 440px;
            padding: 32px;
            border-radius: 24px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        h2 {
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-main);
        }

        h2 i {
            color: var(--primary);
        }

        /* Modern Toggle Switch */
        .toggle-container {
            position: relative;
            width: 100px;
            height: 40px;
            background: #e2e8f0;
            border-radius: 20px;
            padding: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .toggle-container input {
            display: none;
        }

        .toggle-label {
            width: 50%;
            text-align: center;
            font-size: 11px;
            font-weight: 700;
            z-index: 1;
            transition: color 0.3s;
            color: var(--text-muted);
        }

        .toggle-slider {
            position: absolute;
            top: 4px;
            left: 4px;
            width: 46px;
            height: 32px;
            background: var(--success);
            border-radius: 16px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        input:checked ~ .toggle-slider {
            left: 50px;
            background: var(--danger);
        }

        input:checked ~ .label-out { color: white; }
        input:not(:checked) ~ .label-in { color: white; }

        /* Scanner Visuals */
        #status-bar {
            background: var(--success);
            color: white;
            padding: 12px;
            border-radius: 12px 12px 0 0;
            font-weight: 700;
            letter-spacing: 1px;
            transition: background 0.3s;
            text-transform: uppercase;
        }

        #reader {
            width: 100% !important;
            border: none !important;
            overflow: hidden;
            border-radius: 0 0 12px 12px;
            background: #000;
            position: relative;
        }

        /* Customizing HTML5-QRCode internal UI */
        #reader__dashboard {
            padding: 10px !important;
            background: #f1f5f9 !important;
        }

        #reader__camera_selection {
            padding: 5px;
            border-radius: 4px;
            border: 1px solid #cbd5e1;
            width: 100%;
            margin-bottom: 10px;
        }

        .user-info {
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .user-email {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .logout-btn {
            color: var(--text-muted);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.2s;
            font-weight: 600;
        }

        .logout-btn:hover {
            color: var(--danger);
        }

        #result {
            margin-top: 15px;
            font-size: 0.85rem;
            color: var(--primary);
            word-break: break-all;
            min-height: 1.2em;
        }
        
                
        /* Navbar Styling */
        .navbar { background: #1e293b !important; padding: 0.8rem 2rem; }
                
        .navbar-brand img {
            height: 35px;
            margin-right: 10px;
        }
        .user-profile-nav {
            padding: 5px 12px;
            border-radius: 20px;
            background: rgba(255,255,255,0.1);
            color: #fff;
            font-size: 0.85rem;
        }
