/* Base styles */
    body {
        position: relative;
        background-color: rgb(17, 24, 39);
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://oasisweb3.ai/images/oasis-web3-desert-oasis-backgound.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        opacity: 0.07;
        z-index: -1;
    }

    /* Card styles */
    .card-bg {
        background-color: rgba(17, 24, 39, 0.7) !important;
        backdrop-filter: blur(5px);
    }

    .card {
        background-color: rgba(17, 24, 39, 0.7);
        backdrop-filter: blur(5px);
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card-header {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card-title {
        color: #fff;
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .card-body {
        padding: 1rem;
    }

    /* Avatar container */
    .avatar-container {
        position: absolute;
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid rgba(34, 197, 94, 0.5);
        /* Soft green glow */
        box-shadow:
            0 0 10px 2px rgba(34, 197, 94, 0.24),
            0 0 30px 8px rgba(34, 197, 94, 0.18),
            0 0 70px 16px rgba(34, 197, 94, 0.08);
    }

    .login-avatar {
        box-shadow:
            0 0 10px 2px rgba(34, 197, 94, 0.24),
            0 0 30px 8px rgba(34, 197, 94, 0.18),
            0 0 70px 16px rgba(34, 197, 94, 0.08);
    }

    /* Navbar / Header — black */
    nav,
    .navbar,
    header,
    .navbar-default,
    [class*="navbar"],
    [class*="header"],
    [class*="topbar"],
    [class*="top-bar"] {
        background-color: #000000 !important;
        background: #000000 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    /* Footer — black, opacity 0.8 */
    .footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        padding: 1rem;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.8) !important;
        font-size: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Form elements */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        display: block;
        color: #fff;
        margin-bottom: 0.5rem;
    }

    .form-control {
        width: 100%;
        padding: 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 0.375rem;
        color: #fff;
        margin-bottom: 1rem;
    }

    .form-control:focus {
        outline: none;
        border-color: rgba(34, 197, 94, 0.5);
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
    }

    /* Button styles */
    .agent-btn[data-state="stopped"] {
        background-color: #059669;
    }

    .agent-btn[data-state="stopped"]:hover {
        background-color: #047857;
    }

    .agent-btn[data-state="running"] {
        background-color: #dc2626;
    }

    .agent-btn[data-state="running"]:hover {
        background-color: #b91c1c;
    }

    .btn {
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-primary {
        background-color: #22c55e;
        color: white;
        border: none;
    }

    .btn-primary:hover {
        background-color: #16a34a;
    }

    .btn-secondary {
        background-color: #3b82f6;
        color: white;
        border: none;
    }

    .btn-secondary:hover {
        background-color: #2563eb;
    }

    .btn-danger {
        background-color: #dc2626;
        color: white;
        border: none;
        margin-left: 0.5rem;
    }

    .btn-danger:hover {
        background-color: #b91c1c;
    }

    .mt-spacing {
      margin-top: auto;
      margin-bottom: 0px;
      padding-top: 36px;
    }

    .lobby-ejs-cards {
      margin-top: auto;
      margin-bottom: 0px;
      padding-top: 400px;
      position: center;
    }

    .x-bot-ejs-cards {
      margin-top: auto;
      margin-bottom: 0px;
      padding-top: 275px;
      position: center;
    }

    /* Security code formatting */

    input {
        width: 100%;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.5rem;
        font-size: 1rem;
        color: var(--text-color);
        transition: all 0.2s ease;
    }

    input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    }

    .error-message {
        color: var(--error-color);
        font-size: 0.875rem;
        margin-top: 0.5rem;
        display: none;
        text-align: center;
    }

    .password-requirements {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
        margin-top: 0.25rem;
    }

    .security-code-display {
        letter-spacing: 2px;
        font-family: 'Courier New', monospace;
    }

    /* Loading spinner */
    .spinner {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
        margin: 0 auto;
    }

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