/**
 * Bank Statement Processor Disclaimer Modal Styles
 * Blocking overlay that requires user acceptance before tool access
 * Theme: Navy Blue #0D2849 + Gold #CEBA4C
 */

/* When disclaimer is active, blur background slightly and disable ALL scrolling */
body.disclaimer-active {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
}

body.disclaimer-active > *:not(#bsp-disclaimer-overlay) {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

/* Full-screen blocking overlay - semi-transparent so website is visible */
#bsp-disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.disclaimer-modal {
    background: rgb(13, 40, 73);
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(206, 186, 76, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.disclaimer-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(206, 186, 76, 0.3);
    background: linear-gradient(135deg, rgb(8, 30, 55) 0%, rgb(13, 40, 73) 100%);
    border-radius: 12px 12px 0 0;
}

.disclaimer-header h2 {
    margin: 0 0 8px 0;
    color: rgb(206, 186, 76);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: Georgia, 'Times New Roman', serif;
}

.disclaimer-header .version {
    margin: 0;
    color: #888;
    font-size: 0.85rem;
}

.disclaimer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: Georgia, 'Times New Roman', serif;
}

.disclaimer-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(206, 186, 76, 0.2);
}

.disclaimer-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.disclaimer-section.important {
    background: rgba(206, 186, 76, 0.1);
    border: 1px solid rgba(206, 186, 76, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.disclaimer-section.important h3 {
    color: rgb(206, 186, 76);
}

.disclaimer-section h3 {
    color: #f2f2f2;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.disclaimer-section p {
    margin: 0 0 12px 0;
}

.disclaimer-section p:last-child {
    margin-bottom: 0;
}

.disclaimer-section ul {
    margin: 12px 0;
    padding-left: 24px;
}

.disclaimer-section li {
    margin-bottom: 8px;
}

.disclaimer-section strong {
    color: #f2f2f2;
}

.disclaimer-actions {
    padding: 24px 32px;
    border-top: 1px solid rgba(206, 186, 76, 0.3);
    background: rgb(8, 30, 55);
    border-radius: 0 0 12px 12px;
}

.scroll-prompt {
    text-align: center;
    color: rgb(206, 186, 76);
    font-size: 0.9rem;
    margin: 0 0 16px 0;
    padding: 10px;
    background: rgba(206, 186, 76, 0.1);
    border: 1px solid rgba(206, 186, 76, 0.3);
    border-radius: 6px;
    animation: pulse-prompt 1.5s ease-in-out infinite;
}

@keyframes pulse-prompt {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 20px;
}

.checkbox-container.checkbox-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(206, 186, 76, 0.5);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: rgb(206, 186, 76);
    border-color: rgb(206, 186, 76);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: "\2713";
    color: rgb(13, 40, 73);
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.button-row {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.disclaimer-actions .btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: Georgia, 'Times New Roman', serif;
}

.disclaimer-actions .btn-secondary {
    background: transparent;
    border: 1px solid rgba(206, 186, 76, 0.5);
    color: #888;
}

.disclaimer-actions .btn-secondary:hover {
    border-color: rgb(206, 186, 76);
    color: #ccc;
}

.disclaimer-actions .btn-primary {
    background: linear-gradient(135deg, rgb(83, 78, 3), rgb(175, 164, 5));
    color: #f2f2f2;
}

.disclaimer-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(175, 164, 5), rgb(206, 186, 76));
    transform: translateY(-1px);
}

.disclaimer-actions .btn-primary:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Scrollbar styling for the content area */
.disclaimer-content::-webkit-scrollbar {
    width: 8px;
}

.disclaimer-content::-webkit-scrollbar-track {
    background: rgb(13, 40, 73);
}

.disclaimer-content::-webkit-scrollbar-thumb {
    background: rgba(206, 186, 76, 0.4);
    border-radius: 4px;
}

.disclaimer-content::-webkit-scrollbar-thumb:hover {
    background: rgba(206, 186, 76, 0.6);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    #bsp-disclaimer-overlay {
        padding: 10px;
    }

    .disclaimer-modal {
        max-height: 95vh;
    }

    .disclaimer-header,
    .disclaimer-content,
    .disclaimer-actions {
        padding: 16px 20px;
    }

    .disclaimer-header h2 {
        font-size: 1.25rem;
    }

    .button-row {
        flex-direction: column;
    }

    .disclaimer-actions .btn {
        width: 100%;
        text-align: center;
    }
}
