﻿/* --------------------------------------
   Global Styles
-------------------------------------- */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 95vh !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 16px !important;
    background-color: #D8DFE900 !important; /* Light Blue */
    color: #0C131B !important; /* Near Black */
}

#myVideo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100000;
    pointer-events: none;
}

#myVideo2 {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100000;
    pointer-events: none;
}


h1 {
    font-size: calc(1rem + 1vw);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: bold;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-all;
}

/* --------------------------------------
   Top Header
-------------------------------------- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background: linear-gradient(to right, #0079E9, #004994); /* Bright to Deep Blue */
    color: #FFFFFF;
    padding: 0 20px;
    position: relative;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.top-header-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Adjust as needed */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #0079E9, #004994);
    color: #fff;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-left {
    position: relative;
    cursor: pointer;
}

.arrow {
    margin-left: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.user-info {
    padding-top: 0px; /* Adjust the top padding as needed */
    font-size: 0.85rem; /* Smaller font size */
    margin-right: 15px; /* Optional: space between the email and the logout button */
}


    .header-right .login-link {
        color: #fff;
        background: linear-gradient(to right, #0079E9, #004994);
        padding: 8px 16px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: bold;
    }

    .header-right .logout-button {
        color: #fff;
        background: linear-gradient(to right, #0079E9, #004994);
        padding: 8px 16px;
        border-radius: 4px;
        border: none;
        text-decoration: none;
        font-weight: bold;
        cursor: pointer;
    }



/* --------------------------------------
   PaM Dropdown Menu
-------------------------------------- */
.pam-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    color: #0C131B;
    min-width: 250px; /* Minimum width of 250px */
    width: auto; /* Expand as needed */
    border: 1px solid #0079E9 !important;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    padding: 10px;
    z-index: 1000;
}
.add-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #0079E9;
    padding: 5px 0;
    transition: text-decoration 0.2s;
}

    .add-item:hover {
        text-decoration: underline;
    }

.add-icon {
    width: 20px;
    height: 20px;
    /* Optional: adjust margin if needed */
    margin-right: 5px;
}


    .pam-dropdown-menu .dropdown-section {
        margin-bottom: 10px;
    }

    .pam-dropdown-menu .dropdown-title {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .pam-dropdown-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .pam-dropdown-menu li {
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }

        .pam-dropdown-menu li:last-child {
            border-bottom: none;
        }

        .pam-dropdown-menu li.add-item {
            color: #0079E9;
            cursor: pointer;
        }

/* --------------------------------------
   Main Container (3 columns)
-------------------------------------- */
.main-container {
    z-index: 10;
    display: flex;
    height: calc(100vh - 50px);
    transition: all 0.3s ease;
}

.toggle-preview {
    width: 40px; /* Square container */
    height: 40px;
    background-color: #333; /* Dark background for contrast */
    border: none;
    border-radius: 8px; /* Rounded edges */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
    margin: 0 5px;
}

    .toggle-preview:hover {
        background-color: #444;
    }

    /* Flip the image horizontally */
    .toggle-preview img {
        width: 60%;
        height: auto;
        transform: scaleX(-1);
    }

.toggle-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    gap: 10px;
}

    .toggle-buttons button {
        background: linear-gradient(to right, #0079E9, #004994);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        margin: 0 5px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

        .toggle-buttons button:hover {
            transform: scale(1.05);
            opacity: 0.9;
        }

        .toggle-buttons button img {
            filter: brightness(0) invert(1); /* Makes the icon white */
            width: 20px;
            height: 20px;
        }


/* --------------------------------------
   Left Column: Navigation Menu
-------------------------------------- */
.nav-menu {
    width: 20vw;
    background-color: #D8DFE990;
    box-shadow: 2px 0 4px rgba(0,0,0,0.15);
    padding: 20px; /* Increased padding */
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
    border-radius: 8px 0 0 8px;
}


    .nav-menu button {
        background-color: #5A5F6C;
        border: none;
        color: #FFFFFF;
        padding: 10px 12px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 6px;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

        .nav-menu button:hover {
            transform: scale(1.03);
            background-color: #0079E9;
        }

        .nav-menu button:disabled {
            background-color: #B3BAC3;
            color: #0C131B;
            cursor: not-allowed;
            opacity: 0.7;
        }



/* Remove default list styling */
/* Proposal link – default */
.proposal-link {
    position: relative;
    padding-left: 30px; /* Reserve space for the icon */
    font-weight: bold;
    text-decoration: none;
    /* The text color: blue when active by default */
    color: #0079E9;
    /* Custom property for the icon color; default equals blue */
    --icon-color: grey;
}

    /* The icon is rendered using a mask and gets filled by --icon-color */
    .proposal-link::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-color: var(--icon-color);
        -webkit-mask: url('/icons_svg/File_Download.svg') no-repeat center;
        mask: url('/icons_svg/File_Download.svg') no-repeat center;
        mask-size: contain;
    }

/* The container that holds both the scrollable proposal details and the export button */
.proposal-view-container {
    display: flex;
    flex-direction: column;
    height: 90%; /* Takes full height of the parent (ensure parent has defined height) */
    overflow-y: auto;
}

/* In our markup, .proposal-details is used with the .scrollable-content class */
.proposal-details {
    /* Remove fixed height so that .scrollable-content can manage scrolling */
    margin: 20px 0;
}

.proposal-view-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make sure this container has a defined height */
}

.proposal-details.scrollable-content {
    flex: 1;
    overflow-y: auto;
}

/* Make the export button container stick to the bottom */
.export-button-container {
    position: sticky;
    bottom: 0;
    background-color: #fff; /* Matches your container background */
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #B3BAC3;
    z-index: 10;
}


/* Other sub-section and scrollable list styles remain unchanged */
.proposal-details .sub-section {
    margin-bottom: 20px;
    text-align: left;
}

    .proposal-details .sub-section h3 {
        margin-bottom: 10px;
        font-size: 16px;
        color: #0079E9;
        border-bottom: 1px solid #B3BAC3;
        padding-bottom: 5px;
    }

.scrollable-list {
    max-height: 150px; /* Adjust as needed */
    overflow-y: auto;
    padding-right: 10px;
}

    .scrollable-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .scrollable-list ul li {
            padding: 8px;
            border-bottom: 1px solid #eee;
            font-size: 14px;
        }

            .scrollable-list ul li:last-child {
                border-bottom: none;
            }

        .proposal-details .sub-section ul {
            list-style: none;
            margin: 0;
            padding-left: 0;
        }

            .proposal-details .sub-section ul li {
                padding: 8px;
                border-bottom: 1px solid #eee;
                font-size: 14px;
            }

                .proposal-details .sub-section ul li:last-child {
                    border-bottom: none;
                }



                .proposal-details .sub-section ul li:nth-child(odd) {
                    background-color: #ffffff; /* white */
                }

                .proposal-details .sub-section ul li:nth-child(even) {
                    background-color: #f7f7f7; /* light grey */
                }

    .proposal-details .doc-label {
        font-weight: bold;
    }


.documents-link {
    position: relative;
    padding-left: 30px; /* Reserve space for the icon */
    font-weight: bold;
    text-decoration: none;
    /* The text color: blue when active by default */
    color: #0079E9;
    /* Custom property for the icon color; default equals blue */
    --icon-color: grey;
}

    /* The icon is rendered using a mask and gets filled by --icon-color */
    .documents-link::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-color: var(--icon-color);
        -webkit-mask: url('/icons_svg/File_Upload.svg') no-repeat center;
        mask: url('/icons_svg/File_Upload.svg') no-repeat center;
        mask-size: contain;
    }

/* For the proposal sections list items */
.proposal-sections {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .proposal-sections li {
        padding-left: 30px; /* Reserve space for the icon */
        margin-bottom: 5px;
        position: relative;
    }

        /* Use masking on the icon for list items as well */
        .proposal-sections li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background-color: currentColor; /* The icon will be filled with the color set on the li */
            -webkit-mask: url('/icons_svg/File_Document.svg') no-repeat center;
            mask: url('/icons_svg/File_Document.svg') no-repeat center;
            mask-size: contain;
        }

        /* Link text styling */
        .proposal-sections li a {
            color: grey;
            font-weight: bold;
            text-decoration: none;
        }

        /* Active link text color */
        .proposal-sections li.active a {
            color: #0079E9;
        }

        /* Icon colors based on complete/incomplete state */
        /* Here, setting the li’s color will determine the icon’s color, because the mask uses currentColor */

        /* Inactive & incomplete: grey icon */
        .proposal-sections li.inactive.incomplete {
            color: grey;
        }

        /* Active but incomplete: yellow icon */
        .proposal-sections li.active.incomplete {
            color: #d6a93a;
        }

        /* Complete: green icon */
        .proposal-sections li.complete {
            color: green;
        }


/* When inactive, force text to grey */
.proposal-link.inactive {
    color: grey;
}

/* When active but incomplete, icon should be yellow.
   (Text stays blue when active; if you want it to be blue always when active, don’t change the text color) */
.proposal-link.active.incomplete {
    --icon-color: #d6a93a;
}

/* When complete, icon is green (text may remain blue if active, or grey if inactive – up to your design) */
.proposal-link.complete {
    --icon-color: green;
}

/* When inactive, force text to grey */
.documents-link.inactive {
    color: grey;
}

/* When active but incomplete, icon should be yellow.
   (Text stays blue when active; if you want it to be blue always when active, don’t change the text color) */
.documents-link.active.incomplete {
    --icon-color: #d6a93a;
}

/* When complete, icon is green (text may remain blue if active, or grey if inactive – up to your design) */
.documents-link.complete {
    --icon-color: green;
}


        /* Hover effects */
        .proposal-sections li a:hover,
        .proposal-link:hover {
            text-decoration: underline;
        }


/* Container for drop zone and documents list */
/* Container for drop zone and documents list */
.otherDocuments-container {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Space between drop zone and list */
    align-items: flex-start; /* Align items at the top */
    padding-bottom: 10px;
}

.drop-zone-other-documents {
    position: relative;
    width: 160px;
    height: 160px;
    border: 2px dashed rgba(0, 121, 233, 0.4); /* Thin, blue dashed border */
    background: linear-gradient(135deg, #f0f9ff, #e0f0ff); /* Subtle gradient background */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Center the drop zone */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Soft shadow */
}

    .drop-zone-other-documents:hover {
        transform: scale(1.05);
        border-color: rgba(0, 121, 233, 0.8); /* Darker blue on hover */
        background: linear-gradient(135deg, #e0f0ff, #c8e0ff); /* Slightly altered gradient on hover */
    }

    /* Styling for the descriptive text */
    .drop-zone-other-documents .drop-zone-text {
        font-size: 14px;
        color: #0079E9;
        margin-bottom: 10px;
        text-align: center;
        line-height: 1.4;
    }

    /* Styling for the icon */
    .drop-zone-other-documents .drop-zone-icon {
        width: 40px;
        height: auto;
        opacity: 0.8;
    }


/* Documents list on the right */
.otherDocuments {
    flex: 1; /* Fill the remaining horizontal space */
    max-height: 160px; /* Set to match drop zone height or adjust as needed */
    overflow-y: auto; /* Enable vertical scrolling if needed */
    padding: 5px;
}

    .otherDocuments ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        /* Individual document list item styling */
        .otherDocuments ul li {
            padding: 8px 5px;
            border-bottom: 1px solid #eee;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

            /* Remove bottom border for last item */
            .otherDocuments ul li:last-child {
                border-bottom: none;
            }

            /* Styling for document name link */
            .otherDocuments ul li a {
                color: #0079E9;
                text-decoration: none;
                font-weight: bold;
                flex: 1; /* Allow link to take available space */
            }

                /* Hover effect for document name */
                .otherDocuments ul li a:hover {
                    text-decoration: underline;
                }

.file-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}


/* Container for the action links (Edit and Remove) */
.action-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Common style for both action links */
.edit-link,
.remove-link {
    margin-left: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: text-decoration 0.2s ease;
}

/* Specific colors for each action */
.edit-link {
    color: #0079E9; /* Blue for editing */
}

/* Container for the file name edit field and extension */
.file-name-edit-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Style for the uneditable extension text */
.file-extension {
    font-size: 14px;
    color: #666;
    background: #f7f7f7;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}


.remove-link {
    color: red;
}

    /* Hover effects for action links */
    .edit-link:hover,
    .remove-link:hover {
        text-decoration: underline;
    }

/* Alternate background for list items */
.otherDocuments ul li:nth-child(odd) {
    background-color: #ffffff; /* white */
}

.otherDocuments ul li:nth-child(even) {
    background-color: #f7f7f7; /* light grey */
}


/* For non-complete required document items, add a hint of blue */
.required-document-item {
    background: #e7f0fd; /* Light blue hint */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .required-document-item:hover {
        background: #d0e0fc; /* Slightly darker blue on hover */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Completed state styling remains, with a light green background */
    .required-document-item.completed {
        background: #e6f9e6; /* Light green background */
        border: 1px solid #8bc34a;
        padding: 10px 15px;
    }

        /* Adjust the checkmark icon for the completed state */
        .required-document-item.completed .checkmark-icon {
            width: 24px;
            height: 24px;
            background-color: #4dbb6c; /* Dark green */
            -webkit-mask: url('/icons_svg/Check.svg') no-repeat center;
            mask: url('/icons_svg/Check.svg') no-repeat center;
            mask-size: contain;
        }



/* Header for minimized view */
.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Title styling */
.document-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Actions container for minimized view */
.document-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Checkmark icon styling */
.checkmark-icon {
    width: 24px;
    height: 24px;
}

/* Edit button in minimized view */
.edit-button {
    background: none;
    border: 1px solid #0079E9;
    color: #0079E9;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .edit-button:hover {
        background: #0079E9;
        color: #fff;
    }
/* Done button (green) */
.done-button {
    background-color: #4CAF50; /* Green */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

    .done-button:hover {
        background-color: #388E3C; /* Darker green on hover */
        transform: scale(1.05);
    }

/* Save Note button (grey default, blue on hover) */
.save-note-button {
    background-color: #B3BAC3; /* Grey */
    color: #0C131B; /* Near black text */
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

    .save-note-button:hover {
        background-color: #0079E9; /* Blue on hover */
        color: #fff;
        transform: scale(1.05);
    }


/* Ensure labels and inputs maintain spacing */
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group .input-field {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #B3BAC3;
    border-radius: 6px;
}


.save-notes button {
    padding: 5px 10px;
    background-color: #5A5F6C;
    border: none;
    color: #FFF;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .save-notes button:hover {
        background-color: #0079E9;
    }

/* --------------------------------------
   Requirements Uploader
-------------------------------------- */
.upload-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upload-box {
    width: 50%;
    
    border: 1px solid #B3BAC3;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    border-radius: 8px;
}

.upload-header {
    background: linear-gradient(to right, #0079E9, #004994);
    color: #FFFFFF;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.upload-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.upload-item {
    width: 50%; /* same as drop-zone width */
    margin: 0 auto; /* centers the container */
    text-align: center;
}

.upload-item p {
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
    text-align: center;
    margin: 5px 0;
}

.file-name-container {
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
    text-align: center;
    margin: 5px 0;
}


/* Drop zone styles */
.drop-zone {
    width: 160px; /* fixed width */
    height: 160px;
    margin: 0 auto; /* centers the drop zone */
    border: 5px dashed var(--bordercolor);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 20px;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .drop-zone p {
        margin: 0;
        /* Ensure text doesn't push out the layout */
        line-height: 1.2;
    }

    .drop-zone img {
        /* Add some margin so the icon doesn't overlap text */
        margin-top: 10px;
        max-height: 80%;
        max-width: 80%;
    }


    .drop-zone.dragover {
        background-color: #D8DFE9;
        border-color: #0079E9;
    }

    .drop-zone p {
        margin: 0;
        font-size: 16px;
    }

    .drop-zone .file-name {
        position: absolute;
        bottom: 5px;
        right: 10px;
        font-size: 14px;
        color: #333;
    }

/* Submit button */
.submit-button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #5A5F6C;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .submit-button:hover {
        background-color: #0079E9;
    }

/* --------------------------------------
   Requirements Container
-------------------------------------- */
.requirements-container {
    width: 100%;
    height: 50%;
    max-height: 320px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #B3BAC3;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: "Segoe UI", sans-serif;
    margin-top: 20px;
    border-radius: 8px;
    scrollbar-color: #004994 #FFFFFF; /* For Firefox */
    scrollbar-width: thin;
}

    .requirements-container::-webkit-scrollbar {
        width: 12px;
    }

    .requirements-container::-webkit-scrollbar-track {
        background: #FFFFFF;
    }

    .requirements-container::-webkit-scrollbar-thumb {
        background-color: #004994;
        border-radius: 6px;
        border: 3px solid #FFFFFF;
    }

.requirements-summary {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Ensure the container for requirements is relative positioned */
.requirements-list {
    position: relative;
}

/* Acknowledgement popup styling */
.acknowledge-popup {
    position: fixed; /* so it's relative to the viewport */
    background-color: rgba(76, 175, 80, 0.9); /* green background */
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: 1000;
    opacity: 1;
}

.fade-out {
    opacity: 0;
    transform: translate(-50%, -80px) scale(0.5);
}


@keyframes fadeUp {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -30px) scale(0.5);
    }
}


.requirements-list ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.requirements-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Adjust spacing between columns as needed */
}

.requirements-column {
    flex: 1;
}

    .requirements-column h3 {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        font-size: 18px; /* Adjust size as needed */
        margin-bottom: 10px;
        color: #0079E9; /* You can adjust this to match your theme */
    }

/* Optionally, if you want the lists to have the same font as your other content: */
.requirements-list li {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
}


.requirements-dropdown > ul {
    max-height: 150px;
    overflow-y: auto;
}

/* --------------------------------------
   Title Header
-------------------------------------- */
.title-header {
    background: linear-gradient(to right, #546D90, #546d90);
    color: #e5f0ff;
    font-size: 24px;
    font-weight: bold;
    text-align: center; /* Centers the text horizontally */
    width: 100%;
    border: 1px solid #B3BAC3;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 15px; /* Slightly larger padding */
}


.placeholder-message {
    font-size: 32px; /* Makes the text larger */
    text-align: center; /* Centers the text */
    padding: 20px 0; /* Adds vertical spacing */
}

/* --------------------------------------
   Middle Column: Page Content + Ask PaM
-------------------------------------- */
.page-content {
    width: 50vw;
    height: 100%; /* Fill vertical space */
    display: flex;
    flex-direction: column;
    background-color: #D8DFE9AA;
    border-radius: 8px;
    padding: 0;
    box-sizing: border-box;
    transition: width 0.2s ease;
}

.page-section {
    page-break-after: always;
}

.required {
    color: red;
    font-weight: bold;
    margin-left: 5px;
    font-size: 1em;
}


/* Page view area */
.page-view {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #FFFFFFAA;
    border-bottom: 1px solid #B3BAC3;
    border-radius: 0 0 5px 10px; /* you can adjust corners if desired */
}

/* Landing Panel Container */
.landing-actions {
    background-color: #FFFFFF;
    border: 1px solid #B3BAC3;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

    /* Headings */
    .landing-actions h2 {
        margin-top: 0;
        color: #0079E9;
    }


/* Scrollable container below header */
.landing-scroll-container {
    /* The top-header is 50px high, so subtract that from 100vh */
    height: calc(100vh - 50px);
    overflow-y: auto;
    margin-top: 50px; /* so content doesn't hide behind the fixed header */
}

/* Main landing content area */
.landing-container {
    width: 50vw; /* or 75vw, adjust as needed */
    margin: 0 auto; /* center horizontally */
    display: flex;
    flex-direction: column;
    gap: 40px; /* space between sections */
    padding: 20px 0;
}

/* Hero/Intro section styling */
.landing-hero {
    max-width: 800px;
    justify-content: center;
    text-align: left;
    margin: 40px 0;
}

.cta-box {
    justify-content: right;
    text-align: right;
    margin-top: 20px;
}

.demo-button {
    background: linear-gradient(to right, #0079E9, #004994);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

/* Feature Section Layout */
.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* space between text/media */
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap; /* allows wrap on smaller screens */
}

/* Each side: text or media */
.feature-text {
    flex: 1;
    min-width: 300px; /* ensures text doesn't get too narrow */
}

.feature-media {
    flex: 1;
    min-width: 300px; /* ensures media doesn't get too narrow */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .feature-media img {
        max-width: 100%;
        height: auto;
        border-radius: 8px; /* optional rounding for images */
    }

/* Alternate Left/Right ordering */
.feature-left .feature-text {
    order: 1;
}

.feature-left .feature-media {
    order: 2;
}

.feature-right .feature-media {
    order: 1;
}

.feature-right .feature-text {
    order: 2;
}

/* Footer styling */
.landing-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ccc;
}

/* Example styling for placeholders if you don't have images yet */
.media-box {
    width: 200px;
    height: 200px;
    background-color: #ddd;
    border-radius: 8px;
    margin: 10px;
}



.existing-grants {
    
    margin: 20px 0;
}

    .existing-grants h3 {
        margin-bottom: 10px;
        font-size: 16px;
        color: #0C131B;
    }

/* Container for all organization sections */
.organization-grants {
    margin: 20px 0;
}

/* Individual organization section styling */
.organization-section {
    background-color: #f7f7f7; /* Light grey background */
    border: 1px solid #B3BAC3;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}
    /* Organization heading style with icon */
    .organization-section h3 {
        font-size: 1.2rem;
        color: #0079E9;
        margin-bottom: 10px;
        font-weight: bold;
        position: relative;
        padding-left: 30px; /* Leave space for the icon */
    }

        .organization-section h3::before {
            content: "";
            display: inline-block;
            width: 20px;
            height: 20px;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            background-color: currentColor; /* Uses the same color as the heading */
            -webkit-mask: url('/icons_svg/Users_Group.svg') no-repeat center;
            mask: url('/icons_svg/Users_Group.svg') no-repeat center;
            mask-size: contain;
        }



    /* Style for the no grants message */
    .organization-section p {
        font-style: italic;
        color: #666;
        margin: 5px 0;
    }

/* Scrollable list for existing grants */
.grants-list {
    max-height: 200px; /* Adjust as needed */
    overflow-y: auto;
    border-top: 1px solid #B3BAC3;
    padding-top: 10px;

}

/* Each grant item */
.grant-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: left;
}

    .grant-item a {
        text-decoration: none;
        color: #0079E9;
        font-weight: bold;
        transition: text-decoration 0.2s ease;
    }

        .grant-item a:hover {
            text-decoration: underline;
        }

/* Icon for each grant item */
.grant-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-color: #0079E9; /* Icon will be filled with the parent's text color */
    -webkit-mask: url('/icons_svg/Notebook.svg') no-repeat center;
    mask: url('/icons_svg/Notebook.svg') no-repeat center;
    mask-size: contain;
}


/* Actions Buttons Container */
.actions-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Button styling */
.action-button {
    padding: 10px 15px;
    background-color: #0079E9;
    border: none;
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .action-button:hover {
        background-color: #005fa3;
    }

/* Button icons */
.button-icon {
    width: 20px;
    height: 20px;
    /* Force the icon to be white */
    filter: brightness(0) invert(1);
}

/* Progress Bars */
.progress-bar-container {
    width: 300px;
    height: 20px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #0079E9;
    transition: width 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-text {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}




/* Ask PaM area */
.ask-pam {
    height: 100px;
    padding: 10px;
    background-color: #D8DFE950;
    display: flex;
    align-items: center;
    border-radius: 0 0 8px 8px;
    border-top: none;
    border: 1px solid #B3BAC325;
}

    .ask-pam input[type="text"] {
        flex: 1;
        padding: 8px;
        margin-right: 10px;
        border: 1px solid #B3BAC3;
        border-radius: 6px;
    }

    .ask-pam button {
        height: 36px;
        background-color: #5A5F6C;
        border: none;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 6px;
        transition: transform 0.2s ease, background-color 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .ask-pam button:disabled {
            background-color: #B3BAC3;
            color: #0C131B;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .ask-pam button:hover {
            transform: scale(1.03);
            background-color: #0079E9;
        }

/* --------------------------------------
   Right Column: Document Preview
-------------------------------------- */
.document-preview {
    width: 100%;
    height: 100%; /* Fill vertical space */
    display: flex;
    flex-direction: column;
    background-color: #D8DFE990;
    border-left: 1px solid #0079E9;
    padding: 10px;
    border-radius: 0 8px 8px 0;
    box-sizing: border-box;
    transition: width 0.2s ease;
}

.preview-scroll {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #FFFFFF;
    border: 1px solid #B3BAC3;
    border-radius: 6px;
}

.document-preview p {
    margin: 0;
    padding: 5px;
}

/* Export button */
.export-button {
    min-width: 200px;
    height: 40px;
    margin: 10px;
    background-color: #5A5F6C;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .export-button:hover {
        transform: scale(1.05);
        background-color: #0079E9;
    }

/* --------------------------------------
   Section Toggle
-------------------------------------- */
.section {
    display: none;
}

    .section.active {
        display: block;
    }

/* --------------------------------------
   Form Fields & Buttons
-------------------------------------- */
.input-field {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #B3BAC3;
    background-color: #FFFFFF;
    font-size: 14px;
    font-family: 'Roboto', sans-serif; /* Modern, readable font */
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .input-field:focus {
        border-color: #0079E9;
        box-shadow: 0 0 5px rgba(0,121,233,0.3);
        outline: none;
    }

.input-group {
    margin-bottom: 10px;
}

    .input-group label {
        display: block;
        margin-bottom: 2px;
        font-weight: bold;
    }

.generate-button {
    background-color: #5A5F6C;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 6px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .generate-button:disabled {
        background-color: #B3BAC3;
        color: #0C131B;
        cursor: not-allowed;
        opacity: 0.7;
    }

    .generate-button:hover {
        transform: scale(1.05);
        background-color: #0079E9;
    }

/* Generated content */
.generated-content {
    max-width: 1200px;
    padding: 1.25rem;
    border: 1px solid #B3BAC3;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: "Segoe UI", sans-serif;
    font-size: 1rem;
    margin-top: 1.25rem;
    border-radius: 8px;
}

.validation-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

.scale-fit {
    transform: scale(calc(((var(--doc-preview-width) - 20px) / 1200)));
    transform-origin: top left;
}




/* Hover effects for buttons */
.ask-pam button:hover,
.generate-button:hover,
.export-button:hover {
    transform: scale(1.05);
    background-color: #0079E9;
}

.ask-pam-container {
    background-color: transparent;
    position: relative;
}

/* Popup styled to appear above the ask-pam input */
.ask-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    left: auto;
    height: 60vh;
    width: 35vw;
    background-color: #FFFFFF;
    border: 2px solid #B3BAC3 !important;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    margin-bottom: -15px;
    z-index: 100;
    display: flex; /* Use flex layout */
    flex-direction: column; /* Arrange header and body vertically */
}

    .ask-popup .popup-close {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: white;
    }


    .ask-popup .popup-header {
        height: 40px; /* Fixed height for header */
        padding: 10px;
        background: linear-gradient(to right, #546D90, #546d90);
        color: white;
        border-bottom: 1px solid #B3BAC3;
        position: relative;
        flex-shrink: 0; /* Prevent header from shrinking */
        display: flex; /* Enable flex layout */
        justify-content: space-between; /* Push items to edges */
        align-items: center; /* Vertically center items */
    }


.popup-body {
    padding: 10px;
    overflow-y: auto; /* Enable vertical scrolling */
    flex: 1; /* Take up remaining space */
    box-sizing: border-box;
}

/* Chat bubble styling for user messages */
.chat-bubble-user {
    background-color: #2f3d50;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 16px;
    margin: 10px 0;
    max-width: 80%;
    text-align: right;
    margin-left: auto;
}

/* Chat bubble styling for responses */
.chat-bubble {
    background-color: #0079E9;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 16px;
    margin: 10px 0;
    max-width: 80%;
    text-align: left;
    margin-right: auto;
}



.rewrite-popup {
    background-color: #FFFFFF;
    border: 1px solid #B3BAC3;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* --------------------------------------
   Org Modal
-------------------------------------- */
.org-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.org-modal-content {
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #B3BAC3;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    width: 30vw;
    max-width: 500px;
}

.org-input-field {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #B3BAC3;
    background-color: #FFFFFF;
    font-size: 14px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .org-input-field:focus {
        border-color: #0079E9;
        box-shadow: 0 0 5px rgba(0,121,233,0.3);
        outline: none;
    }

.org-btn-container {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.org-modal-cancel-btn,
.org-modal-save-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.org-modal-cancel-btn {
    background-color: #B3BAC3;
    color: #0C131B;
}

.org-modal-save-btn {
    background-color: #5A5F6C;
    color: #FFFFFF;
}

    .org-modal-save-btn:disabled {
        background-color: #ddd;
        color: #999;
        cursor: not-allowed;
    }
/* --------------------------------------
   Grant Modal
-------------------------------------- */
.grant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.grant-modal-content {
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #B3BAC3;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    width: 30vw;
    max-width: 400px;
}

    /* Modal Header Styling for Grant and Organization Popups */
    .grant-modal-content h3,
    .org-modal-content h3 {
        background: linear-gradient(to right, #0079E9, #004994);
        color: #fff;
        padding: 10px;
        margin: 0 0 15px 0;
        font-size: 20px;
        text-align: center;
        border-radius: 8px 8px 0 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

.grant-input-field {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #B3BAC3;
    background-color: #FFFFFF;
    font-size: 14px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .grant-input-field:focus {
        border-color: #0079E9;
        box-shadow: 0 0 5px rgba(0,121,233,0.3);
        outline: none;
    }

/* Button Container for Grant Modal */
.grant-btn-container {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container for Cancel and Save buttons */
.grant-action-buttons {
    display: flex;
    gap: 10px;
}

/* Cancel and Save Button Styling */
.grant-modal-cancel-btn,
.grant-modal-save-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.grant-modal-cancel-btn {
    background-color: #B3BAC3;
    color: #0C131B;
}

.grant-modal-save-btn {
    background-color: #5A5F6C;
    color: #FFFFFF;
}

    .grant-modal-save-btn:disabled {
        background-color: #ddd;
        color: #999;
        cursor: not-allowed;
    }

/* Remove Button Styling (Red) */
.grant-modal-remove-btn {
    background: linear-gradient(to right, #ff4d4d, #cc0000);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .grant-modal-remove-btn:hover {
        background: linear-gradient(to right, #e60000, #990000);
    }



/* --------------------------------------
   Timeline View
-------------------------------------- */
/* Timeline Modal Popup */
.timeline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.timeline-modal-content {
    position: relative;
    background-color: #FFFFFF;
    padding: 20px;
    width: 85vw;
    height: 60vh;
    border: 1px solid #B3BAC3;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header (styled like top header) */
.timeline-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background: linear-gradient(to right, #0079E9, #004994);
    color: #FFFFFF;
    padding: 0 20px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .timeline-modal-header span {
        font-size: 18px;
        font-weight: bold;
    }

/* Close Button */
.timeline-modal-content .popup-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #FFFFFF;
    z-index: 101;
}

/* Timeline Table */
.timeline-table {
    display: grid;
    grid-template-columns: 200px auto;
    /* Use auto for header rows; rows for grants will be fixed via each row's styling */
    flex: 1;
    overflow-y: auto; /* Vertical scrolling */
    overflow-x: auto; /* Horizontal scrolling for timeline rows if needed */
    position: relative;
}

/* Sticky Header & Dates */
.timeline-header-label {
    position: sticky;
    top: 0;
    left: 0;
    background: #D8DFE9;
    z-index: 2;
    border-bottom: 1px solid #B3BAC3;
    border-right: 1px solid #B3BAC3;
    padding: 8px;
    font-weight: bold;
    /* Height for header left cell can be independent */
    min-height: 50px;
    display: flex;
    align-items: center;
}

.timeline-header-dates {
    display: grid;
    grid-gap: 1px;
    background-color: #B3BAC3;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #B3BAC3;
    padding: 4px;
    height: 40px; /* Force single line height */
    line-height: 40px; /* Align text vertically */
    font-size: 0.8rem;
}

/* Each Date Cell - Base Styles */
.date-cell {
    text-align: center;
    font-size: 0.8rem;
    min-width: 50px;
    height: 40px;
    line-height: 40px;
    border-right: 1px solid #B3BAC3;
    border-bottom: 1px solid #B3BAC3;
    /* Remove padding to let the gradient fill the cell nicely */
    padding: 0;
}

/* Alternating Backgrounds for Date Cells */
.timeline-header-dates .date-cell:nth-child(odd) {
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff); /* subtle light blue gradient */
}

.timeline-header-dates .date-cell:nth-child(even) {
    background: linear-gradient(135deg, #e6f7ff, #d0efff); /* a slightly different light blue gradient */
}


/* Each Grant's Timeline Row - fixed height 300px */
.timeline-row {
    display: grid;
    grid-gap: 1px;
    background-color: #F0F0F0;
    border-bottom: 1px solid #B3BAC3;
    position: relative;
    cursor: grab;
    height: 200px;
   
    align-items: center;
}

/* Left Label Cell for each Grant */
.timeline-label-cell {
    position: sticky;
    left: 0;
    background: #FFFFFF;
    z-index: 1;
    border-bottom: 1px solid #B3BAC3;
    border-right: 1px solid #B3BAC3;
    height: 200px; /* Fixed height to match timeline row */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Timeline Bar (within timeline row) */
.timeline-bar {
    background: linear-gradient(to right, #0079E9, #004994);
    border: 1px solid #004994;
    border-radius: 4px;
    margin: 4px 0;
    /* Fill the height with a little margin */
    height: calc(100%);
}


/* Prevent text selection during timeline drag */
.timeline-table,
.timeline-label-cell,
.timeline-label-cell a {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}



/* --------------------------------------
   PDF Viewer
-------------------------------------- */



.pdf-modal-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    .pdf-modal-content h3 {
        margin-top: 0;
        text-align: center;
    }

/* Container that makes the canvas scrollable */
.pdf-scroll-container {
    flex: 1;
    overflow: auto;
}

    /* Optional: Style the canvas to ensure it displays properly */
    .pdf-scroll-container canvas {
        display: block;
        margin: 0 auto;
    }

.pdf-modal-content h2.title-header {
    position: relative; /* Allows absolute positioning of child elements */
    padding-right: 40px; /* Makes room for the close button */
    margin: 0; /* Adjust as needed */
    text-align: center;
}

.pdf-modal-content .popup-close {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 101;
}

.pdf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

    .pdf-pagination button {
        padding: 5px 10px;
        background-color: #5A5F6C;
        border: none;
        color: #FFFFFF;
        font-size: 14px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .pdf-pagination button:disabled {
            background-color: #B3BAC3;
            cursor: not-allowed;
        }

    .pdf-pagination span {
        font-size: 14px;
        color: #0C131B;
    }


/* --------------------------------------
   Docx Viewer
-------------------------------------- */



.docx-modal-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    .docx-modal-content h2.title-header {
        position: relative;
        padding-right: 40px;
        margin: 0;
        text-align: center;
    }

    .docx-modal-content .popup-close {
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        z-index: 101;
    }

.docx-scroll-container {
    flex: 1;
    overflow-y: auto;
}

/* --------------------------------------
   Txt and Image Viewers
-------------------------------------- */

/* Content container for TXT modal */
.txt-modal-content,
.image-modal-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

    /* Title header styling */
    .txt-modal-content h2.title-header,
    .image-modal-content h2.title-header {
        position: relative;
        padding-right: 40px;
        margin: 0;
        text-align: center;
    }

    /* Close button */
    .txt-modal-content .popup-close,
    .image-modal-content .popup-close {
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
        z-index: 101;
    }

/* Scrollable container for TXT */
.txt-scroll-container {
    flex: 1;
    overflow-y: auto;
}

    /* For TXT: style the pre element */
    .txt-scroll-container pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }

/* Scrollable container for Images */
.image-scroll-container {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .image-scroll-container img {
        max-width: 100%;
        max-height: 100%;
    }
