/**
 * Visual Notes Frontend Styles
 *
 * @package HD_SEO
 */

/* Floating Toggle Button */
#hd-seo-qa-toggle {
    position: fixed !important;
    bottom: 24px;
    right: 24px;
    z-index: 999998 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: move !important;
    cursor: grab !important;
    box-shadow:
        0 8px 24px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(118, 75, 162, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center;
    gap: 10px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto !important;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
    position: relative;
}

#hd-seo-qa-toggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#hd-seo-qa-toggle:hover::before {
    left: 100%;
}

#hd-seo-qa-toggle:active {
    cursor: grabbing !important;
    transform: scale(0.98);
}

#hd-seo-qa-toggle.hd-seo-qa-toggle-dragging {
    cursor: grabbing !important;
    box-shadow:
        0 12px 32px rgba(102, 126, 234, 0.5),
        0 6px 16px rgba(118, 75, 162, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    opacity: 0.95;
}

#hd-seo-qa-toggle:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow:
        0 12px 32px rgba(102, 126, 234, 0.5),
        0 6px 16px rgba(118, 75, 162, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px) scale(1.02);
}

#hd-seo-qa-toggle.active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow:
        0 8px 24px rgba(244, 63, 94, 0.4),
        0 4px 12px rgba(225, 29, 72, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    animation: pulse-active 2s ease-in-out infinite;
}

#hd-seo-qa-toggle.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

#hd-seo-qa-toggle.active:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    box-shadow:
        0 12px 32px rgba(244, 63, 94, 0.5),
        0 6px 16px rgba(225, 29, 72, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px) scale(1.02);
}

/* Make sure active button is still draggable */
#hd-seo-qa-toggle.active {
    cursor: move !important;
    cursor: grab !important;
}

#hd-seo-qa-toggle.active:active,
#hd-seo-qa-toggle.active.hd-seo-qa-toggle-dragging {
    cursor: grabbing !important;
    animation: none;
}

@keyframes pulse-active {
    0%,
    100% {
        box-shadow:
            0 8px 24px rgba(244, 63, 94, 0.4),
            0 4px 12px rgba(225, 29, 72, 0.3),
            0 2px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow:
            0 8px 28px rgba(244, 63, 94, 0.5),
            0 4px 14px rgba(225, 29, 72, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.hd-seo-qa-toggle-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hd-seo-qa-toggle-icon {
    width: 20px;
    height: 20px;
    display: block;
    color: white;
    fill: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hd-seo-qa-toggle-text {
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#hd-seo-qa-toggle:hover .hd-seo-qa-toggle-icon {
    transform: scale(1.1) rotate(5deg);
}

#hd-seo-qa-toggle.active .hd-seo-qa-toggle-icon {
    animation: icon-bounce 1.5s ease-in-out infinite;
}

#hd-seo-qa-toggle.active .hd-seo-qa-toggle-icon-wrapper {
    animation: icon-bounce 1.5s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15) rotate(-10deg);
    }
}

@media (max-width: 640px) {
    .hd-seo-qa-toggle-icon {
        width: 18px;
        height: 18px;
    }

    .hd-seo-qa-toggle-text {
        font-size: 13px;
    }
}

/* Dropdown Menu */
.hd-seo-qa-dropdown {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    z-index: 999999;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.hd-seo-qa-dropdown-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hd-seo-qa-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.hd-seo-qa-dropdown-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    align-items: flex-start;
}

.hd-seo-qa-see-all-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
    flex-shrink: 0;
}

.hd-seo-qa-see-all-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-see-all-btn {
        border-color: #4b5563;
        color: #9ca3af;
    }

    .hd-seo-qa-see-all-btn:hover {
        background: #374151;
        border-color: #6b7280;
        color: #e5e7eb;
    }
}

.hd-seo-qa-dropdown-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.hd-seo-qa-dropdown-total {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: #e5e7eb;
    padding: 4px 10px;
    border-radius: 12px;
}

.hd-seo-qa-dropdown-stats {
    padding: 12px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hd-seo-qa-dropdown-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    background: #f9fafb;
    transition: background 0.2s ease;
}

.hd-seo-qa-dropdown-stat-item:hover {
    background: #f3f4f6;
}

.hd-seo-qa-stat-badge {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 0;
}

.hd-seo-qa-stat-open {
    color: #3b82f6;
}

.hd-seo-qa-stat-in-review {
    color: #eab308;
}

.hd-seo-qa-stat-not-completed {
    color: #ef4444;
}

.hd-seo-qa-stat-closed {
    color: #22c55e;
}

.hd-seo-qa-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hd-seo-qa-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0 20px;
}

.hd-seo-qa-dropdown-action {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    text-align: left;
}

.hd-seo-qa-dropdown-action:hover {
    background: #f3f4f6;
}

.hd-seo-qa-dropdown-action:active {
    background: #e5e7eb;
}

.hd-seo-qa-add-note-btn {
    color: #3b82f6;
    font-weight: 600;
}

.hd-seo-qa-add-note-btn:hover {
    background: #eff6ff;
    color: #2563eb;
}

.hd-seo-qa-dropdown-icon {
    font-size: 18px;
    line-height: 1;
}

/* Dark mode support for dropdown */
@media (prefers-color-scheme: dark) {
    .hd-seo-qa-dropdown {
        background: #1f2937;
        border-color: #374151;
    }

    .hd-seo-qa-dropdown-header {
        background: #111827;
        border-bottom-color: #374151;
    }

    .hd-seo-qa-dropdown-title {
        color: #f9fafb;
    }

    .hd-seo-qa-dropdown-total {
        color: #9ca3af;
        background: #374151;
    }

    .hd-seo-qa-dropdown-stat-item {
        background: #111827;
    }

    .hd-seo-qa-dropdown-stat-item:hover {
        background: #1f2937;
    }

    .hd-seo-qa-stat-label {
        color: #9ca3af;
    }

    .hd-seo-qa-dropdown-divider {
        background: #374151;
    }

    .hd-seo-qa-dropdown-action {
        color: #e5e7eb;
    }

    .hd-seo-qa-dropdown-action:hover {
        background: #374151;
    }

    .hd-seo-qa-dropdown-action:active {
        background: #4b5563;
    }

    .hd-seo-qa-add-note-btn {
        color: #60a5fa;
    }

    .hd-seo-qa-add-note-btn:hover {
        background: #1e3a5f;
        color: #93c5fd;
    }
}

/* QA Mode - Cursor Change */
body.hd-seo-qa-mode {
    cursor: crosshair !important;
}

body.hd-seo-qa-mode * {
    cursor: crosshair !important;
}

/* Exclude modal, toggle button, and pins from crosshair cursor */
body.hd-seo-qa-mode .hd-seo-qa-modal,
body.hd-seo-qa-mode .hd-seo-qa-modal *,
body.hd-seo-qa-mode #hd-seo-qa-toggle,
body.hd-seo-qa-mode #hd-seo-qa-toggle *,
body.hd-seo-qa-mode .hd-seo-qa-pin {
    cursor: default !important;
}

body.hd-seo-qa-mode .hd-seo-qa-modal button,
body.hd-seo-qa-mode .hd-seo-qa-modal input,
body.hd-seo-qa-mode .hd-seo-qa-modal textarea,
body.hd-seo-qa-mode .hd-seo-qa-modal select {
    cursor: pointer !important;
}

body.hd-seo-qa-mode .hd-seo-qa-pin {
    cursor: grab !important;
}

/* Ensure body/html can contain absolutely positioned pins */
html,
body {
    position: relative;
}

/* Pins */
.hd-seo-qa-pin {
    position: absolute !important;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -50%) rotate(-45deg);
    cursor: grab !important;
    z-index: 999997 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease;
    border: 2px solid white;
    user-select: none;
    touch-action: none;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    animation: hd-seo-pin-pulse 2s ease-in-out infinite;
}

/* Pulse animation for pins - creates expanding glow effect */
@keyframes hd-seo-pin-pulse {
    0% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 0 0 var(--pin-pulse-color, rgba(59, 130, 246, 0.6));
    }
    50% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 0 12px var(--pin-pulse-color-fade, rgba(59, 130, 246, 0));
    }
    100% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 0 0 var(--pin-pulse-color-fade, rgba(59, 130, 246, 0));
    }
}

/* Ripple effect using ::before pseudo-element - creates expanding circle */
.hd-seo-qa-pin::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: transparent;
    border: 2px solid var(--pin-color, currentColor);
    opacity: 0;
    animation: hd-seo-pin-ripple 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes hd-seo-pin-ripple {
    0% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(3);
        opacity: 0;
    }
}

.hd-seo-qa-pin:active {
    cursor: grabbing;
}

.hd-seo-qa-pin:hover {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.2);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(59, 130, 246, 0.3);
    z-index: 999999;
    animation: none; /* Stop pulse on hover */
}

.hd-seo-qa-pin:hover::before {
    animation: none; /* Stop ripple on hover */
    opacity: 0;
}

.hd-seo-qa-pin-dragging {
    z-index: 1000000 !important;
    opacity: 0.8;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    cursor: grabbing !important;
    animation: none; /* Stop pulse when dragging */
}

.hd-seo-qa-pin-dragging::before {
    animation: none; /* Stop ripple when dragging */
}

.hd-seo-qa-pin::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Modal */
.hd-seo-qa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-seo-qa-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.hd-seo-qa-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd-seo-qa-modal-show .hd-seo-qa-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Modern Modal Styles */
.hd-seo-qa-modal-modern {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 560px;
    width: 90%;
}

.hd-seo-qa-modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.hd-seo-qa-modal-header-content {
    flex: 1;
}

.hd-seo-qa-modal-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.hd-seo-qa-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.hd-seo-qa-modal-close-modern {
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.hd-seo-qa-modal-close-modern:hover {
    background: #e5e7eb;
    color: #111827;
}

.hd-seo-qa-modal-body-modern {
    padding: 20px 24px;
}

.hd-seo-qa-form-group {
    margin-bottom: 16px;
}

.hd-seo-qa-form-group:last-child {
    margin-bottom: 0;
}

/* Device Type Buttons */
.hd-seo-qa-device-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.hd-seo-qa-device-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.hd-seo-qa-device-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.hd-seo-qa-device-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hd-seo-qa-device-btn.active svg {
    stroke: #ffffff;
}

.hd-seo-qa-device-btn svg {
    stroke: currentColor;
    transition: stroke 0.2s ease;
}

.hd-seo-qa-device-btn span {
    font-size: 13px;
    font-weight: 600;
}

/* Role Buttons (for guest info modal) */
.hd-seo-qa-role-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.hd-seo-qa-role-btn {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.hd-seo-qa-role-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

.hd-seo-qa-role-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Guest Info in Dropdown */
.hd-seo-qa-dropdown-guest-info {
    margin-top: 4px;
}

.hd-seo-qa-guest-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.hd-seo-qa-guest-role {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.hd-seo-qa-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.hd-seo-qa-required {
    color: #ef4444;
    margin-left: 2px;
}

.hd-seo-qa-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hd-seo-qa-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hd-seo-qa-input.hd-seo-qa-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.hd-seo-qa-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    box-sizing: border-box;
}

.hd-seo-qa-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hd-seo-qa-select:hover {
    border-color: #d1d5db;
}

.hd-seo-qa-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #111827;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hd-seo-qa-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hd-seo-qa-textarea.hd-seo-qa-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.hd-seo-qa-file-upload {
    position: relative;
}

.hd-seo-qa-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.hd-seo-qa-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hd-seo-qa-file-label:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.hd-seo-qa-file-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.hd-seo-qa-file-hint {
    font-size: 12px;
    color: #6b7280;
}

.hd-seo-qa-image-preview {
    margin-top: 12px;
    position: relative;
    display: inline-block;
}

.hd-seo-qa-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.hd-seo-qa-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hd-seo-qa-modal-footer-modern {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
}

.hd-seo-qa-cancel-btn-modern {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.hd-seo-qa-cancel-btn-modern:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.hd-seo-qa-submit-btn-modern {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hd-seo-qa-submit-btn-modern:hover:not(:disabled) {
    background: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.hd-seo-qa-submit-btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hd-seo-qa-submit-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .hd-seo-qa-modal-content,
    .hd-seo-qa-modal-modern {
        background: #1f2937;
        color: white;
    }

    .hd-seo-qa-modal-header-modern {
        border-bottom-color: #374151;
    }

    .hd-seo-qa-modal-title {
        color: #f9fafb;
    }

    .hd-seo-qa-modal-subtitle {
        color: #9ca3af;
    }

    .hd-seo-qa-modal-close-modern {
        background: #374151;
        color: #d1d5db;
    }

    .hd-seo-qa-modal-close-modern:hover {
        background: #4b5563;
        color: #f9fafb;
    }

    .hd-seo-qa-label {
        color: #e5e7eb;
    }

    .hd-seo-qa-input {
        background: #111827;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .hd-seo-qa-input:focus {
        border-color: #3b82f6;
    }

    .hd-seo-qa-textarea {
        background: #111827;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .hd-seo-qa-textarea:focus {
        border-color: #3b82f6;
    }

    .hd-seo-qa-role-btn {
        background: #111827;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .hd-seo-qa-role-btn:hover {
        background: #1e3a5f;
        border-color: #3b82f6;
        color: #93c5fd;
    }

    .hd-seo-qa-role-btn.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #ffffff;
    }

    .hd-seo-qa-guest-name {
        color: #f9fafb;
    }

    .hd-seo-qa-guest-role {
        color: #9ca3af;
    }

    .hd-seo-qa-file-label {
        background: #111827;
        border-color: #4b5563;
    }

    .hd-seo-qa-file-label:hover {
        background: #1e3a5f;
        border-color: #3b82f6;
    }

    .hd-seo-qa-file-text {
        color: #e5e7eb;
    }

    .hd-seo-qa-file-hint {
        color: #9ca3af;
    }

    .hd-seo-qa-modal-footer-modern {
        border-top-color: #374151;
    }

    .hd-seo-qa-cancel-btn-modern {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .hd-seo-qa-cancel-btn-modern:hover {
        background: #4b5563;
    }
}

/* Note Details Modal Styles */
.hd-seo-qa-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.hd-seo-qa-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hd-seo-qa-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.hd-seo-qa-author-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-author-name {
        color: #e5e7eb;
    }
}

.hd-seo-qa-date {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-date {
        color: #9ca3af;
    }
}

.hd-seo-qa-message-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-message-content {
        background: #111827;
        border-color: #374151;
        color: #e5e7eb;
        margin: 0;
    }
}

.hd-seo-qa-image-container {
    margin-top: 8px;
}

.hd-seo-qa-detail-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hd-seo-qa-detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-detail-image {
        border-color: #374151;
    }
}

/* Status Select Dropdown */
.hd-seo-qa-status-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.hd-seo-qa-status-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-status-select {
        background: #111827;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .hd-seo-qa-status-select:focus {
        border-color: #3b82f6;
    }
}

/* Delete Button */
.hd-seo-qa-delete-btn-modern {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #ef4444;
    background: #fee2e2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hd-seo-qa-delete-btn-modern:hover {
    background: #fecaca;
    border-color: #dc2626;
    color: #991b1b;
}

.hd-seo-qa-delete-btn-modern:active {
    transform: scale(0.98);
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-delete-btn-modern {
        background: #7f1d1d;
        border-color: #991b1b;
        color: #fecaca;
    }

    .hd-seo-qa-delete-btn-modern:hover {
        background: #991b1b;
        border-color: #dc2626;
        color: #fee2e2;
    }
}

/* Save Status Button */
.hd-seo-qa-save-status-btn-modern {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #3b82f6;
    background: #3b82f6;
    color: white;
}

.hd-seo-qa-save-status-btn-modern:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.hd-seo-qa-save-status-btn-modern:active {
    transform: scale(0.98);
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-save-status-btn-modern {
        background: #1e40af;
        border-color: #1e40af;
    }

    .hd-seo-qa-save-status-btn-modern:hover {
        background: #1e3a8a;
        border-color: #1e3a8a;
    }
}

/* Close Button Modern */
.hd-seo-qa-close-btn-modern {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.hd-seo-qa-close-btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hd-seo-qa-close-btn-modern:hover::before {
    left: 100%;
}

.hd-seo-qa-close-btn-modern:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.hd-seo-qa-close-btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hd-seo-qa-close-btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-close-btn-modern {
        background: #1f2937;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .hd-seo-qa-close-btn-modern::before {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    .hd-seo-qa-close-btn-modern:hover {
        background: #374151;
        border-color: #6b7280;
        color: #f9fafb;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hd-seo-qa-close-btn-modern:focus {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        border-color: #3b82f6;
    }
}

.hd-seo-qa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-modal-header {
        border-bottom-color: #374151;
    }
}

.hd-seo-qa-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.hd-seo-qa-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.hd-seo-qa-modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-modal-close:hover {
        background-color: #374151;
        color: white;
    }
}

.hd-seo-qa-modal-body {
    padding: 20px;
}

.hd-seo-qa-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-modal-footer {
        border-top-color: #374151;
    }
}

.hd-seo-qa-cancel-btn,
.hd-seo-qa-close-btn,
.hd-seo-qa-submit-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.hd-seo-qa-cancel-btn,
.hd-seo-qa-close-btn {
    background-color: #f3f4f6;
    color: #374151;
}

.hd-seo-qa-cancel-btn:hover,
.hd-seo-qa-close-btn:hover {
    background-color: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-cancel-btn,
    .hd-seo-qa-close-btn {
        background-color: #374151;
        color: white;
    }

    .hd-seo-qa-cancel-btn:hover,
    .hd-seo-qa-close-btn:hover {
        background-color: #4b5563;
    }
}

.hd-seo-qa-submit-btn {
    background-color: #3b82f6;
    color: white;
}

.hd-seo-qa-submit-btn:hover {
    background-color: #2563eb;
}

.hd-seo-qa-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Notifications */
.hd-seo-qa-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.hd-seo-qa-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.hd-seo-qa-notification.success {
    background-color: #22c55e;
}

.hd-seo-qa-notification.error {
    background-color: #ef4444;
}

.hd-seo-qa-notification.info {
    background-color: #3b82f6;
}

/* Responsive */
@media (max-width: 640px) {
    #hd-seo-qa-toggle {
        bottom: 16px;
        right: 16px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 14px;
        box-shadow:
            0 6px 20px rgba(102, 126, 234, 0.4),
            0 3px 10px rgba(118, 75, 162, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .hd-seo-qa-modal-content {
        width: 95%;
        margin: 20px;
    }

    .hd-seo-qa-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Element Highlighting - New Approach */
.hd-seo-qa-highlighted {
    position: relative;
    border: 3px solid #3b82f6 !important;
    border-radius: 4px;
    background-color: rgba(59, 130, 246, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s ease;
    cursor: pointer !important;
    z-index: 999996;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hd-seo-qa-highlighted:hover {
    border-color: #2563eb !important;
    background-color: rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}

/* Active highlight when viewing note details */
.hd-seo-qa-highlighted-active {
    border-color: #f59e0b !important;
    background-color: rgba(245, 158, 11, 0.15) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3) !important;
    animation: active-highlight-pulse 2s ease-in-out infinite;
}

@keyframes active-highlight-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.5);
    }
}

/* Temporary highlight when selecting element */
.hd-seo-qa-temp-highlight {
    border: 3px dashed #10b981 !important;
    border-radius: 4px;
    background-color: rgba(16, 185, 129, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
    animation: temp-highlight-pulse 1.5s ease-in-out infinite;
}

@keyframes temp-highlight-pulse {
    0%,
    100% {
        border-color: #10b981;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }
    50% {
        border-color: #059669;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.4);
    }
}

/* Ensure highlighted elements are clickable even in QA mode */
body.hd-seo-qa-mode .hd-seo-qa-highlighted {
    pointer-events: auto !important;
}

/* Ensure pins are visible above content (backward compatibility) */
.hd-seo-qa-pin {
    pointer-events: auto;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Highlighted pin animation */
.hd-seo-qa-pin-highlighted {
    animation: pin-highlight 2s ease-in-out;
    transform: scale(1.3) !important;
    z-index: 999999 !important;
}

@keyframes pin-highlight {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        transform: scale(1.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
        transform: scale(1.4);
    }
}

/* Prevent interaction with page content when in QA mode */
body.hd-seo-qa-mode a,
body.hd-seo-qa-mode button,
body.hd-seo-qa-mode input,
body.hd-seo-qa-mode select,
body.hd-seo-qa-mode textarea {
    pointer-events: none;
}

/* But allow interaction with highlighted elements */
body.hd-seo-qa-mode .hd-seo-qa-highlighted,
body.hd-seo-qa-mode .hd-seo-qa-highlighted * {
    pointer-events: auto !important;
}

body.hd-seo-qa-mode .hd-seo-qa-pin,
body.hd-seo-qa-mode .hd-seo-qa-highlighted,
body.hd-seo-qa-mode #hd-seo-qa-toggle,
body.hd-seo-qa-mode .hd-seo-qa-modal,
body.hd-seo-qa-mode .hd-seo-qa-modal * {
    pointer-events: auto !important;
}

/* All Notes Modal */
.hd-seo-qa-all-notes-modal {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hd-seo-qa-all-notes-body {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.hd-seo-qa-notes-table-container {
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 200px);
}

.hd-seo-qa-notes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hd-seo-qa-notes-table thead {
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 10;
}

.hd-seo-qa-notes-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hd-seo-qa-notes-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: middle;
}

.hd-seo-qa-notes-table tbody tr {
    transition: background 0.2s ease;
}

.hd-seo-qa-notes-table tbody tr:hover {
    background: #f9fafb;
}

.hd-seo-qa-notes-table tbody tr:last-child td {
    border-bottom: none;
}

.hd-seo-qa-table-url a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.hd-seo-qa-table-url a:hover {
    text-decoration: underline;
    color: #2563eb;
}

.hd-seo-qa-table-message {
    max-width: 300px;
    word-wrap: break-word;
}

.hd-seo-qa-table-status {
    white-space: nowrap;
}

.hd-seo-qa-table-date {
    white-space: nowrap;
    color: #6b7280;
    font-size: 13px;
}

.hd-seo-qa-table-actions {
    white-space: nowrap;
}

.hd-seo-qa-view-note-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #3b82f6;
    background: #3b82f6;
    color: white;
}

.hd-seo-qa-view-note-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.hd-seo-qa-loading-state,
.hd-seo-qa-error-state,
.hd-seo-qa-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.hd-seo-qa-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.hd-seo-qa-empty-state {
    color: #9ca3af;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    .hd-seo-qa-notes-table thead {
        background: #111827;
    }

    .hd-seo-qa-notes-table th {
        background: #111827;
        color: #e5e7eb;
        border-bottom-color: #374151;
    }

    .hd-seo-qa-notes-table td {
        color: #e5e7eb;
        border-bottom-color: #374151;
    }

    .hd-seo-qa-notes-table tbody tr:hover {
        background: #1f2937;
    }

    .hd-seo-qa-table-url a {
        color: #60a5fa;
    }

    .hd-seo-qa-table-url a:hover {
        color: #93c5fd;
    }

    .hd-seo-qa-table-date {
        color: #9ca3af;
    }

    .hd-seo-qa-loading-state,
    .hd-seo-qa-error-state,
    .hd-seo-qa-empty-state {
        color: #9ca3af;
    }

    .hd-seo-qa-spinner {
        border-color: #374151;
        border-top-color: #3b82f6;
    }
}

/* Responsive table */
@media (max-width: 768px) {
    .hd-seo-qa-all-notes-modal {
        max-width: 95%;
    }

    .hd-seo-qa-notes-table {
        font-size: 12px;
    }

    .hd-seo-qa-notes-table th,
    .hd-seo-qa-notes-table td {
        padding: 8px 12px;
    }

    .hd-seo-qa-table-message {
        max-width: 200px;
    }
}

/* Drawing Overlay Styles */
.hd-seo-drawing-overlay {
    touch-action: none;
    -webkit-touch-callout: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.1);
}

.hd-seo-drawing-canvas {
    touch-action: none;
    -webkit-touch-callout: none;
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

.hd-seo-drawing-canvas-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 999999;
}

.hd-seo-drawing-canvas-viewport {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    will-change: transform;
}

.hd-seo-drawing-pan-active .hd-seo-drawing-canvas {
    cursor: grab;
}

.hd-seo-drawing-pan-dragging .hd-seo-drawing-canvas {
    cursor: grabbing;
}

.hd-seo-drawing-toolbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 16px;
    align-items: center;
    z-index: 1000000;
}

.hd-seo-drawing-toolbar-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.hd-seo-drawing-toolbar-handle:active {
    cursor: grabbing;
}

@media (max-width: 640px) {
    .hd-seo-drawing-toolbar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
}

.hd-seo-drawing-toolbar-group {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 8px;
    border-right: 1px solid #e5e7eb;
}

.hd-seo-drawing-zoom-group .hd-seo-drawing-zoom {
    width: 120px;
}

.hd-seo-zoom-label {
    font-size: 12px;
    color: #6b7280;
    min-width: 44px;
    text-align: center;
}

.hd-seo-drawing-zoom-reset {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.hd-seo-drawing-zoom-reset:hover {
    background: #f3f4f6;
}

.hd-seo-drawing-toolbar-group:last-child {
    border-right: none;
}

.hd-seo-drawing-tool {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s;
}

.hd-seo-drawing-tool:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.hd-seo-drawing-tool-active {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
}

.hd-seo-drawing-tool-active:hover {
    background: #2563eb;
}

.hd-seo-drawing-color {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
}

.hd-seo-drawing-size,
.hd-seo-drawing-fontsize {
    width: 100px;
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
}

.hd-seo-drawing-size::-webkit-slider-thumb,
.hd-seo-drawing-fontsize::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

.hd-seo-drawing-size::-moz-range-thumb,
.hd-seo-drawing-fontsize::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
}

.hd-seo-fontsize-label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.hd-seo-fontsize-label strong {
    color: #1f2937;
    font-weight: 600;
}

.hd-seo-drawing-undo,
.hd-seo-drawing-clear,
.hd-seo-drawing-delete-text {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s;
}

.hd-seo-drawing-undo:hover,
.hd-seo-drawing-clear:hover,
.hd-seo-drawing-delete-text:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.hd-seo-drawing-finish,
.hd-seo-drawing-finish-viewport,
.hd-seo-drawing-finish-simple,
.hd-seo-drawing-cancel {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hd-seo-drawing-finish,
.hd-seo-drawing-finish-viewport,
.hd-seo-drawing-finish-simple {
    background: #10b981;
    color: white;
}

.hd-seo-drawing-finish:hover,
.hd-seo-drawing-finish-viewport:hover,
.hd-seo-drawing-finish-simple:hover {
    background: #059669;
}

.hd-seo-drawing-finish:disabled,
.hd-seo-drawing-finish-viewport:disabled,
.hd-seo-drawing-finish-simple:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.hd-seo-drawing-finish-simple {
    background: #3b82f6;
}

.hd-seo-drawing-finish-simple:hover {
    background: #2563eb;
}

.hd-seo-drawing-cancel {
    background: #ef4444;
    color: white;
}

.hd-seo-drawing-cancel:hover {
    background: #dc2626;
}

/* Screenshot Thumbnail Styles */
.hd-seo-screenshot-thumbnail {
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.hd-seo-screenshot-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
