/* OCR Triage Banner Styles for .NET WebForms */

/* Top Banner Styles */
.ocr-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ocr-banner.hidden {
    transform: translateY(-100%);
}

.ocr-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.ocr-banner-text {
    flex: 1;
}

.ocr-banner-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #ffffff;
}

.ocr-banner-subtitle {
    font-size: 13px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.ocr-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ocr-banner-cta {
    background: #ffffff;
    color: #007bff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ocr-banner-cta:hover {
    background: #f8f9fa;
    color: #0056b3;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ocr-banner-dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocr-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Body padding adjustment when banner is visible */
body.ocr-banner-visible {
    padding-top: 60px;
}

/* Sidebar CTA Styles - Adapted for .NET WebForms Structure */
.ocr-sidebar-cta {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 6px;
    margin: 8px 0;
    position: relative;
    overflow: hidden;
}

.ocr-sidebar-cta::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;
}

.ocr-sidebar-cta:hover::before {
    left: 100%;
}

.ocr-sidebar-cta a {
    color: white !important;
    padding: 12px 16px;
    display: block;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.ocr-sidebar-cta a:hover {
    color: white !important;
    text-decoration: none;
}

.ocr-sidebar-cta a i {
    margin-right: 8px;
    font-size: 16px;
}

.ocr-sidebar-highlight {
    position: relative;
}

.ocr-sidebar-highlight::after {
    content: 'NEW';
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    line-height: 1;
}

/* Modal Styles - Bootstrap Compatible */
.ocr-modal .modal-dialog {
    max-width: 700px;
}

.ocr-modal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom: none;
    padding: 20px 30px 15px;
}

.ocr-modal .modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.ocr-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 28px;
    text-shadow: none;
}

.ocr-modal .modal-header .close:hover {
    opacity: 1;
}

.ocr-modal .modal-body {
    padding: 30px;
}

.ocr-modal-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.ocr-modal-text {
    flex: 1;
}

.ocr-modal-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #495057;
}

.ocr-modal-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ocr-modal-benefits li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.ocr-modal-benefits li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ocr-modal-media {
    width: 280px;
    flex-shrink: 0;
}

.ocr-demo-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ocr-demo-placeholder {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

.ocr-demo-caption {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    font-style: italic;
}

.ocr-modal .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

.ocr-modal-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-ocr-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-ocr-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-ocr-secondary {
    background: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-ocr-secondary:hover {
    background: #6c757d;
    color: white;
}

/* Tooltip Styles */
.ocr-tooltip {
    position: relative;
}

.ocr-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
    margin-bottom: 8px;
}

.ocr-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
    margin-bottom: 3px;
}

.ocr-tooltip:hover::after,
.ocr-tooltip:hover::before {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ocr-banner {
        padding: 10px 15px;
    }

    .ocr-banner-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .ocr-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .ocr-modal-content {
        flex-direction: column;
        gap: 20px;
    }

    .ocr-modal-media {
        width: 100%;
    }

    body.ocr-banner-visible {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .ocr-banner-title {
        font-size: 14px;
    }

    .ocr-banner-subtitle {
        font-size: 12px;
    }

    .ocr-banner-cta {
        padding: 6px 12px;
        font-size: 13px;
    }

    .ocr-modal .modal-body {
        padding: 20px;
    }

    .ocr-modal .modal-header {
        padding: 15px 20px;
    }

    .ocr-modal .modal-title {
        font-size: 20px;
    }
}

/* Animation keyframes */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.ocr-banner.animate-in {
    animation: slideDown 0.3s ease-out;
}