

        @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

        body {
            font-family: 'Space Grotesk', system-ui, sans-serif;
            background-color: #0E1525;
            color: #E2E8F0;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Outfit', sans-serif;
        }

        pre, code, .code-editor {
            font-family: 'Fira Code', monospace;
        }

        .btn-text {
            font-family: 'DM Sans', sans-serif;
            font-weight: 500;
        }

 
        .text-gradient-blue {
            background: linear-gradient(135deg, #1E88E5 0%, #29B6F6 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
        }

        .text-gradient-purple {
            background: linear-gradient(135deg, #9333EA 0%, #D946EF 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
        }
        
        .text-gradient-green {
            background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
        }

        .text-gradient-orange {
            background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
        }

        .text-gradient-red {
            background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
        }

     
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #1C2333;
        }

        ::-webkit-scrollbar-thumb {
            background: #2E3A50;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #3E4A60;
        }

        /* Button styles */
        .btn-primary {
            background-color: #1E88E5;
            color: white;
            transition: all 0.2s;
        }

        .btn-primary:hover {
            background-color: #42A5F5;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .btn-secondary {
            background-color: #1C2333;
            color: #E2E8F0;
            border: 1px solid #1E2D3D;
            transition: all 0.2s;
        }

        .btn-secondary:hover {
            background-color: #2E3A50;
            transform: translateY(-1px);
        }

        .btn-danger {
            background-color: #991B1B;
            color: white;
            transition: all 0.2s;
        }

        .btn-danger:hover {
            background-color: #B91C1C;
            transform: translateY(-1px);
        }

        .btn-success {
            background-color: #047857;
            color: white;
            transition: all 0.2s;
        }

        .btn-success:hover {
            background-color: #059669;
            transform: translateY(-1px);
        }

        /* Card styles */
        .card {
            background-color: #1C2333;
            border: 1px solid #1E2D3D;
            border-radius: 0.375rem;
            overflow: hidden;
        }

        .card-header {
            padding: 1rem;
            border-bottom: 1px solid #1E2D3D;
            font-weight: 600;
        }

        .card-body {
            padding: 1rem;
        }

        /* Tab styles */
        .tab-button {
            padding: 0.75rem 1rem;
            font-weight: 500;
            transition: all 0.2s;
        }

        .tab-button.active {
            border-bottom: 2px solid #1E88E5;
            color: #E2E8F0;
        }

        .tab-button:not(.active) {
            color: #6C7A94;
        }

        .tab-button:not(.active):hover {
            color: #93A4C5;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        /* Admin badge */
        .admin-badge {
            background-color: #D946EF;
            color: white;
            font-size: 0.7rem;
            padding: 0.1rem 0.5rem;
            border-radius: 9999px;
            font-weight: bold;
        }

        .dev-badge {
            background-color: #EC4899;
            color: white;
            font-size: 0.7rem;
            padding: 0.1rem 0.5rem;
            border-radius: 9999px;
            font-weight: bold;
        }

        /* Status badges */
        .status-badge {
            padding: 0.125rem 0.5rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 500;
        }

        .status-success {
            background-color: rgba(16, 185, 129, 0.1);
            color: #10B981;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .status-warning {
            background-color: rgba(245, 158, 11, 0.1);
            color: #F59E0B;
            border: 1px solid rgba(245, 158, 11, 0.2);
        }

        .status-danger {
            background-color: rgba(239, 68, 68, 0.1);
            color: #EF4444;
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .status-info {
            background-color: rgba(59, 130, 246, 0.1);
            color: #3B82F6;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        /* Avatar image styles */
        .avatar-image {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #1E88E5;
        }

        .avatar-sm {
            width: 28px;
            height: 28px;
        }

        .avatar-lg {
            width: 56px;
            height: 56px;
        }

        .avatar-image.error {
            display: none;
        }

        .avatar-fallback {
            display: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #1E88E5;
            color: white;
            font-size: 16px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #1E88E5;
        }

        .avatar-fallback.avatar-sm {
            width: 28px;
            height: 28px;
            font-size: 12px;
        }

        .avatar-fallback.avatar-lg {
            width: 56px;
            height: 56px;
            font-size: 24px;
        }

        .avatar-image.error + .avatar-fallback {
            display: flex;
        }

        /* Loading spinner */
        .loading-spinner {
            border: 3px solid rgba(59, 130, 246, 0.2);
            border-radius: 50%;
            border-top: 3px solid #3B82F6;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Switch/Toggle styles */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 22px;
        }

        .toggle-switch input { 
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #1E2D3D;
            -webkit-transition: .4s;
            transition: .4s;
            border-radius: 34px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: #6C7A94;
            -webkit-transition: .4s;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: #0D47A1;
        }

        input:checked + .toggle-slider:before {
            background-color: #42A5F5;
            -webkit-transform: translateX(22px);
            -ms-transform: translateX(22px);
            transform: translateX(22px);
        }

        /* Dashboard stat item */
        .stat-item {
            background-color: #1C2333;
            border: 1px solid #1E2D3D;
            border-radius: 0.5rem;
            padding: 1rem;
            transition: all 0.3s;
        }

        .stat-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
            border-color: #29B6F6;
        }

        /* Maintenance mode indicator */
        .maintenance-indicator {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .maintenance-indicator.active {
            background-color: rgba(239, 68, 68, 0.1);
            color: #EF4444;
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .maintenance-indicator.inactive {
            background-color: rgba(16, 185, 129, 0.1);
            color: #10B981;
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.7);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: #1C2333;
            margin: 10% auto;
            border: 1px solid #1E2D3D;
            border-radius: 0.5rem;
            max-width: 500px;
            animation: slideIn 0.3s;
        }

        .modal-header {
            padding: 1rem;
            border-bottom: 1px solid #1E2D3D;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-body {
            padding: 1rem;
        }

        .modal-footer {
            padding: 1rem;
            border-top: 1px solid #1E2D3D;
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
        }

        .close-modal {
            color: #6C7A94;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .close-modal:hover {
            color: #E2E8F0;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        /* System message styles */
        .system-message {
            border-left: 4px solid;
            margin-bottom: 1rem;
            transition: all 0.3s;
        }

        .system-message-info {
            border-left-color: #1E88E5;
            background-color: rgba(30, 136, 229, 0.1);
        }

        .system-message-warning {
            border-left-color: #F97316;
            background-color: rgba(249, 115, 22, 0.1);
        }

        .system-message-danger {
            border-left-color: #EF4444;
            background-color: rgba(239, 68, 68, 0.1);
        }

        .system-message-success {
            border-left-color: #10B981;
            background-color: rgba(16, 185, 129, 0.1);
        }

        .trigger-list-item {
            background-color: #1C2333;
            border: 1px solid #1E2D3D;
            border-radius: 0.375rem;
            margin-bottom: 0.5rem;
            transition: all 0.2s;
          }
          
          .trigger-list-item:hover {
            background-color: #2E3A50;
          }
          
          .trigger-code {
            font-family: 'Fira Code', monospace;
            font-size: 0.75rem;
            background-color: #0E1525;
            padding: 0.5rem;
            border-radius: 0.25rem;
            overflow-x: auto;
          }
          
          .trigger-loop-badge {
            background-color: rgba(16, 185, 129, 0.1);
            color: #10B981;
            font-size: 0.65rem;
            padding: 0.1rem 0.3rem;
            border-radius: 0.25rem;
            display: inline-flex;
            align-items: center;
          }





          #viewUserModal .modal-content {
            max-width: 650px;
          }







        /* Toast notification */
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
        }

        .toast-notification {
            min-width: 300px;
            padding: 1rem;
            margin-top: 0.5rem;
            border-radius: 0.5rem;
            background-color: #1C2333;
            border: 1px solid #1E2D3D;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            animation: slideInRight 0.3s, fadeOut 0.5s 2.5s forwards;
        }

        .toast-success {
            border-left: 4px solid #10B981;
        }

        .toast-error {
            border-left: 4px solid #EF4444;
        }

        .toast-info {
            border-left: 4px solid #1E88E5;
        }

        .toast-warning {
            border-left: 4px solid #F97316;
        }

        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        /* Custom input styles */
        .custom-input, .custom-select, .custom-textarea {
            background-color: #1C2333;
            border: 1px solid #1E2D3D;
            color: #E2E8F0;
            border-radius: 0.375rem;
            padding: 0.5rem 0.75rem;
            transition: all 0.3s;
        }

        .custom-input:focus, .custom-select:focus, .custom-textarea:focus {
            outline: none;
            border-color: #1E88E5;
            box-shadow: 0 0 0 1px rgba(30, 136, 229, 0.2);
        }

        .custom-input::placeholder, .custom-textarea::placeholder {
            color: #6C7A94;
        }

        .custom-select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236C7A94'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
            background-size: 1rem;
            padding-right: 2rem;
        }
    