/* ============================================================================
   BOTSAUTO Privacy FAB and Modal - Isolated Styles
   ============================================================================
   These styles are fully isolated and will not affect existing checklist styles.
   ============================================================================ */

/* Privacy FAB Container */
.botsauto-privacy-fab {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #008AD6;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 24px;
    line-height: 1;
    padding: 0;
    margin: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.botsauto-privacy-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.botsauto-privacy-fab:focus {
    outline: 3px solid rgba(0, 138, 214, 0.5);
    outline-offset: 2px;
}

.botsauto-privacy-fab:active {
    transform: translateY(0) scale(0.98);
}

/* Pulse animation on page load (optional) */
.botsauto-privacy-fab.botsauto-privacy-fab-pulse {
    animation: botsauto-privacy-fab-pulse 2s ease-in-out 0.5s;
}

@keyframes botsauto-privacy-fab-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 138, 214, 0.4), 0 4px 12px rgba(0, 138, 214, 0.3);
    }
}

/* Mobile positioning - bottom-right */
@media (max-width: 768px) {
    .botsauto-privacy-fab {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

/* Ensure FAB doesn't overlap with checklist content */
.botsauto-checklist-root {
    position: relative;
}

/* Privacy Modal Overlay */
.botsauto-privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.botsauto-privacy-modal.botsauto-privacy-modal-open {
    opacity: 1;
    visibility: visible;
}

/* Privacy Modal Dialog */
.botsauto-privacy-modal__dialog {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.botsauto-privacy-modal.botsauto-privacy-modal-open .botsauto-privacy-modal__dialog {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.botsauto-privacy-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f9f9f9;
}

.botsauto-privacy-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.botsauto-privacy-modal__title i {
    font-size: 28px;
    color: #008AD6;
}

.botsauto-privacy-modal__close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    outline: none;
}

.botsauto-privacy-modal__close:hover {
    background-color: #e5e5e5;
    color: #333333;
}

.botsauto-privacy-modal__close:focus {
    outline: 3px solid rgba(0, 138, 214, 0.5);
    outline-offset: 2px;
}

/* Modal Body */
.botsauto-privacy-modal__body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    color: #333333;
    line-height: 1.6;
}

.botsauto-privacy-modal__body::-webkit-scrollbar {
    width: 8px;
}

.botsauto-privacy-modal__body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.botsauto-privacy-modal__body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.botsauto-privacy-modal__body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Modal Footer */
.botsauto-privacy-modal__footer {
    padding: 20px 28px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    background-color: #f9f9f9;
}

.botsauto-privacy-modal__close-btn {
    background-color: #008AD6;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.botsauto-privacy-modal__close-btn:hover {
    background-color: #0070a8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 138, 214, 0.3);
}

.botsauto-privacy-modal__close-btn:focus {
    outline: 3px solid rgba(0, 138, 214, 0.5);
    outline-offset: 2px;
}

.botsauto-privacy-modal__close-btn:active {
    transform: translateY(0);
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .botsauto-privacy-modal {
        padding: 10px;
    }

    .botsauto-privacy-modal__dialog {
        max-height: 95vh;
        border-radius: 8px;
    }

    .botsauto-privacy-modal__header {
        padding: 20px;
    }

    .botsauto-privacy-modal__title {
        font-size: 20px;
    }

    .botsauto-privacy-modal__body {
        padding: 20px;
    }

    .botsauto-privacy-modal__footer {
        padding: 16px 20px;
    }

    .botsauto-privacy-modal__close-btn {
        width: 100%;
    }
}

/* Ensure modal content respects admin-set colors */
.botsauto-privacy-modal__body h1,
.botsauto-privacy-modal__body h2,
.botsauto-privacy-modal__body h3,
.botsauto-privacy-modal__body h4,
.botsauto-privacy-modal__body h5,
.botsauto-privacy-modal__body h6 {
    margin-top: 0;
    margin-bottom: 16px;
}

.botsauto-privacy-modal__body p {
    margin-bottom: 16px;
}

.botsauto-privacy-modal__body p:last-child {
    margin-bottom: 0;
}

.botsauto-privacy-modal__body ul,
.botsauto-privacy-modal__body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.botsauto-privacy-modal__body a {
    color: #008AD6;
    text-decoration: underline;
}

.botsauto-privacy-modal__body a:hover {
    color: #0070a8;
}

/* Accessibility: Screen reader only text */
.botsauto-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
