#blazor-error-ui {
    background: #E0E37B; /* Updated background color */
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #00566F; /* Updated background color */
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Logo Styling */
img[alt="Logo"] {
    display: block;
    margin: 0 auto;
    max-width: 250px;
    width: 100%;
    padding-top: 10px;
}

.decrypting {
    display: block;
    margin: 0 auto;
    max-width: 250px;
    width: 100%;
    padding-top: 10px;
}

/* Button Styling */
.btn-grey {
    background-color: grey;
    color: black;
}

    .btn-grey:hover, .btn-grey:focus {
        background-color: gold;
        color: white;
    }

.email-list {
    width: 400px;
    max-height: 420px;
    height: 420px;
    max-width: 400px;
    margin-top: 50px;
}

.email-content-display {
    width: 500px;
    max-width: 600px;
}

/* Flex container refinement */
.flex-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* Ensure sufficient spacing for messages */
.alert {
    margin-bottom: 20px;
}

/* Styling for search box */
.form-group {
    margin-bottom: 20px;
}

/* Styling for Email display */
.email-content-display {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
}

.custom-card-border {
    border-color: #00566F;
    padding: 10px;
}

.email-list {
    min-width: 200px;
    max-width: 600px;
    width: 100%; /* Take up the full width of its parent */
    max-height: 550px;
    overflow-y: auto;
    margin-right: 0px;
}

.attachment-list {
    min-width: 200px;
    max-width: 800px;
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    margin-right: 0px;
}

.selected-attachment {
    background-color: #E0E37B;
}

.attachment-list-item {
    cursor: pointer;
}

.attachment-info {
    flex: 1;
}



.email-content-display {
    width: 600px;
    min-width: 600px;
}

.email-content {
    max-height: 700px;
    overflow-y: auto;
    min-width: 600px;
}

.email-content-iframe {
    width: 100%;
    height: 630px;
    border: 1px solid #ccc;
}
/* Making the email list fill the height and scrollable */
.email-list {
    height: 100vh;
    overflow-y: auto;
}

    /* Styling the scrollbar for Chrome, Safari, etc. */
    .email-list::-webkit-scrollbar {
        width: 10px;
    }

    .email-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .email-list::-webkit-scrollbar-thumb {
        background: #888;
    }

        .email-list::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* Styling the scrollbar for Firefox */
.email-list {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.selected-email {
    background-color: #E0E37B; /* A light gray, you can adjust this */
}

.attachments-section {
    padding: 10px;
    max-height: 300px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

    .attachments-section h4 {
        display: flex;
        align-items: center;
    }

        .attachments-section h4 i {
            margin-right: 8px;
        }

    .attachments-section ul {
        list-style-type: none;
        padding-left: 0;
    }

    .attachments-section li {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

        .attachments-section li i {
            margin-right: 6px;
        }

.btn-blue {
    background-color: #E0E37B;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

    .btn-blue:hover {
        background-color: #E0E37B;
    }

.list-blue .list-group-item {
    background-color: #e8f0fe;
}

    .list-blue .list-group-item:hover {
        background-color: #E0E37B;
    }

    .list-blue .list-group-item.active {
        background-color: #00566F;
        color: #fff;
    }

div.mb-2 > button.btn-yellow {
    background-color: #E0E37B;
    color: #000; /* Assuming black text on this yellow background for readability */
    border: none;
    transition: background-color 0.3s ease;
}

    div.mb-2 > button.btn-yellow:hover {
        background-color: #C1C365; /* A slightly darker shade of yellow for hover */
    }

div.mb-2 > button.btn-red {
    background-color: #00566F;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

    div.mb-2 > button.btn-red:hover {
        background-color: #E0E37B !important; /* A slightly darker shade of red for hover */
    }

.btn-teal {
    background-color: #00566F !important;
    color: #fff !important; /* White text on this teal background for readability */
    border: none;
    transition: background-color 0.3s ease;
}

    .btn-teal:hover {
        background-color: #E0E37B !important; /* A slightly darker shade of teal for hover */
        color: #00566F !important; /* White text on this teal background for readability */
    }

.btn-lightyellow {
    background-color: #DEE47B !important;
    color: #000; /* Black text on this light yellow background for readability */
    border: none;
    transition: background-color 0.3s ease;
}

    .btn-lightyellow:hover {
        background-color: #BDBD56 !important; /* A slightly darker shade of yellow for hover */
    }

.btn-padding {
    margin-bottom: 10px;
}

.btn-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-flex i {
        margin-right: 5px;
    }

body::before {
    content: "";
    position: fixed; /* Fixed position */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1; /* Put it behind the content */
    /* Set the background image */
    background-image: url('background.png');
    /* Repeat and position settings */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* Apply opacity */
    /*    opacity: 0.8;
*/
}


.flex-grow-1 {
    flex-grow: 1;
}

.content-wrapper {
    flex: 1;
}

html, body {
    height: 100%;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    flex-grow: 1;
}

.scrollable-card-body {
    max-height: 500px; /* You can adjust this value based on your requirements */
    overflow-y: auto; /* Add vertical scroll */
    overflow-x: hidden; /* Ensure no horizontal scroll appears */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 1); /* full white background */
    z-index: 9999; /* ensure overlay is on top */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-image {
    max-width: 100px; /* adjust as necessary */
}
/* Custom card header style with increased specificity */
.card-header.custom-card-header {
    background-color: #00566F !important;
    color: white !important; /* This is for the text color */
}

.shadow-box {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.custom-grid .dxbl-grid-focused-row { /* dxgvRFW is a class used by DevExpress for the focused row */
    background-color: #00566F !important; /* Replace #yourColorHere with your desired color */
}

.file-explorer {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 90%;
    /* max-height: 90%;   /* Remove or adjust this */
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.card-body {
    max-height: calc(100vh - 200px); /* Adjust the 200px value according to your header and footer height */
}


.item {
    width: 140px;
    height: 180px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .item:hover {
        background-color: #e0e0e0;
    }

.folder .fa, .file .fa {
    font-size: 50px;
    margin-top: 20px;
}

.name {
    display: block;
    margin-top: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.content {
    display: none;
}

.back-button {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

    .back-button .fa {
        margin-right: 5px;
    }

.custom-modal-dialog {
    max-width: 90%;
}

.custom-modal-content {
    overflow: auto;
    word-wrap: break-word;
}

.select-width {
    max-width: 600px !important;
    width: 600px !important;
    margin-left: 10px;
    margin-right: 10px;
    max-height: 50px;
    height: 50px;
}

.btn-single-line {
    white-space: nowrap; /* Prevents wrapping of text */
    width: auto; /* Allow the button to resize based on content */
    max-height: 35px;
    height: 40px;
}


.tooltip {
    visibility: hidden;
    width: 250px;
    background-color: #00566F;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: 30px;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
}

    .tooltip.show {
        visibility: visible;
        opacity: 1;
    }

.email-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #E0E37B;
    color: black; /* White text color */
    padding: 2px 20px; /* Some padding */
    border-radius: 50%; /* Circular badge */
    font-size: 12px; /* Font size */
}

.dropzone {
    border: 2px dashed #666;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .dropzone:hover {
        background-color: #9fc2e6;
    }

.login-container {
    max-width: 300px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .login-container div {
        margin-bottom: 15px;
    }

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Default styling for inputs */
input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #0056b3;
    }

.content-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

    .content-section h3 {
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

.custom-checkbox {
    margin-left: -20px;
}
/* Base styling for all custom buttons */
.custom-btn {
    border-color: #00566F !important;
    background-color: #00566F !important; /* Changing background to dark color */
    color: #E0E37B !important; /* Changing text to light color */
    transition: background-color 0.2s, color 0.2s; /* for smooth hover effects */
}

    /* Hover effects for the custom buttons */
    .custom-btn:hover {
        color: #00566F !important; /* Hover text color */
        background-color: #E0E37B !important; /* Hover background color */
    }

    /* Disabled state */
    .custom-btn:disabled {
        color: #a8a8a8 !important;
        border-color: #a8a8a8 !important;
    }

    /* Specific lighter colors for each icon */
    .custom-btn .fas.fa-folder-open {
        color: #66b2ff !important; /* Lighter blue for 'Open' */
    }

    .custom-btn .fas.fa-download {
        color: #a9b1b8 !important; /* Lighter gray for 'Download' */
    }

    .custom-btn .fas.fa-envelope {
        color: #69c3d1 !important; /* Lighter info color for 'View Email' */
    }

    .custom-btn .fas.fa-share-alt {
        color: #6cd19c !important; /* Lighter green for 'Share' */
    }

    .custom-btn .fas.fa-edit {
        color: #ffdb70 !important; /* Lighter yellow for 'Rename' */
    }

    .custom-btn .fas.fa-trash-alt {
        color: #ea6a75 !important; /* Lighter red for 'Delete' */
    }

.loading-overlay {
    position: fixed; /* Fixed/sticky position */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    z-index: 9999; /* Sit on top */
    background-color: rgba(255,255,255,0.95); /* White w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-scroll {
    max-height: 80vh; /* 80% of the viewport height, can be adjusted */
    overflow-y: auto; /* allow vertical scrolling */
}

.error {
    color: red;
    font-weight: bold;
    background-color: #ffe0e0;
    border: 1px solid red;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}


.sendingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(252, 254, 252, 1); /* This makes the background mostly white but slightly transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* This ensures the overlay appears on top of other content */
}

.custom-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.custom-card-header {
    border-radius: 10px 10px 0 0;
}

.ch-480 {
    height: 600px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    padding-bottom: 100px; /* Set to footer's height */
    position: relative;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px; /* Set your footer's height */
    background-color: #f8f9fa; /* Adjust as necessary */
}

.decrypting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* white with slight transparency */
    z-index: 1000; /* make sure it's on top */
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #28a745; /* Green when on */
    border-color: #28a745; /* Green border when on */
}

.custom-control-input:not(:checked) ~ .custom-control-label::before {
    background-color: #dc3545; /* Red when off */
    border-color: #dc3545; /* Red border when off */
}

.email-item {
    padding: 5px;
    border: 1px solid #ccc;
    margin: 2px;
    cursor: pointer;
    background-color: #f5f5f5;
}

    .email-item:hover {
        background-color: #e0e0e0;
    }

    .email-item.selected {
        background-color: #fbfbf1; /* Highlight color for selected email */
    }

.clickable {
    cursor: pointer;
}

.shift-right {
    padding-left: 20px; /* Adjust this value as needed */
}

.attachment-item {
    margin: 5px 0;
    transition: background-color 1s;
}

    .attachment-item.hover {
        background-color: #d6ea6b;
        cursor: alias;
    }

.clickable {
    cursor: pointer;
}

    .clickable:hover {
        cursor: pointer;
    }

.clickable2 {
    cursor: pointer;
    background-color: #f7f8e3;
    transition: background-color 1s;
}

    .clickable2:hover {
        background-color: #d6ea6b;
        cursor: alias;
    }

.pagination-button {
    transition: background-color 1s;
}

    .pagination-button:hover {
        background-color: #E0E37B; /* Replace with your desired color */
    }


.ghstbtn {
    cursor: pointer;
    background-color: #ecf2ff;
    transition: background-color 1s;
}

    .ghstbtn:hover {
        background-color: #f1f8fe;
        cursor: alias;
    }

.ghsredtbtn {
    cursor: pointer;
    background-color: #ecf2ff;
    transition: background-color 1s;
}

.ghstredbtn:hover {
    background-color: darkred;
    cursor: alias;
}

/* Centers the search-container and makes it full width */
.search-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Styles the search-group to align items and make the input and button appear as one */
.search-group {
    display: inline-flex;
    border: 1px solid #ced4da; /* Border color similar to Bootstrap's form-control */
    border-radius: 0.25rem;
}

/* Styles the search-input */
.search-input {
    flex: 1;
    border: none;
    padding: 0.375rem 0.75rem;
    width: 500px;
}

/* Ensures the search-button and search-input appear connected */
.search-button {
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    border: none;
    padding: 0.375rem 0.75rem; /* Similar to Bootstrap's button padding */
}

    /* Hover and active states for search-button */
    .search-button:hover, .search-button:focus {
        background-color: #0069d9; /* Darker shade for interaction states */
        outline: none;
    }

/* Optional: Additional responsiveness for smaller screens */
@media (max-width: 576px) {
    .search-group {
        width: 100%;
    }
}

.large-icon {
    font-size: 28px; /* Adjust the size as needed */
}

.no-border {
    border: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.settings .btn-custom {
    color: #fff; /* White text */
    background-color: #00566F;
    border-color: #00566F;
}

    .settings .btn-custom:hover {
        color: #fff;
        background-color: darken(#00566F, 10%);
        border-color: darken(#00566F, 10%);
    }
