

/* Document Viewer Enhancements */
.document-viewer-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.document-iframe {
    transition: opacity 0.3s ease-in-out;
}

.download-info {
    text-align: center;
    padding: 2rem;
}

.document-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.download-info h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

.download-info p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.download-btn, .open-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .download-btn:hover, .open-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
        text-decoration: none;
    }

    .download-btn i, .open-btn i {
        font-size: 1rem;
    }

/* Responsive adjustments for download option */
@@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn, .open-btn {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .download-info {
        padding: 1.5rem;
    }

    .document-icon {
        font-size: 3rem;
    }
    /* Text file responsive adjustments */
    .text-file-content {
        padding: 1rem;
        min-height: 300px;
        max-height: 60vh;
    }

    .text-file-wrapper {
        max-height: calc(60vh - 4rem) !important;
        padding: 1rem !important;
        font-size: 0.85rem !important;
    }
}

@@media (max-width: 480px) {
    .text-file-content {
        padding: 0.75rem;
        min-height: 250px;
        max-height: 50vh;
    }

    .text-file-wrapper {
        max-height: calc(50vh - 3rem) !important;
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
    }
        /* Smaller scrollbar on mobile */
        .text-file-wrapper::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .text-file-wrapper::-webkit-scrollbar-thumb {
            border: 1px solid #f1f3f4;
        }
}

#noticeModal .modal-dialog {
    transition: all 0.3s ease-in-out;
    transform: scale(0.9);
    opacity: 0;
}

#noticeModal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

#noticeModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
}

#noticeModal .modal-header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: #dc3545;
    color: white;
    border-bottom: none;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
}

#noticeModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#noticeModal .close {
    color: white;
    /* opacity: 0.8; */
    font-size: 1.5rem;
    transition: opacity 0.2s ease;
}

    #noticeModal .close:hover {
        opacity: 1;
        color: blue;
    }

/* Text Content Styling */
.notice-text-content {
    padding: 30px;
    /* text-align: center; */
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.notice-text-wrapper {
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333;
}

/* Text File Specific Styles with Scrollbar */
.text-file-content {
    padding: 1.5rem;
    min-height: 400px;
    max-height: 70vh;
    align-items: stretch;
}

.text-file-wrapper {
    text-align: left !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    max-height: calc(70vh - 6rem) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    resize: none !important;
}

    /* Custom Scrollbar Styling */
    .text-file-wrapper::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }

    .text-file-wrapper::-webkit-scrollbar-track {
        background: #f1f3f4;
        border-radius: 6px;
        margin: 4px;
    }

    .text-file-wrapper::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 6px;
        border: 2px solid #f1f3f4;
        transition: all 0.3s ease;
    }

        .text-file-wrapper::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
            border-color: #e9ecef;
        }

    .text-file-wrapper::-webkit-scrollbar-corner {
        background: #f1f3f4;
    }

/* Firefox Scrollbar */
.text-file-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f3f4;
}

    /* Focus state for text file */
    .text-file-wrapper:focus {
        outline: 3px solid rgba(102, 126, 234, 0.3) !important;
        outline-offset: 2px !important;
        border-color: #667eea !important;
    }

    /* Text file hover effect */
    .text-file-wrapper:hover {
        transform: none !important;
        border-color: #667eea !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    }

/* Canvas Container Styling */
.notice-canvas-container {
    position: relative;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    /* padding: 20px; */
}

.notice-canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

/* .notice-canvas:hover {
                    transform: scale(1.02);
                } */

/* Loading Spinner */
.notice-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.notice-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@@media (max-width: 768px) {
    #noticeModal .modal-dialog {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }

    .notice-text-content {
        padding: 20px;
    }

    .notice-canvas-container {
        /* max-height: 60vh; */
        /* padding: 15px; */
    }
}

@@media (max-width: 576px) {
    #noticeModal .modal-header {
        padding: 15px 20px;
    }

    #noticeModal .modal-title {
        font-size: 1.1rem;
    }

    .notice-text-content {
        padding: 15px;
    }
}

/* Accessibility Enhancements */
#noticeModal:focus {
    outline: none;
}

/* .notice-text-wrapper:focus,
                .notice-canvas:focus {
                    outline: 2px solid #667eea;
                    outline-offset: 2px;
                } */

/* Error State */
.notice-error {
    padding: 30px;
    text-align: center;
    color: #dc3545;
}

.notice-error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}


