/* Contract Table Styles */
/* Header and Navigation Styles */
.header {
    position: relative;
    z-index: 1000; /* Ensure header stays above sidebar */
}

.navbar-custom {
    position: relative;
    z-index: 1000;
    background-color: #ffffec;
    border-bottom: 2px solid #3c4125;
}

/* Main Content Container */
.container-content {
    position: relative;
    margin-top: 20px;
    margin-right: 280px; /* Space for sidebar */
    z-index: 1;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0; /* Start from the top */
    right: 0;
    width: 250px;
    height: 100%;
    padding-top: 160px; /* Add padding to account for header height */
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0; /* Remove border radius since it's full height */
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 900; /* Lower than header but above content */
    overflow-y: auto; /* Make sidebar scrollable */
}

/* Sidebar Content Padding */
.sidebar > * {
    padding: 0 20px;
}

/* pagination*/
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #007bff;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination .current-page {
    margin: 0 5px;
    padding: 8px 12px;
    font-weight: bold;
    border: 1px solid #007bff;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
}


/* Ensure the welcome container doesn't get hidden */
.welcome-container {
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .container-content {
        margin-right: 0;
    }
}

.outer-container {
    width: 100%;
    padding: 15px;
    background-color: #f9f9f9;
}

.results-count {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.result-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    margin: 0;
    padding: 0;
}

.compact-table td {
    padding: 4px;
}

.center-text {
    text-align: center;
}

.title-text {
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    display: inline-block;
    max-width: calc(90% - 100px);
    word-wrap: break-word;
}

.subtext {
    font-size: 0.8rem;
    color: #666;
}

.bold-text {
    font-weight: bold;
    color: #333;
}

.description-cell {
    padding: 4px;
}

.view-contract-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.details-section {
    margin-top: 4px;
    font-color: #bdbdbd;
}

.contract-details-header {
    background-color: #f1f1f1;
    font-weight: bold;
    font-size: 0.85rem;
}

.contract-details-row td {
    padding: 4px;
    font-size: 0.85rem;
}

/* Add these new styles after your existing contract-details styles */

/* Make table columns fixed width */
.compact-table {
    table-layout: fixed;
}

/* Column width definitions */
.contract-details-header th:nth-child(1),
.contract-details-row td:nth-child(1) {
    width: 15%;  /* Cooperative */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-details-header th:nth-child(2),
.contract-details-row td:nth-child(2) {
    width: 25%;  /* Vendor(s) */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-details-header th:nth-child(3),
.contract-details-row td:nth-child(3) {
    width: 15%;  /* Contract# */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-details-header th:nth-child(4),
.contract-details-row td:nth-child(4) {
    width: 20%;  /* End Date */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-details-header th:nth-child(5),
.contract-details-row td:nth-child(5) {
    width: 12.5%;  /* State */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-details-header th:nth-child(6),
.contract-details-row td:nth-child(6) {
    width: 12.5%;  /* National */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add hover effect to show full content */
.contract-details-row td:hover {
    overflow: visible;
    white-space: normal;
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1050; /* Ensure modal appears above the backdrop */
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    margin: 1.75rem auto;
    z-index: 1051; /* Extra assurance for modal dialog */
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    z-index: 1052; /* Explicitly set content above all other modal elements */
}

.modal-content * {
    pointer-events: auto;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040; /* Backdrop stays below the modal */
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Prevent backdrop from blocking modal interaction */
}

.no-results {
    text-align: center;
    color: #ff0000;
    font-weight: bold;
    font-size: 1rem;
}

/* Notification styles */
.notification {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    padding: 8px 12px;
    margin: 10px 0;
    display: inline-block;
    animation: fadeIn 0.5s;
}

.notification a {
    color: #721c24;
    text-decoration: none;
    font-weight: 500;
}

.notification a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Notification badge for nav item */
        /* Navbar customization */
        .navbar-custom {
            background-color: #ffffec;
            border-bottom: 2px solid #3c4125;
        }
        .nav-link {
            color: #343a40;
        }
        .navbar-toggler {
            border-color: rgba(0, 0, 0, 0.1);
        }
        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }
        .navbar-brand img {
            width: 242px;
            height: auto;
            max-height: 60px;
        }
        .dropdown-menu-right {
            right: 0;
            left: auto;
        }
        /* Notification styles */
        .notification {
            background-color: #f8d7da;
            border: 1px solid #f5c6cb;
            border-radius: 4px;
            color: #721c24;
            padding: 8px 12px;
            margin: 10px 0;
        }
        .nav-notification-badge {
            position: absolute;
            top: 0;
            right: 0;
            background-color: #dc3545;
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 12px;
            transform: translate(50%, -50%);
        }
        .nav-item {
            position: relative;
        }
		
.nav-notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    transform: translate(50%, -50%);
}

.nav-item {
    position: relative;
}

.close {
    border: none;
    background-color: transparent;
    font-size: 1.2rem;
}

.dotted-line-break {
    border: none;
    border-top: 1px dotted #ccc;
    margin: 10px 0;
}

/* Icon Styles */
.view-contract,
.copy-contract,
.save-contract,
.share-contract {
    cursor: pointer;
    margin-left: 8px;
}
