/* Base Styles */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
}

:root {
    --primary-color: #000000;
    --secondary-color: #250075;
    --accent-color: #6c757d;
    --light-bg: #f8f9fa;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-div{
    background-color:#eee;
}
/* Navigation */
.buxley-logo {
    width: 150px;
}
.navbar-custom {
    background-color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 0, 117, 0.3);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-outline-secondary {
    border-color: var(--accent-color);
    color: var(--accent-color);
    border-radius: 10px;
    font-weight: 500;
}

    .btn-outline-secondary:hover {
        background-color: var(--accent-color);
        color: white;
        transform: translateY(-1px);
    }

.btn-outline-danger {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 1.5px;
    font-weight: 500;
}

    .btn-outline-danger:hover {
        background-color: #dc3545;
        transform: translateY(-1px);
    }

/* Hero section container */
.cep-welcome-card {
    background-color: rgba(0, 0, 0, 0.8); /* More transparent white background */
    backdrop-filter: blur(10px); /* Stronger blur effect */
    /*border-radius: 20px;  More rounded corners */
    padding: 3rem 4rem; /* Increased padding significantly */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically if space allows */
    width: 100%; /* Take up more width */
    max-width: 100%; /* Maximum width for larger screens */
    min-height: 210px; /* Minimum height to make it "large" */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25); /* More prominent shadow */
    color: var(--primary-color); /* Darker, more prominent text color */
    text-align: center; /* Center text within its container */
    animation: fadeInScale 0.8s ease-out forwards; /* Add a fade-in animation */
    margin:0px
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Content wrapper for text */
.cep-welcome-content {
    display: flex;
    flex-direction: column;
    align-items: start; /* Center text elements */
    width: 100%;
    text-align:left;
}

/* Styling for "Welcome" text */
.cep-welcome-heading {
    font-size: 1.2rem; /* Even larger font size */
    line-height: 1;
    color: #fff; /* Primary blue for emphasis */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
    margin-bottom: 0.8rem; /* Space below heading */
    margin-right: 10px
}

/* Styling for the username */
.cep-username {
    font-size: 1.2rem; /* Larger medium font size */
    line-height: 1;
    color: #fff; /* Darker secondary color */
    margin-bottom: 1.5rem; /* More space before company info */
}

/* Styling for company info line */
.cep-company-info {
    display: flex;
    align-items: center;
    justify-content: center; /* Center company info block */
    margin-top: 1rem;
    color: #555; /* Muted but visible color */
}

/* Styling for company icon */
.cep-company-icon {
    font-size: 1.8rem; /* Larger icon */
    margin-right: 0.8rem;
    color: #6c757d;
}

/* Styling for company name */
.cep-company-name {
    font-size: 1.2rem; /* Larger small font size for readability */
    font-weight: 500;
    color: #fff;
    font-weight: lighter;
}

/* Styling for the logout button (now removed from HTML, but CSS is here if it were to be re-added) */
.cep-logout-button {
    margin-top: 2rem; /* More space above the button */
    padding: 0.8rem 2.5rem; /* Larger padding for button */
    border-radius: 10px; /* More rounded button */
    font-size: 1.1rem; /* Larger font size for button */
    background-image: linear-gradient(to right, #007bff, #0056b3);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    letter-spacing: 0.5px;
}

    .cep-logout-button:hover {
        transform: translateY(-3px) scale(1.02); /* More pronounced hover effect */
        box-shadow: 0 10px 20px rgba(0, 123, 255, 0.5);
        background-image: linear-gradient(to right, #0056b3, #007bff);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .cep-welcome-card {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }

    .cep-welcome-heading {
        font-size: 1.2rem;
    }

    .cep-username {
        font-size: 1.2rem;
    }

    .cep-company-icon {
        font-size: 1.5rem;
    }

    .cep-company-name {
        font-size: 1.1rem;
    }

    .cep-logout-button {
        padding: 0.7rem 2rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 500px) {
    .cep-welcome-card {
        padding: 1.5rem 1rem;
        min-height: 250px;
    }

    .cep-welcome-heading {
        font-size: 1.2rem;
    }

    .cep-username {
        font-size: 1.2rem;
    }

    .cep-company-icon {
        font-size: 1.2rem;
    }

    .cep-company-name {
        font-size: 1rem;
    }

    .cep-logout-button {
        width: 90%;
        margin-top: 1.5rem;
        padding: 0.6rem 1.5rem;
    }
}
/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

/* File Grid and List */
.cep-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.cep-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cep-file-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef; /* Added from main-page-unique */
    margin-bottom: 1rem; /* Added from main-page-unique */
}

    .cep-file-item:hover {
        background: #f8f9fa;
        transform: translateY(-3px); /* Added from main-page-unique */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Added from main-page-unique */
        border-color: #250075; /* Added from main-page-unique */
    }

.cep-file-icon {
    width: 48px; /* Standardized icon size */
    height: 48px; /* Standardized icon size */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center; /* From main-page-unique */
}

    .cep-file-icon i {
        font-size: 3rem; /* From main-page-unique */
    }


/* Search Section */
.cep-search-section {
    background: #f8f9fa; /* Changed from white for consistency */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e9ecef; /* Added from main-page-unique */
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 0, 117, 0.25);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 0, 117, 0.25);
}

/* Upload Zone */
.cep-upload-zone {
    border: 3px dashed #dee2e6; /* From upload-form-unique */
    border-radius: 15px; /* From upload-form-unique */
    padding: 3rem 2rem; /* From upload-form-unique */
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa; /* From upload-form-unique */
    cursor: pointer;
}

    .cep-upload-zone:hover,
    .cep-upload-zone.cep-drag-over {
        border-color: var(--secondary-color); /* Uses variable */
        background: rgba(37, 0, 117, 0.05); /* Uses specific rgba */
        transform: scale(1.02); /* From upload-form-unique */
    }

/* View Toggle */
.cep-view-toggle {
    background: white;
    border-radius: 8px;
    padding: 0.25rem;
    box-shadow: var(--card-shadow);
}

    .cep-view-toggle .btn {
        border: none;
        border-radius: 6px;
        padding: 0.5rem 1rem;
    }

        .cep-view-toggle .btn.active {
            background: var(--primary-color);
            color: white;
        }

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0; /* From upload-form-unique */
    width: 100%; /* From upload-form-unique */
}

/* Animations */
.cep-fade-in {
    animation: cep-fadeIn 0.5s ease-in-out;
}

@keyframes cep-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cep-loading-spinner {
    display: inline-block; /* From original loading-spinner */
    width: 40px; /* From main-page-unique */
    height: 40px; /* From main-page-unique */
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: cep-spin 1s linear infinite;
}

@keyframes cep-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Original Blazor Styles */
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    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: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3.3NGEg2NjYuNDQ4IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdDMjYxLjA0OSA4Ni4wNTQ3IDI1OS43ODYgODcuMzAwNSAyNTkuNzg2IDg5Ljc5MjEgMjU5Ljc4NiA5Mi4yODM3IDI2MS4wNDkgOTMuNTI5NSAyNjMuNTc2IDkzLjUyOTUgMjY2LjExNiA5My41Mjk1IDI2Ny4zODcgOTIuMjgzNyAyNjcuMzg3IDg5Ljc5MjEgMjY3LjM4NyA4Ny4zMDA1IDI2Ni4xMTYgODYuMDU0NyAyNjMuNTc2IDg2LjA1NDdWIiBmaWxsPSIjRkZFNTAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* Footer */
.cep-footer-custom {
    background-color: var(--primary-color);
    color: #ccc;
    padding: 4rem 0;
    margin-top: auto;
    border-radius: 0;
}

    .cep-footer-custom h5 {
        color: #fff;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .cep-footer-custom .nav-link {
        color: #ccc;
        padding: 0.2rem 0;
        transition: color 0.3s ease;
    }

        .cep-footer-custom .nav-link:hover {
            color: #fff;
        }

    .cep-footer-custom .social-icons .btn {
        background-color: #333;
        color: #fff;
        border-radius: 0.5rem;
        margin-right: 0.75rem;
        width: 2.5rem;
        height: 2.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

        .cep-footer-custom .social-icons .btn:hover {
            background-color: #555;
        }

.cep-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: left;
    color: #888;
}

    .cep-footer-bottom h5 { /* Changed from .footer-bottom directly to h5 inside it */
        font-size: 1.8rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 1rem;
    }

    .cep-footer-bottom p {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

/* Notification */
.cep-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1050;
    min-width: 300px;
    color: #fff;
    font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: cep-slide-in 0.5s forwards;
}

@keyframes cep-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cep-notification-success {
    background-color: #28a745;
}

.cep-notification-failure {
    background-color: #dc3545;
}

.cep-notification-icon {
    margin-right: 1rem;
}

    .cep-notification-icon svg {
        width: 24px;
        height: 24px;
    }

.cep-notification-content {
    flex-grow: 1;
}

.cep-notification-message {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.cep-notification-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    padding: 0 0.5rem;
    cursor: pointer;
}

    .cep-notification-close:hover {
        opacity: 1;
    }

/* Upload Component Specific Styles */
.cep-upload-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cep-upload-content {
    max-width: 400px;
    margin: 0 auto;
}

.cep-upload-icon {
    font-size: 4rem;
    color: #250075;
    margin-bottom: 1rem;
    display: block;
}

.cep-upload-title {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cep-upload-subtitle {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.cep-upload-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.cep-selected-files {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.cep-files-list {
    max-height: 300px;
    overflow-y: auto;
}

.cep-file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.cep-file-type-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.cep-file-details {
    flex: 1;
}

.cep-file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cep-file-size {
    color: #6c757d;
    font-size: 0.9rem;
}

.cep-file-actions {
    margin-left: 1rem;
}

.cep-upload-options {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.cep-sharing-preview .alert {
    border-radius: 10px;
    border: none;
}

.cep-upload-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.cep-upload-progress-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.cep-progress-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.cep-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cep-progress-filename {
    font-weight: 600;
    color: #333;
}

.cep-progress-percentage {
    color: #6c757d;
    font-size: 0.9rem;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: linear-gradient(135deg, #000000 0%, #250075 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Login Component Specific Styles */
.cep-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cep-login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    animation: cep-slideUp 0.6s ease-out;
}

@keyframes cep-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cep-brand-section {
    background: linear-gradient(135deg, #000000 0%, #250075 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
}

.cep-brand-content {
    max-width: 300px;
}

.cep-brand-logo-large {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: cep-pulse 3s infinite;
}

@keyframes cep-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.cep-brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cep-brand-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cep-form-section {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.cep-login-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.cep-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cep-login-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.cep-login-subtitle {
    color: #666;
    margin-bottom: 0;
}

.cep-login-type-toggle .btn-check:checked + .btn {
    background: linear-gradient(135deg, #000000 0%, #250075 100%);
    border-color: #250075;
    color: white;
}

.cep-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    z-index: 5;
    transition: color 0.3s ease;
}

    .cep-password-toggle:hover {
        color: #250075;
    }

.cep-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cep-forgot-link {
    color: #250075;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .cep-forgot-link:hover {
        color: #000;
        text-decoration: underline;
    }

.cep-btn-login {
    background: linear-gradient(135deg, #000000 0%, #250075 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .cep-btn-login:hover:not(:disabled) {
        background: linear-gradient(135deg, #250075 0%, #000000 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 0, 117, 0.3);
    }

    .cep-btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.cep-login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.cep-support-link {
    color: #250075;
    text-decoration: none;
    font-weight: 500;
}

    .cep-support-link:hover {
        text-decoration: underline;
    }

.cep-locked-alert {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    border-radius: 12px;
    animation: cep-shake 0.5s ease-in-out;
}

.cep-error-alert {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 12px;
    animation: cep-shake 0.5s ease-in-out;
}

@keyframes cep-shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* File Details Modal Specific Styles */
.cep-file-details-preview-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.cep-file-details-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.cep-file-details-name {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.cep-file-details-type {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cep-file-details-info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
}

.cep-file-details-section-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #250075;
    display: flex;
    align-items: center;
}

.cep-file-details-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .cep-file-details-info-item:last-child {
        border-bottom: none;
    }

.cep-file-details-info-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-bottom: 0;
}

.cep-file-details-info-value {
    color: #333;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .cep-file-details-info-value code {
        background: #e9ecef;
        color: #495057;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.875rem;
    }

.cep-file-details-description-section, .cep-file-details-technical-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.cep-file-details-description-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.cep-file-details-action-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Invite Modal Specific Styles */
.cep-invite-user-preview-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cep-invite-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* General Overrides and Utilities (applied to all components) */
.card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.card-text {
    line-height: 1.4;
}

    .card-text i {
        width: 16px;
        margin-right: 0.25rem;
    }

.btn-group .btn {
    border-radius: 6px;
    font-weight: 500;
}

.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.form-label.fw-medium {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }

    .cep-upload-zone {
        padding: 2rem 1rem;
    }

    .cep-upload-actions {
        flex-direction: column;
        gap: 1rem;
    }

        .cep-upload-actions .btn {
            width: 100%;
        }

    .cep-login-container {
        padding: 1rem;
    }

    .cep-login-card {
        border-radius: 15px;
    }

    .cep-brand-section {
        display: none;
    }

    .cep-form-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .cep-brand-title {
        font-size: 2rem;
    }

    .cep-login-title {
        font-size: 1.5rem;
    }

    .cep-file-grid {
        grid-template-columns: 1fr;
    }

    .cep-search-section .row > div {
        margin-bottom: 1rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

        .d-flex.gap-2 .btn {
            width: 100%;
        }

    .cep-file-details-info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cep-file-details-info-value {
        justify-content: flex-start;
        margin-top: 0.25rem;
        text-align: left;
    }

    .cep-file-details-action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .modal-footer .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .cep-scrollable-dropdown {
        max-height: 300px; /* Adjust this value as needed */
        overflow-y: auto;
    }

    .cep-user-select-container {
        max-width: 24rem; /* 384px */
    }
    /* Custom styles for the dropdown items */
    .cep-user-option-item {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        border-bottom: 1px solid #dee2e6; /* Bootstrap's default border color */
    }

        .cep-user-option-item:last-child {
            border-bottom: none;
        }
        /* Override Bootstrap's default hover to match the desired style */
        .cep-user-option-item:hover, .cep-user-option-item:focus {
            background-color: #a1c4f7;
            color: white;
        }

            .cep-user-option-item:hover .text-muted, .cep-user-option-item:focus .text-muted {
                color: rgba(255, 255, 255, 0.75) !important;
            }

            .cep-user-option-item:hover .cep-client-badge, .cep-user-option-item:focus .cep-client-badge {
                background-color: #ffffff;
                color: #0d6efd;
            }

    .dropdown-menu {
        padding: 0;
        width: 100%;
    }

    .cep-client-badge {
        font-size: 0.75rem; /* 12px */
        font-weight: 500;
    }

    #cepUserSelectButton::after {
        display: none; /* Hide default Bootstrap caret */
    }

    .cep-footer-custom {
        padding: 3rem 0;
    }

        .cep-footer-custom .col-md-2,
        .cep-footer-custom .col-md-3 {
            margin-bottom: 2rem;
        }

    .cep-footer-bottom {
        text-align: center;
    }

        .cep-footer-bottom .logo {
            text-align: center;
        }
}
.modal-lg {
    max-width: 900px;
}



.cep-file-details-preview-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.cep-file-details-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.cep-file-details-name {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.cep-file-details-type {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cep-file-details-info-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
}

.cep-file-details-section-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #250075;
    display: flex;
    align-items: center;
}

.cep-file-details-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .cep-file-details-info-item:last-child {
        border-bottom: none;
    }

.cep-file-details-info-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    margin-bottom: 0;
}

.cep-file-details-info-value {
    color: #333;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .cep-file-details-info-value code {
        background: #e9ecef;
        color: #495057;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.875rem;
    }

.cep-file-details-description-section, .cep-file-details-technical-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

.cep-file-details-description-content {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}


.cep-file-details-action-buttons .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}


@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }

    .cep-file-details-info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cep-file-details-info-value {
        justify-content: flex-start;
        margin-top: 0.25rem;
    }

    .cep-file-details-action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

}
.footer-custom {
    background-color: #000; /* Black background as in the image */
    color: #ccc; /* Light gray text color */
    padding: 4rem 0; /* Padding top and bottom */
    margin-top: auto; /* Pushes the footer to the bottom */
    border-radius: 0; /* No rounded corners for the overall footer */
}

    .footer-custom h5 {
        color: #fff; /* White color for headings */
        margin-bottom: 1.5rem;
        font-weight: 600; /* Slightly bolder headings */
    }

    .footer-custom .nav-link {
        color: #ccc; /* Light gray for links */
        padding: 0.2rem 0;
        transition: color 0.3s ease;
    }

        .footer-custom .nav-link:hover {
            color: #fff; /* White on hover */
        }

    .footer-custom .social-icons .btn {
        background-color: #333; /* Darker background for social buttons */
        color: #fff; /* White icons */
        border-radius: 0.5rem; /* Rounded corners for buttons */
        margin-right: 0.75rem;
        width: 2.5rem; /* Fixed width for square buttons */
        height: 2.5rem; /* Fixed height for square buttons */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

        .footer-custom .social-icons .btn:hover {
            background-color: #555; /* Even darker on hover */
        }

.footer-bottom {
    border-top: 1px solid #333; /* Separator line */
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: left;
    color: #888; /* Darker gray for bottom text */
}

.footer-bottom {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

    .footer-bottom p {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-custom {
        padding: 3rem 0;
    }

        .footer-custom .col-md-2,
        .footer-custom .col-md-3 {
            margin-bottom: 2rem; /* Add spacing between columns on small screens */
        }

    .footer-bottom {
        text-align: center; /* Center align on small screens */
    }

        .footer-bottom .logo {
            text-align: center;
        }
}
/* Custom styles for the file table */
.cep-file-table-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

.cep-file-table {
    width: 100%;
    margin-bottom: 0; /* Remove default table margin-bottom */
    border-collapse: separate; /* Required for border-radius on cells */
    border-spacing: 0 8px; /* Space between rows */
}

    .cep-file-table th {
        background-color: #f8f9fa;
        padding: 12px 15px;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #e9ecef; /* Separator for header */
    }

    .cep-file-table tbody tr {
        background-color: #ffffff;
        border-radius: 8px; /* Rounded corners for rows */
        transition: all 0.2s ease-in-out;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for rows */
    }

        .cep-file-table tbody tr:hover {
            background-color: #e2f0ff; /* Light blue on hover */
            transform: translateY(-2px); /* Lift effect on hover */
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

    .cep-file-table td {
        padding: 12px 15px;
        vertical-align: middle;
        border-top: none; /* Remove default top border */
        border-bottom: 1px solid #dee2e6; /* Light separator between rows (bottom) */
    }

    /* Apply border-radius to the first and last cells of a row */
    .cep-file-table tbody tr td:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .cep-file-table tbody tr td:last-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

.cep-table-icon {
    width: 40px; /* Fixed width for icon column */
    text-align: center;
}

    .cep-table-icon i {
        color: #007bff; /* Primary color for icons */
    }

.cep-table-actions {
    width: 120px; /* Fixed width for actions column */
    text-align: center;
}

    .cep-table-actions .btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

/* Pagination styles */
.cep-pagination .page-item .page-link {
    border-radius: 6px;
    margin: 0 4px;
    color: #007bff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
}

.cep-pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    z-index: 1; /* Keep active button on top */
}

.cep-pagination .page-item.disabled .page-link {
    color: #6c757d;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.cep-pagination .page-item .page-link:hover:not(.disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
    color: white;
}