* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #36393f;
            color: #dcddde;
            height: 100vh;
            overflow: hidden;
        }

        .container {
            display: flex;
            height: 100vh;
        }

        .preview-section {
            flex: 1;
            background: #2f3136;
            padding: 50px;
            overflow-y: auto;
        }

        .editor-section {
            flex: 1;
            background: #36393f;
            padding: 50px;
            overflow-y: auto;
            border-left: 1px solid #202225;
        }

        .br-wrapper {
            width: 340px;
            padding: 5px;
            /* thickness of the border */
            border-radius: 12px;
            /* outer roundness */
            background: linear-gradient(to right, var(--primary), var(--accent));
            /* dynamic in JS */
        }

        /* Discord Profile Preview Styles */
        .discord-profile {
            background: #36393f;
            border-radius: 8px;
            overflow: hidden;
            margin: 0 auto;
        }

        .profile-banner {
            height: 120px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
            background-size: cover;
            background-position: center;
        }

        .profile-content {
            padding: 16px;
            position: relative;
        }

        .profile-avatar {
            width: 95px;
            height: 95px;
            border-radius: 50%;
            border: 6px solid var(--profile-color, #36393f);
            position: absolute;
            top: -40px;
            left: 16px;
            background: #5865f2;
            background-size: cover;
            background-position: center;
        }

        .profile-status {
            width: 27px;
            height: 27px;
            border-radius: 50%;
            border: 5px solid var(--profile-color, #36393f);
            background: var(--profile-color, #36393f);
            position: absolute;
            top: 60px;
            right: -3px;
        }

        .profile-info {
            margin-top: 44px;
        }

        .profile-badges {
            display: flex;
            gap: 1px;
        }

        .badge {
            width: 22px;
            height: 22px;
        }

        .profile-name {
            font-size: 20px;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 4px;
            font-weight: bold;
        }

        .profile-username,
        .profile-pronouns {
            font-size: 14px;
            color: white;
            margin-bottom: 4px;
        }

        .username-etc {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }

        .dot-separator {
            width: 5px;
            height: 5px;
            background-color: white;
            border-radius: 50%;
            margin: 0 10px;
        }

        .profile-divider {
            height: 1px;
            background: rgba(185, 187, 190, 0.3);
            margin: 12px 0;
        }

        .server-tag {
            display: flex;
            align-items: center;
            padding: 4px 5px;
            border-radius: 8px;
            border: 1px solid #44444c;
            margin-left: 9px;
            max-width: 120px;
            height: 20px;
            gap: 3px;
            margin-right: 9px;
            transition: background-color 0.2s;
            cursor: pointer;
        }
        .server-tag:hover {
            background-color: rgba(79, 84, 92, 0.16) !important;
        }

        .server-tag-icon {
            width: 12px;
            height: 12px;
            background-size: cover;
            background-position: center;
            border-radius: 4px;
        }

        .server-tag-name {
            font-weight: 550;
            font-size: 12px;
            color: white;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 80px;
        }


        .profile-bio {
            font-size: 14px;
            color: white;
            line-height: 1.375;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .editor-section {
            flex: 1;
            background: #2f3136;
            padding: 40px;
            overflow-y: auto;
            border-left: 1px solid #202225;
            display: flex;
            flex-direction: column;
        }

        .ie-section {
            background-color: #28292b;
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .editor-title {
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 32px;
            color: #ffffff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        .form-group {
            margin-bottom: 24px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-label {
            font-size: 13px;
            font-weight: 600;
            color: #b9bbbe;
            margin-bottom: 4px;
        }

        .form-input,
        textarea.form-input {
            width: 100%;
            padding: 10px 14px;
            background: #40444b;
            border: 1px solid #202225;
            border-radius: 6px;
            color: #dcddde;
            font-size: 14px;
            transition: border 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: #7289da;
            background: #4f545c;
        }

        textarea.form-input {
            resize: vertical;
            min-height: 80px;
            font-family: inherit;
        }

        select {
            background: #40444b;
            color: #dcddde;
            padding: 10px 12px;
            border: 1px solid #202225;
            border-radius: 6px;
            font-size: 14px;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20fill%3D'%23dcddde'%20d%3D'M0%200l5%206%205-6z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 10px 6px;
        }

        select:focus {
            border-color: #7289da;
            outline: none;
        }

        .file-input-wrapper {
            display: inline-block;
            position: relative;
        }

        .file-input {
            display: none;
        }

        .file-input-button {
            background: #5865f2;
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            display: inline-block;
            border: none;
            transition: background 0.2s ease;
        }

        .file-input-button:hover {
            background: #4752c4;
        }

        .badges-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 10px;
            padding-top: 6px;
        }

        .badge-checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #40444b;
            padding: 8px 12px;
            border-radius: 6px;
            border: 1px solid #202225;
            color: #dcddde;
            font-size: 13px;
            transition: background 0.2s;
        }

        .badge-checkbox:hover {
            background: #4f545c;
        }

        .badge-checkbox input[type="checkbox"] {
            width: 16px;
            height: 16px;
        }

        .color-group {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .color-group>div {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .color-input {
    width: 120px;
    height: 36px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    background: #40444b;
    color: #dcddde;
    cursor: pointer;
}


        .action-buttons {
            display: flex;
            gap: 12px;
            margin-top: 32px;
            flex-wrap: wrap;
        }

        .btn {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 10px 18px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .btn-primary {
            background-color: #5865f2;
            color: #fff;
        }

        .btn-primary:hover {
            background-color: #4752c4;
        }

        .btn-secondary {
            background-color: #4f545c;
            color: #fff;
        }

        .btn-secondary:hover {
            background-color: #5d6269;
        }

        #input-status {
            margin-top: 6px;
            width: 100%;
        }


        .color-group {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .color-preview {
            width: 40px;
            height: 40px;
            border-radius: 4px;
            border: 1px solid #202225;
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }

            .preview-section,
            .editor-section {
                flex: none;
                height: 50vh;
            }
        }

        .light-text {
            color: black !important;
        }

        .light-text .dot-separator {
            background-color: black;
        }

        .light-text .profile-name,
        .light-text .profile-username,
        .light-text .profile-pronouns,
        .light-text .profile-bio,
        .light-text .server-tag-name {
            color: black !important;
        }

        #server-tag-fields.disabled {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

        /* Tooltip and hover effects */
        .tooltip {
            position: absolute;
            background: #18191c;
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 14px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .badge {
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .badge:hover {
            opacity: 0.8;
        }

        .server-tag {
            transition: background-color 0.2s;
            cursor: pointer;
        }
        .server-tag:hover {
            background-color: rgba(79, 84, 92, 0.16) !important;
        }

        .profile-name, .profile-username {
            cursor: pointer;
            transition: text-decoration 0.2s;
        }
        .profile-name:hover, .profile-username:hover {
            text-decoration: underline;
        }

        .profile-pronouns, .profile-status {
            cursor: pointer;
        }