* {
    cursor: none !important;
}

/* Theme Variables */
#live-cursor {
    --cursor-bg: rgba(255, 255, 255, 0.9);
    --cursor-text: #111827;
    --cursor-text-muted: #6b7280;
    --cursor-border: #e5e7eb;
    --cursor-input-bg: #ffffff;
    --cursor-input-border: #d1d5db;
    --cursor-modal-overlay: rgba(0, 0, 0, 0.5);
    --cursor-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --cursor-modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --cursor-btn-secondary-bg: #f3f4f6;
    --cursor-btn-secondary-text: #4b5563;
    --cursor-btn-secondary-hover: #e5e7eb;
}

#live-cursor[data-theme="dark"] {
    --cursor-bg: rgba(0, 0, 0, 0.9);
    --cursor-text: #ffffff;
    --cursor-text-muted: #a0a0a0;
    --cursor-border: #404040;
    --cursor-input-bg: #1a1a1a;
    --cursor-input-border: #525252;
    --cursor-modal-overlay: rgba(0, 0, 0, 0.8);
    --cursor-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --cursor-modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --cursor-btn-secondary-bg: #262626;
    --cursor-btn-secondary-text: #d4d4d4;
    --cursor-btn-secondary-hover: #404040;
}

#live-cursor[data-theme="dark"] .cursor-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

#live-cursor[data-theme="dark"] .color-option.selected {
    border-color: #ffffff !important;
}

#live-cursor[data-theme="dark"] .cursor-btn-primary {
    background: #ffffff;
    color: #000000;
}

#live-cursor[data-theme="dark"] .cursor-btn-primary:hover {
    background: #e5e5e5;
}

/* Badge */
#cursor-settings-badge {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: var(--cursor-bg);
    color: var(--cursor-text);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--cursor-border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    box-shadow: var(--cursor-shadow);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    z-index: 100000;
}

#cursor-settings-badge:hover {
    transform: scale(1.05);
}

#cursor-settings-badge:active {
    transform: scale(0.95);
}

#cursor-color-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

/* Modal */
#cursor-settings-modal {
    position: fixed;
    inset: 0;
    background: var(--cursor-modal-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

#cursor-settings-modal.hidden {
    display: none;
}

.cursor-modal-content {
    background: var(--cursor-bg);
    color: var(--cursor-text);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--cursor-modal-shadow);
    width: 20rem;
    border: 1px solid var(--cursor-border);
    font-family: sans-serif;
}

.cursor-modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--cursor-text);
}

.cursor-field-group {
    margin-bottom: 1rem;
}

.cursor-label-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cursor-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.cursor-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--cursor-input-bg);
    color: var(--cursor-text);
    border: 1px solid var(--cursor-input-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    box-sizing: border-box;
}

.cursor-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.color-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-option {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option:hover {
    border-color: var(--cursor-input-border);
}

.color-option.selected {
    border-color: #3b82f6 !important;
    transform: scale(1.1);
}

.cursor-btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.cursor-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.cursor-btn-primary {
    background: #2563eb;
    color: white;
}

.cursor-btn-primary:hover {
    background: #1d4ed8;
}

.cursor-btn-secondary {
    background: var(--cursor-btn-secondary-bg);
    color: var(--cursor-btn-secondary-text);
}

.cursor-btn-secondary:hover {
    background: var(--cursor-btn-secondary-hover);
}

/* Cursors */
.remote-cursor-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    will-change: transform;
}

.cursor-label {
    position: absolute;
    top: 14px;
    left: 12px;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: monospace;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
