
        :root {
            --primary-dark: #0f2027;
            --primary-mid: #203a43;
            --primary-light: #2c5364;
            --accent-teal: #11998e;
            --accent-green: #002E6E;
            --accent-red: #ff416c;
            --text-light: #f8f9fa;
            --text-dark: #212529;
            --modal-bg: rgba(255, 255, 255, 0.98);
        }

        body {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid));
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-dark);
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
        }

        .container-fluid {
            padding: 20px;
            max-width: 98%;
            width: 100%;
            flex-grow: 1;
        }

        .glass-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            width: 100%;
            margin: 0 auto;
            padding: 20px;
            position: relative;
        }

        .btn-success {
            background: linear-gradient(to right, var(--accent-teal), var(--accent-green));
            border: none;
            border-radius: 50px;
            padding: 10px 25px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .button-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            width: 100%;
            padding-right: 10px;
        }

        .action-buttons-container {
            display: flex;
            gap: 10px;
        }

        .btn-refresh {
            background: linear-gradient(to right, #6c757d, #5a6268);
            border: none;
            border-radius: 50px;
            padding: 10px 15px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-refresh:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .btn-pdf {
            background: linear-gradient(to right, #dc3545, #c82333);
            border: none;
            border-radius: 50px;
            padding: 10px 15px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-pdf:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .table-container {
            width: 100%;
        }

        .table {
            width: 100% !important;
            margin: 0;
            table-layout: fixed;
        }

        .table thead {
            background: linear-gradient(to right, var(--accent-teal), var(--accent-green));
            color: white;
        }

        .table th {
            border: none;
            padding: 12px 6px;
            font-weight: 600;
            white-space: nowrap;
            text-align: left;
            vertical-align: middle;
            font-size: 0.9rem;
        }

        .table td {
            padding: 8px 6px;
            vertical-align: middle;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            white-space: normal;
            word-wrap: break-word;
            font-size: 0.85rem;
            color: var(--text-dark);
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .gateway-uid-cell {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 120px;
        }

        .table tbody tr:hover {
            background-color: rgba(0, 0, 0, 0.03);
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            padding: 4px 6px;
            font-size: 0.7rem;
            font-weight: 600;
            border-radius: 20px;
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            min-width: 70px;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .status-online {
            background: linear-gradient(to right, #28a745, #5cb85c);
        }

        .status-offline {
            background: linear-gradient(to right, #dc3545, #d9534f);
        }

        .status-icon {
            display: inline-block;
            width: 6px;
            height: 6px;
            margin-right: 4px;
            border-radius: 50%;
            background-color: white;
        }

        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 4px;
        }

        .action-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            transition: all 0.2s ease;
            color: white;
            border: none;
            font-size: 0.85rem;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .action-btn:hover {
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .btn-edit {
            background: linear-gradient(to right, #17a2b8, #5bc0de);
        }

        .btn-delete {
            background: linear-gradient(to right, #dc3545, #d9534f);
        }

        /* Modal specific styling */
        .modal-content {
            border-radius: 15px;
            background: var(--modal-bg);
            backdrop-filter: blur(8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .modal-header {
            background: linear-gradient(to right, var(--accent-teal), var(--accent-green));
            color: white;
            border-top-left-radius: 14px;
            border-top-right-radius: 14px;
            border-bottom: none;
            padding: 15px 20px;
        }

        .modal-title {
            font-weight: 600;
        }

        .btn-close {
            filter: invert(1);
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }

        .btn-close:hover {
            opacity: 1;
        }

        .modal-body .form-label {
            font-weight: 500;
            color: var(--primary-dark);
            margin-bottom: 5px;
        }

        .modal-body .form-control {
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.15);
            padding: 10px 15px;
            background-color: rgba(255, 255, 255, 0.8);
        }

        .modal-body .form-control:focus {
            box-shadow: 0 0 0 0.25rem rgba(17, 153, 142, 0.25);
            border-color: var(--accent-teal);
        }

        .modal-body .btn-primary {
            background: linear-gradient(to right, var(--accent-teal), var(--accent-green));
            border: none;
            border-radius: 50px;
            padding: 12px 25px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .modal-body .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        /* Search input styling */
        .dataTables_filter {
            margin-left: auto;
        }

        .dataTables_filter label {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--text-dark);
            font-weight: 500;
            margin-bottom: 0;
            white-space: nowrap;
        }

        .dataTables_filter input {
            border-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.15);
            padding: 8px 12px;
            background-color: rgba(255, 255, 255, 0.8);
            width: 180px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .dataTables_filter input:focus {
            box-shadow: 0 0 0 0.25rem rgba(17, 153, 142, 0.25);
            border-color: var(--accent-teal);
            outline: none;
        }

        /* Hide DataTables default info and pagination */
        .dataTables_info,
        .dataTables_paginate {
            display: none;
        }

        /* Refresh button animation */
        .refresh-spin {
            animation: spin 0.7s linear;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Text color for outdated data */
        .text-danger {
            color: #dc3545 !important;
        }
        .fw-bold {
            font-weight: bold !important;
        }

        /* Responsive adjustments */
        @media (max-width: 1400px) {
            .table th, .table td {
                padding: 10px 5px;
                font-size: 0.85rem;
            }
            .status-pill {
                min-width: 65px;
                font-size: 0.68rem;
                padding: 3px 5px;
            }
            .action-btn {
                width: 28px;
                height: 28px;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 1200px) {
            .table th, .table td {
                padding: 8px 4px;
                font-size: 0.8rem;
            }
            .status-pill {
                min-width: 60px;
                font-size: 0.65rem;
                padding: 2px 4px;
            }
            .action-btn {
                width: 25px;
                height: 25px;
                font-size: 0.75rem;
            }
            .dataTables_filter input {
                width: 150px;
                padding: 6px 10px;
            }
        }

        @media (max-width: 992px) {
            .table th, .table td {
                padding: 6px 3px;
                font-size: 0.75rem;
            }
            .status-pill {
                min-width: 55px;
                font-size: 0.6rem;
                padding: 1px 3px;
            }
            .action-btn {
                width: 22px;
                height: 22px;
                font-size: 0.7rem;
            }
            .dataTables_filter input {
                width: 130px;
            }
        }

        @media (max-width: 768px) {
            .container-fluid {
                padding: 10px;
            }
            .button-container {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .action-buttons-container {
                width: 100%;
                justify-content: flex-end;
            }
            .btn-success, .btn-refresh, .btn-pdf {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
            .table th, .table td {
                padding: 5px 2px;
                font-size: 0.7rem;
            }
            .status-pill {
                min-width: 50px;
                font-size: 0.55rem;
                padding: 0 2px;
            }
            .action-btn {
                width: 20px;
                height: 20px;
                font-size: 0.6rem;
            }
            .dataTables_filter {
                width: 100%;
            }
            .dataTables_filter input {
                width: 100%;
                max-width: 200px;
            }
        }

        @media (max-width: 576px) {
             html, body {
    width: 1200px !important;
    min-width: 1200px !important;
    overflow-x: scroll !important;
}
            .table th, .table td {
                padding: 4px 1px;
                font-size: 0.65rem;
            }
            .action-btn {
                width: 18px;
                height: 18px;
                font-size: 0.55rem;
            }
            .status-pill {
                min-width: 45px;
                font-size: 0.5rem;
            }
        }

        /* WhatsApp action button */
.action-btn.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    border-radius: 6px;
    width: 20px;
    height: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.action-btn.btn-whatsapp i {
    font-size: 16px;
    line-height: 1;
}
.action-buttons .action-btn { margin-right: 6px; } /* spacing */


