/**
 * Agreement Modal Styles
 * Styles for scrollable legal agreement modals on registration page
 */

/* Modal sizing for better readability */
.agreement-modal .modal-dialog {
    max-width: 700px;
}

.agreement-modal .modal-body {
    padding: 0;
}

/* Scrollable content container */
.agreement-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin: 1rem;
    background-color: #fafafa;
}

/* Custom scrollbar */
.agreement-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.agreement-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.agreement-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.agreement-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Focus style for accessibility */
.agreement-scroll-container:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Markdown content styling */
.agreement-content h1,
.agreement-content h2,
.agreement-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.agreement-content h1 {
    font-size: 1.5rem;
}

.agreement-content h2 {
    font-size: 1.25rem;
}

.agreement-content h3 {
    font-size: 1.1rem;
}

.agreement-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.agreement-content ul,
.agreement-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.agreement-content li {
    margin-bottom: 0.25rem;
}

/* Progress bar container */
.scroll-progress-container {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.scroll-progress {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    background-color: #198754;
    transition: width 0.1s ease-out;
}

/* Scroll hint */
.scroll-hint {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Modal footer styling */
.agreement-modal .modal-footer {
    justify-content: space-between;
    padding: 1rem;
}

/* Effective date badge */
.effective-date-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .agreement-scroll-container {
        max-height: 300px;
        padding: 1rem;
        margin: 0.5rem;
    }

    .agreement-modal .modal-dialog {
        margin: 0.5rem;
    }
}

/* Animation for fully read indicator */
.scroll-hint.text-success {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
