/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #f9fafb;
    color: #111827;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

input, textarea, select {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================================
   LOGIN SCREEN
   =========================================== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    z-index: 9999;
}

.login-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}

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

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.login-logo p {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: white;
}

.login-input:focus {
    outline: none;
    border-color: #2563eb;
}

.login-form button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.login-form button[type="submit"]:hover {
    background: #1d4ed8;
}

.login-error {
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    background: #fee2e2;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.login-error.show {
    display: block;
}

/* ===========================================
   APP CONTAINER
   =========================================== */
.app-container {
    display: none;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.app-container.show {
    display: flex;
    flex-direction: row;
}

/* ===========================================
   SIDEBAR
   =========================================== */
.sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    min-height: 68px;
    max-height: 68px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    width: 100%;
}

.sidebar-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    min-width: 32px;
}

.sidebar-logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.menu-section {
    margin-bottom: 24px;
}

.menu-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6b7280;
    border-radius: 10px;
    transition: all 0.2s;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.menu-item:hover:not(.disabled) {
    background: #f3f4f6;
    color: #111827;
}

.menu-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.menu-item i {
    font-size: 20px;
    width: 20px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Disabled Menu Items */
.menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.menu-item.disabled::after {
    content: '';
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar.collapsed .menu-item.disabled::after {
    right: 50%;
    transform: translateX(50%);
    top: 8px;
}

.sidebar-footer {
    padding: 0;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-footer .menu-item {
    margin: 0;
    border-radius: 0;
    padding: 16px 20px;
}

/* ===========================================
   FIXED HEADER
   =========================================== */
.fixed-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    max-width: 100%;
}

/* ===========================================
   GLOBAL SEARCH BAR
   =========================================== */
.global-search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.global-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s;
}

.global-search-wrapper:focus-within {
    background: white;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.global-search-wrapper > i {
    font-size: 20px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.2s;
}

.global-search-wrapper:focus-within > i {
    color: #2563eb;
}

.global-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 12px 12px 8px;
    font-size: 15px;
    color: #111827;
    outline: none;
    width: 100%;
}

.global-search-input::placeholder {
    color: #9ca3af;
}

.global-clear-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.global-clear-search-btn:hover {
    background: #d1d5db;
}

.global-clear-search-btn i {
    font-size: 16px;
    color: #6b7280;
}

/* Global Search Results Dropdown */
.global-search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow: hidden;
    z-index: 1000;
}

.global-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.results-count i {
    font-size: 16px;
    color: #2563eb;
}

.showing-count {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.global-search-results-list {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.global-search-results-list::-webkit-scrollbar {
    width: 8px;
}

.global-search-results-list::-webkit-scrollbar-track {
    background: #f9fafb;
}

.global-search-results-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

.global-search-results-list::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.global-search-result-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.global-search-result-item:hover {
    background: #f9fafb;
}

.global-search-result-item:last-child {
    border-bottom: none;
}

.result-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.result-tender-number {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.result-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.result-status-badge.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.result-status-badge.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.result-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

.result-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-item-meta i {
    font-size: 14px;
    color: #9ca3af;
}

.result-category {
    font-weight: 600;
    color: #2563eb;
}

.global-search-results-footer {
    padding: 10px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.global-search-results-footer i {
    font-size: 14px;
    color: #9ca3af;
}

.global-search-no-results {
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
}

/* Responsive Global Search */
@media (max-width: 768px) {
    .global-search-container {
        max-width: 100%;
    }
    
    .global-search-input::placeholder {
        font-size: 14px;
    }
    
    .global-search-results-dropdown {
        max-height: 400px;
    }
    
    .global-search-results-list {
        max-height: 320px;
    }
}

/* ===========================================
   GLOBAL BREADCRUMB
   =========================================== */
.global-breadcrumb {
    position: sticky;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 40px;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    overflow: hidden;
}

.global-breadcrumb .breadcrumb-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

.breadcrumb-actions {
    display: flex;
    gap: 12px;
}

.stop-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.stop-all-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.stop-all-btn:active {
    transform: translateY(0);
}

.stop-all-btn i {
    font-size: 18px;
}

.stop-all-btn.hidden {
    display: none;
}

/* ===========================================
   FILTERS (MONTH & STATE DROPDOWNS)
   =========================================== */
.filters-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label i {
    font-size: 14px;
    color: #9ca3af;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
}

.filter-select:hover {
    border-color: #d1d5db;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Search Bar Container */
.search-bar-container {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 14px;
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper > i {
    font-size: 18px;
    color: #9ca3af;
    flex-shrink: 0;
    transition: color 0.2s;
}

.search-input-wrapper:focus-within > i {
    color: #2563eb;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 14px;
    color: #111827;
    outline: none;
    width: 100%;
}

.search-input::placeholder {
    color: #9ca3af;
}

.clear-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: #f3f4f6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.clear-search-btn:hover {
    background: #e5e7eb;
}

.clear-search-btn i {
    font-size: 14px;
    color: #6b7280;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow: hidden;
    z-index: 100;
}

/* Responsive filters */
@media (max-width: 768px) {
    .filters-container, .filters-row {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
}

/* ===========================================
   MAIN CONTENT
   =========================================== */
.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f9fafb;
    width: 100%;
    box-sizing: border-box;
}

.content-section {
    display: none;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section.active {
    display: block;
}

/* ===========================================
   CARDS
   =========================================== */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.card-title i {
    font-size: 26px;
    color: #2563eb;
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.card-body {
    padding: 28px;
}

.card.collapsible .card-header {
    cursor: pointer;
    user-select: none;
}

.card.hidden {
    display: none;
}

/* ===========================================
   BUTTONS
   =========================================== */
.primary-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.primary-btn:active {
    background: #1e40af;
}

.primary-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.secondary-btn {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.icon-btn i {
    font-size: 20px;
}

/* ===========================================
   FORMS
   =========================================== */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #2563eb;
}

.input-field:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #2563eb;
}

.checkbox-group label {
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

/* ===========================================
   TABS
   =========================================== */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 28px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: #111827;
    background: #f9fafb;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===========================================
   TABLES
   =========================================== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
    font-size: 14px;
}

.info-table td:first-child {
    font-weight: 600;
    color: #6b7280;
    width: 40%;
}

.info-table td:last-child {
    color: #111827;
}

/* ===========================================
   PROGRESS
   =========================================== */
.progress-wrapper {
    margin: 24px 0;
}

.progress-track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text,
.progress-percent {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

/* ===========================================
   BADGES
   =========================================== */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fed7aa;
    color: #9a3412;
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    border-left: 4px solid;
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    border-radius: 8px;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: all;
}

.toast.show {
    opacity: 1;
}

.toast-info {
    border-left-color: #2563eb;
}

.toast-success {
    border-left-color: #059669;
}

.toast-error {
    border-left-color: #dc2626;
}

.toast-warning {
    border-left-color: #f59e0b;
}

/* ===========================================
   MODALS
   =========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===========================================
   BROWSE SYSTEM - BREADCRUMBS
   =========================================== */
.breadcrumb-wrapper {
    /* Remove old breadcrumb wrapper styles if any */
    display: none;
}

.breadcrumb-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

/* Override for global breadcrumb */
.global-breadcrumb .breadcrumb-navigation {
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    font-size: 14px;
}

.breadcrumb-link:hover {
    color: #2563eb;
}

.breadcrumb-link .ri {
    font-size: 16px;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-weight: 600;
    font-size: 14px;
}

.breadcrumb-current .ri {
    font-size: 16px;
}

.breadcrumb-separator {
    color: #d1d5db;
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* ===========================================
   BROWSE SYSTEM - SCREENS
   =========================================== */
.navigation-screen {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.navigation-screen.hidden {
    display: none;
}

.screen-container {
    /* Container styles handled by parent */
}

.screen-header {
    margin-bottom: 36px;
}

.screen-header-content {
    width: 100%;
}

.screen-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}

.screen-header-left {
    flex: 1;
    min-width: 0;
}

.screen-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.screen-title i {
    color: #2563eb;
}

.screen-subtitle {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 8px;
}

/* Inline Breadcrumb */
.inline-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    transition: color 0.2s;
}

.breadcrumb-item:hover:not(.active) {
    color: #2563eb;
}

.breadcrumb-item.active {
    color: #111827;
    font-weight: 600;
}

.breadcrumb-item i {
    font-size: 16px;
}

.breadcrumb-separator {
    font-size: 18px;
    color: #d1d5db;
}

.breadcrumb-count {
    margin-left: 8px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group-search {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.filter-group-search .search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #374151;
    transition: border-color 0.2s;
}

.filter-group-search .search-input:hover {
    border-color: #d1d5db;
}

.filter-group-search .search-input:focus {
    outline: none;
    border-color: #d1d5db;
}

.filter-group-search .search-input::placeholder {
    color: #9ca3af;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
}

/* Search Bar in Screen Header */
.screen-header .search-bar-container {
    margin-top: 20px;
    max-width: 600px;
}

.screen-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* View Toggle Buttons */
.view-toggle-container {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.view-toggle-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.view-toggle-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-toggle-btn i {
    font-size: 20px;
}

/* ===========================================
   BROWSE SYSTEM - CATEGORY CARDS
   =========================================== */
.category-cards-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.category-card-large {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.category-card-large:hover {
    border-color: #2563eb;
}

/* Stat cards variant - non-clickable */
.stat-card-large {
    cursor: default;
}

.stat-card-large:hover {
    border-color: #e5e7eb;
}

.category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid;
}

.category-card-icon.blue {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #2563eb;
}

.category-card-icon.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.category-card-icon.purple {
    background: #faf5ff;
    border-color: #e9d5ff;
    color: #9333ea;
}

.category-card-icon.orange {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}

.category-card-icon.red {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.category-card-icon.indigo {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.category-card-icon.yellow {
    background: #fefce8;
    border-color: #fef08a;
    color: #ca8a04;
}

.category-card-icon.cyan {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0891b2;
}

.category-card-icon.pink {
    background: #fdf2f8;
    border-color: #fbcfe8;
    color: #db2777;
}

.category-card-icon.gray {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
}

.category-card-content {
    flex: 1;
}

.category-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.category-card-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.category-card-arrow {
    color: #d1d5db;
    font-size: 24px;
    flex-shrink: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.category-card-large:hover .category-card-arrow {
    color: #2563eb;
}

/* ===========================================
   BROWSE SYSTEM - TENDER CARDS
   =========================================== */
/* Folder Card - Grid View (File Explorer Style) */
.tenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.folder-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.folder-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.folder-icon {
    position: relative;
    margin-bottom: 12px;
}

.folder-icon i {
    font-size: 72px;
    color: #3b82f6;
}

.folder-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 24px;
}

.folder-content {
    width: 100%;
}

.folder-header {
    margin-bottom: 8px;
}

.folder-number {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.folder-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.folder-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.folder-meta i {
    font-size: 14px;
}

.folder-docs {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* List View Updates */
.tender-list-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.folder-icon-small {
    flex-shrink: 0;
}

.folder-icon-small i {
    font-size: 40px;
    color: #3b82f6;
}

.tender-list-info {
    flex: 1;
    min-width: 0;
}

/* Keep existing tender-card styles for backward compatibility */
.tender-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.tender-card:hover {
    border-color: #2563eb;
}

.tender-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}

.tender-number {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 8px 14px;
    border-radius: 8px;
    flex-shrink: 0;
}

.tender-card-body {
    margin-bottom: 18px;
}

.tender-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tender-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

.tender-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tender-meta i {
    font-size: 16px;
}

.tender-card-footer {
    padding-top: 18px;
    border-top: 2px solid #f3f4f6;
}

.view-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
}

.view-link i {
    transition: border-color 0.2s, background-color 0.2s;
}

.tender-card:hover .view-link i {
    /* No transform on hover */
}

/* Tender List View */
.tenders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tender-list-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.tender-list-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.tender-list-left {
    flex: 1;
    min-width: 0;
}

.tender-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tender-list-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tender-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.meta-item i {
    font-size: 14px;
    color: #9ca3af;
}

.tender-list-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.tender-list-docs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.tender-list-docs i {
    font-size: 20px;
    color: #2563eb;
}

.tender-list-docs span {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.tender-list-docs small {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
}

.tender-list-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tender-list-action:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tender-list-action i {
    font-size: 18px;
}

/* Responsive List View */
@media (max-width: 768px) {
    .tender-list-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tender-list-right {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 16px;
        border-top: 1px solid #f3f4f6;
    }
    
    .tender-list-action {
        flex: 1;
    }
}

/* ===========================================
   BROWSE SYSTEM - TENDER DETAIL
   =========================================== */
/* ===========================================
   BROWSE SYSTEM - TENDER DETAIL (FILE EXPLORER STYLE)
   =========================================== */
.tender-detail-content {
    margin-top: 0;
}

/* Loading & Empty States */
.loading-state, .empty-state {
    padding: 80px 24px;
    text-align: center;
    color: #6b7280;
}

.loading-state i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 16px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Basic Info Section */
.basic-info-section {
    margin-bottom: 32px;
}

.info-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.info-card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card-header i {
    font-size: 24px;
    color: #3b82f6;
}

.info-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.screenshot-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.screenshot-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.screenshot-btn i {
    font-size: 16px;
}

/* Tender Title Highlight - MOST IMPORTANT */
.tender-title-highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0 24px 0;
}

.tender-title-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tender-title-icon i {
    font-size: 28px;
    color: #6b7280;
}

.tender-title-content {
    flex: 1;
}

.tender-title-label {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.tender-title-text {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* Documents Section (MOST IMPORTANT) */
.documents-section {
    margin-bottom: 32px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.documents-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.documents-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.documents-title i {
    font-size: 28px;
    color: #3b82f6;
}

.documents-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.documents-count {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.document-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.document-card:hover {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.document-icon {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.document-icon i {
    font-size: 32px;
    /* Color is set inline based on file type */
}

.file-extension {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #111827;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    word-break: break-word;
}

.document-description {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #9ca3af;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-category {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.doc-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-action-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.doc-action-btn i {
    font-size: 18px;
}

.no-documents {
    padding: 48px;
    text-align: center;
    color: #9ca3af;
}

.no-documents i {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

/* JSON Data Section */
.json-data-section {
    margin-bottom: 32px;
}

.json-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.json-header i {
    font-size: 24px;
    color: #3b82f6;
}

.json-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.detail-section {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.detail-section.collapsed {
    padding: 16px 24px;
}

.detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.detail-section.collapsed .detail-section-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-section-header:hover {
    background: #f9fafb;
    margin: -8px -12px 16px -12px;
    padding: 8px 12px 12px 12px;
    border-radius: 8px;
}

.detail-section.collapsed .detail-section-header:hover {
    margin: -8px -12px 0 -12px;
    padding: 8px 12px;
}

.detail-section-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-section-header i:first-child {
    font-size: 20px;
    color: #3b82f6;
}

.collapse-icon {
    font-size: 24px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.detail-section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.detail-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.detail-section-content {
    font-size: 14px;
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.detail-section.collapsed .detail-section-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.json-object {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.json-field {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.json-key {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.json-value {
    font-size: 13px;
    color: #111827;
    word-break: break-word;
}

.json-array {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.json-array-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.array-item-header {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-data {
    color: #9ca3af;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .json-field {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.tender-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 28px;
}

.info-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.info-card h3 i {
    color: #2563eb;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 160px;
    flex-shrink: 0;
}

.info-value {
    color: #111827;
    word-break: break-word;
}

/* ===========================================
   EMPTY STATE
   =========================================== */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.empty-state i {
    font-size: 72px;
    color: #d1d5db;
    margin-bottom: 28px;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 28px 0;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

/* Large Tablets & Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }
    
    .content-section {
        padding: 32px 24px;
    }
    
    .fixed-header {
        padding: 0 24px;
    }
    
    .global-breadcrumb {
        padding: 12px 24px;
    }
    
    .category-cards-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .tenders-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .tender-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .key-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Layout adjustments */
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .sidebar-header {
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
        padding: 16px;
    }
    
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        padding: 16px;
        gap: 8px;
        overflow-x: auto;
    }
    
    .sidebar-footer {
        border-top: none;
        border-left: 1px solid #e5e7eb;
        padding: 16px;
    }
    
    .menu-item {
        flex-direction: column;
        gap: 4px;
        padding: 12px;
        min-width: 80px;
        text-align: center;
        font-size: 12px;
    }
    
    .menu-item i {
        font-size: 24px;
    }
    
    .sidebar-text {
        font-size: 11px;
    }
    
    .main-content {
        height: auto;
    }
    
    /* Header adjustments */
    .fixed-header {
        height: 60px;
        padding: 0 16px;
    }
    
    .logo-section h1 {
        font-size: 16px;
    }
    
    .logo-section img {
        width: 32px;
        height: 32px;
    }
    
    /* Breadcrumb adjustments */
    .global-breadcrumb {
        top: 60px;
        padding: 10px 16px;
    }
    
    .breadcrumb-navigation {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px;
    }
    
    .breadcrumb-separator {
        font-size: 14px;
    }
    
    /* Content adjustments */
    .content-section {
        padding: 20px 16px;
    }
    
    /* Card adjustments */
    .card {
        border-radius: 8px;
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-title i {
        font-size: 22px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    /* Category cards */
    .category-cards-grid-large {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card-large {
        padding: 20px;
    }
    
    .category-card-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
    
    .category-card-title {
        font-size: 18px;
    }
    
    .category-card-subtitle {
        font-size: 14px;
    }
    
    /* Tender cards */
    .tenders-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tender-card {
        padding: 20px;
    }
    
    .tender-title {
        font-size: 16px;
    }
    
    .tender-meta {
        font-size: 13px;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Screen titles */
    .screen-title {
        font-size: 22px;
    }
    
    .screen-title i {
        font-size: 24px;
    }
    
    /* Tender detail */
    .tender-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tender-detail-header {
        padding: 20px;
    }
    
    .tender-detail-title {
        font-size: 20px;
        flex-wrap: wrap;
    }
    
    .tender-detail-number {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Key stats */
    .key-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .key-stat-card {
        padding: 16px;
    }
    
    .key-stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .key-stat-icon i {
        font-size: 24px;
    }
    
    .key-stat-label {
        font-size: 11px;
    }
    
    .key-stat-value {
        font-size: 14px;
    }
    
    /* Info sections */
    .info-section {
        padding: 20px;
    }
    
    .info-section-title {
        font-size: 16px;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }
    
    .info-row-label {
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
    }
    
    .info-row-value {
        font-size: 14px;
    }
    
    /* Documents */
    .document-item {
        padding: 12px;
        gap: 10px;
    }
    
    .document-icon {
        width: 36px;
        height: 36px;
    }
    
    .document-icon i {
        font-size: 20px;
    }
    
    .document-name {
        font-size: 13px;
    }
    
    .document-meta {
        font-size: 11px;
    }
    
    /* Buttons */
    .primary-btn,
    .secondary-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    /* Search */
    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .search-input {
        width: 100%;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .modal-footer .primary-btn,
    .modal-footer .secondary-btn {
        width: 100%;
    }
    
    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 16px;
    }
    
    .input-field,
    .login-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Toast notifications */
    .toast-container {
        top: 70px;
        right: 16px;
        left: 16px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .fixed-header {
        height: 56px;
        padding: 0 12px;
    }
    
    .logo-section h1 {
        font-size: 14px;
    }
    
    .logo-section img {
        width: 28px;
        height: 28px;
    }
    
    .global-breadcrumb {
        top: 56px;
        padding: 8px 12px;
    }
    
    .content-section {
        padding: 16px 12px;
    }
    
    .category-card-large {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .category-card-icon {
        margin: 0 auto;
    }
    
    .category-card-arrow {
        display: none;
    }
    
    .tender-card {
        padding: 16px;
    }
    
    .card-header {
        padding: 12px 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .info-section {
        padding: 16px;
    }
    
    .tender-detail-header {
        padding: 16px;
    }
    
    .key-stat-card {
        padding: 12px;
    }
    
    .document-item {
        padding: 10px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .fixed-header,
    .global-breadcrumb,
    .primary-btn,
    .secondary-btn,
    .icon-btn {
        display: none !important;
    }
    
    .main-content-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .content-section {
        padding: 0;
        max-width: none;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}


/* ===========================================
   ADDITIONAL COMPATIBILITY STYLES
   =========================================== */
.sidebar-menu {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.sidebar-section {
    margin: 20px 16px;
}

.sidebar-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.submenu-item {
    padding: 8px 16px;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.submenu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.submenu-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.logout-item {
    color: #dc2626 !important;
}

.logout-item:hover {
    background: #fee2e2 !important;
}


/* ===========================================
   REMIX ICONS STYLING (Outline, Clean)
   =========================================== */
.ri {
    font-size: 20px;
    line-height: 1;
    font-weight: normal !important; /* Force light weight */
}

/* Ensure all Remix icons are outline/line style */
i[class*="ri-"] {
    font-weight: normal !important;
    font-style: normal !important;
}

/* Specific icon sizes for different contexts */
.sidebar-nav .ri {
    font-size: 20px;
}

.category-card-icon .ri {
    font-size: 32px;
}

.screen-title .ri {
    font-size: 28px;
    margin-right: 8px;
}

.tender-meta .ri {
    font-size: 16px;
    margin-right: 4px;
}

.breadcrumb-separator .ri {
    font-size: 16px;
    margin: 0 4px;
    opacity: 0.5;
}

.empty-state .ri {
    font-size: 64px;
    margin-bottom: 16px;
    color: #9ca3af;
    opacity: 0.5;
}

.primary-btn .ri,
.secondary-btn .ri {
    font-size: 18px;
    margin-right: 6px;
}

.info-card h3 .ri {
    font-size: 20px;
    margin-right: 8px;
}

/* Document icons */
.document-icon .ri {
    font-size: 24px;
}

/* Key stat icons */
.key-stat-icon .ri {
    font-size: 28px;
}

/* Info section icons */
.info-section-title .ri {
    font-size: 20px;
    margin-right: 8px;
}

/* Card header icons */
.card-title .ri {
    font-size: 24px;
    margin-right: 8px;
}

/* Search icons */
.search-icon.ri {
    font-size: 20px;
    color: #9ca3af;
}

/* Toggle icons */
.toggle-icon.ri {
    font-size: 20px;
    transition: border-color 0.2s, background-color 0.2s;
}

.collapsible.collapsed .toggle-icon.ri {
    transform: rotate(-90deg);
}

/* Tab icons */
.tab-btn .ri {
    font-size: 16px;
    margin-right: 6px;
}

/* Badge/Status icons */
.status-badge .ri {
    font-size: 14px;
    margin-right: 4px;
}

/* Screenshot section icons */
.screenshot-section-title .ri {
    font-size: 20px;
    margin-right: 8px;
}

/* Download button icons */
.download-all-btn .ri,
.document-download-btn .ri {
    font-size: 18px;
}

/* Search result icons */
.search-result-matches .ri,
.search-result-meta .ri {
    font-size: 14px;
    margin-right: 4px;
}

/* Header icons */
.fixed-header .ri {
    font-size: 20px;
}

.logo-section .ri {
    font-size: 24px;
}

/* Modal icons */
.modal-header h2 .ri {
    font-size: 22px;
    margin-right: 8px;
}

/* Form help icons */
.form-help .ri {
    font-size: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Arrow icons */
.category-card-arrow .ri,
.view-link .ri {
    font-size: 20px;
    transition: border-color 0.2s, background-color 0.2s;
}

.category-card-large:hover .category-card-arrow .ri,
.tender-card:hover .view-link .ri {
    /* No transform on hover */
}

/* ===========================================
   SIMPLIFIED DESIGN (No Bold, Clean)
   =========================================== */

/* Reduce font weights */
.category-card-title,
.tender-title,
.screen-title {
    font-weight: 500;
}

.info-label {
    font-weight: 400;
}

h3, h4 {
    font-weight: 500;
}

h1, h2 {
    font-weight: 600;
}

/* Remove numbered lists */
ol {
    list-style-type: none;
    padding-left: 0;
}

/* Clean, minimal bullets */
ul {
    list-style-type: none;
    padding-left: 0;
}

ul li::before {
    content: "•";
    color: #9ca3af;
    margin-right: 8px;
}

/* Cleaner buttons */
.primary-btn,
.secondary-btn {
    font-weight: 500;
}


/* ===========================================
   UNIVERSAL SEARCH BAR
   =========================================== */

.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: #2563eb;
}

.search-input-wrapper [data-lucide="search"] {
    color: #9ca3af;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #111827;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.clear-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
}

.clear-search-btn:hover {
    background: #e5e7eb;
}

.clear-search-btn [data-lucide] {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 500px;
    overflow: hidden;
    z-index: 1000;
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #6b7280;
}

.search-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f9fafb;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.search-result-number {
    font-size: 13px;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.search-result-title {
    font-size: 14px;
    color: #111827;
    margin-bottom: 6px;
    line-height: 1.4;
}

.search-result-matches {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.search-result-matches [data-lucide] {
    width: 14px;
    height: 14px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.search-result-meta [data-lucide] {
    width: 14px;
    height: 14px;
}

.search-results-footer {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    background: #f9fafb;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.search-no-results [data-lucide] {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #9ca3af;
}

.search-no-results p {
    font-size: 14px;
    margin: 0;
}


/* ===========================================
   ENHANCED TENDER DETAIL VIEW
   =========================================== */

/* Main Title Section */
.tender-detail-header {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.tender-detail-title-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tender-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.tender-detail-title i {
    font-size: 28px;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 2px;
}

.tender-detail-number {
    font-size: 14px;
    color: #2563eb;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    display: inline-block;
    font-weight: 600;
}

/* Key Stats Grid */
.key-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.key-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.key-stat-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.key-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    flex-shrink: 0;
}

.key-stat-icon i {
    font-size: 24px;
}

.key-stat-content {
    flex: 1;
    min-width: 0;
}

.key-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.key-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    word-wrap: break-word;
}

/* Main Content Grid - 2 Column Layout */
.tender-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* Left Column - Main Content */
.tender-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Right Column - Sidebar */
.tender-detail-sidebar {
    position: sticky;
    top: 90px;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .tender-detail-grid {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .tender-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tender-detail-sidebar {
        position: static;
    }
    
    .key-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .tender-detail-header {
        padding: 20px;
    }
    
    .tender-detail-title {
        font-size: 20px;
    }
    
    .tender-detail-title i {
        font-size: 24px;
    }
    
    .key-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .key-stat-card {
        padding: 16px;
    }
    
    .tender-detail-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .tender-detail-header {
        padding: 16px;
    }
    
    .tender-detail-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .key-stat-card {
        padding: 14px;
        gap: 12px;
    }
    
    .key-stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .key-stat-icon i {
        font-size: 20px;
    }
}
    gap: 24px;
    align-items: start;
}

/* Left Column - Complete Information */
.tender-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    
}

.info-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.info-section-title [data-lucide] {
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.info-section-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.info-row-value {
    font-size: 14px;
    color: #111827;
    word-wrap: break-word;
}

.description-block {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.description-block p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* Right Column - Documents & Screenshot */
.tender-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

/* Documents Section */
.documents-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    
}

.documents-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.documents-section-title [data-lucide] {
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background 0.2s;
}

.document-item:hover {
    background: #f3f4f6;
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.document-icon [data-lucide] {
    width: 20px;
    height: 20px;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    word-wrap: break-word;
    margin-bottom: 4px;
}

.document-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-extension {
    font-size: 11px;
    color: #6b7280;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.document-download-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.document-download-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.document-download-btn [data-lucide] {
    width: 18px;
    height: 18px;
    color: white;
}

.download-all-btn {
    width: 100%;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.download-all-btn:hover {
    background: #1d4ed8;
    
    
}

.download-all-btn [data-lucide] {
    width: 18px;
    height: 18px;
}

.empty-documents {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-documents [data-lucide] {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.empty-documents p {
    margin: 0;
    font-size: 14px;
}

/* Screenshot Section */
.screenshot-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    
}

.screenshot-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshot-section-title [data-lucide] {
    width: 22px;
    height: 22px;
    color: #2563eb;
}

.tender-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.empty-screenshot {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 8px;
}

.empty-screenshot [data-lucide] {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.empty-screenshot p {
    margin: 0;
    font-size: 14px;
}


/* ===========================================
   COLLAPSIBLE SIDEBAR
   =========================================== */

/* Sidebar Toggle Button (in footer) */
.sidebar-toggle {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-top: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    margin-top: 8px;
}

.sidebar-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-toggle [data-lucide] {
    width: 20px;
    height: 20px;
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .sidebar-logo img {
    margin-right: 0;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 12px;
    gap: 0;
}

.sidebar.collapsed .menu-item i {
    margin-right: 0;
    width: 20px;
}

.sidebar.collapsed .sidebar-toggle {
    border-radius: 0;
}

.sidebar.collapsed .sidebar-toggle .ri {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-footer .menu-item {
    padding: 12px;
}

/* Adjust main content when sidebar collapsed */
.sidebar.collapsed ~ .main-content-wrapper {
    width: calc(100vw - 70px);
}

.main-content-wrapper {
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    overflow-x: hidden;
}

.sidebar-text {
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-logo span {
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
}

.menu-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-item i {
    transition: margin 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tooltip for collapsed state */
.sidebar.collapsed .menu-item::after {
    content: attr(title);
    position: absolute;
    left: 70px;
    background: #1f2937;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.sidebar.collapsed .menu-item:hover::after {
    opacity: 1;
}

/* Disabled items show orange tooltip */
.sidebar.collapsed .menu-item.disabled::after {
    background: #f59e0b;
    left: 70px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    content: 'Próximamente';
    padding: 6px 12px;
    border-radius: 6px;
}

.sidebar.collapsed .menu-item.disabled:hover::after {
    opacity: 1;
}


/* Remix Icons in Sidebar Toggle */
.sidebar-toggle .ri {
    font-size: 20px;
}

.sidebar.collapsed .sidebar-toggle .ri {
    transform: rotate(180deg);
}

/* Remix Icons Sizes */
.document-icon .ri {
    font-size: 20px;
}

.key-stat-icon .ri {
    font-size: 24px;
}

.document-download-btn .ri {
    font-size: 18px;
}

.download-all-btn .ri {
    font-size: 18px;
}

.info-section-title .ri {
    font-size: 22px;
}

.documents-section-title .ri,
.screenshot-section-title .ri {
    font-size: 22px;
}

.search-input-wrapper .ri {
    font-size: 20px;
}

.clear-search-btn .ri {
    font-size: 16px;
}

.search-result-matches .ri,
.search-result-meta .ri {
    font-size: 14px;
}


/* ===========================================
   REMIX ICONS (Outline Style - Not Bold)
   =========================================== */
.ri {
    font-size: 20px;
    line-height: 1;
    font-weight: normal !important;
}

.sidebar-nav .ri { font-size: 20px; }
.sidebar-toggle .ri { font-size: 20px; }
.category-card-icon .ri { font-size: 22px; }
.screen-title .ri { font-size: 24px; margin-right: 8px; }
.tender-meta .ri { font-size: 16px; margin-right: 4px; }
.breadcrumb-separator .ri { font-size: 16px; margin: 0 8px; opacity: 0.5; }
.empty-state .ri { font-size: 64px; margin-bottom: 16px; color: #9ca3af; }
.primary-btn .ri, .secondary-btn .ri { font-size: 18px; margin-right: 6px; }
.info-card h3 .ri { font-size: 20px; margin-right: 8px; }
.document-icon .ri { font-size: 20px; }
.key-stat-icon .ri { font-size: 24px; }
.document-download-btn .ri, .download-all-btn .ri { font-size: 18px; }
.info-section-title .ri, .documents-section-title .ri, .screenshot-section-title .ri { font-size: 22px; }
.search-input-wrapper .ri { font-size: 20px; color: #6b7280; }
.clear-search-btn .ri { font-size: 16px; }
.search-result-matches .ri, .search-result-meta .ri { font-size: 14px; }
.card-title .ri { font-size: 20px; margin-right: 8px; }


/* ===========================================
   DOCUMENT ITEMS WITH ICONS
   =========================================== */
.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.document-item:hover {
    background: #f3f4f6;
}

.document-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.document-extension {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.document-download-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.document-download-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.documents-list {
    margin-bottom: 16px;
}

.download-all-btn {
    width: 100%;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.download-all-btn:hover {
    background: #1d4ed8;
}

.empty-documents {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-documents .ri {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}

.empty-documents p {
    font-size: 14px;
    margin: 0;
}

/* ===========================================
   TENDER DETAIL SECTIONS
   =========================================== */
.tender-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.tender-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tender-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.info-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.info-section-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.info-row-value {
    font-size: 14px;
    color: #111827;
}

.description-block {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.description-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

/* Documents Section in Detail */
.documents-section {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.documents-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

/* Screenshot Section */
.screenshot-section {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.screenshot-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.tender-screenshot {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.empty-screenshot {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
}

.empty-screenshot .ri {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.empty-screenshot p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Key Stats Grid */
.key-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.key-stat-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.key-stat-card:hover {
    
    
    border-color: #d1d5db;
}

.key-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    flex-shrink: 0;
}

.key-stat-content {
    flex: 1;
    min-width: 0;
}

.key-stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.key-stat-value {
    font-size: 16px;
    color: #111827;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tender Detail Header */
.tender-detail-header {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.tender-detail-title-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tender-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.tender-detail-number {
    font-size: 14px;
    color: #2563eb;
    background: #eff6ff;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    display: inline-block;
    font-weight: 600;
}


/* ===========================================
   HOME SECTION - INICIO LAYOUT
   =========================================== */

/* Search Card Specific */
.search-card {
    margin-top: 0;
}

.search-card .card-body {
    padding: 0;
}

.search-card .collapsible-content {
    padding: 28px;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #111827;
    background: #f9fafb;
}

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: transparent;
}

.tab-btn .ri {
    font-size: 18px;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Large Search Input */
.large-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #111827;
    background: transparent;
    padding: 0;
}

.large-search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    color: #6b7280;
    margin-right: 12px;
}

/* Cancel Button */
.cancel-btn {
    background: white;
    color: #dc2626;
    border: 2px solid #fecaca;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

/* Auto Progress Display */
.auto-progress {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.auto-progress.hidden {
    display: none;
}

.progress-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    font-weight: 500;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    min-width: 45px;
    text-align: right;
}

/* Batch Input Section */
.batch-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.batch-textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    color: #111827;
    resize: vertical;
    transition: border-color 0.2s;
}

.batch-textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.batch-textarea::placeholder {
    color: #9ca3af;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Batch Options */
.batch-options {
    padding: 12px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

/* Batch Buttons */
.batch-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Batch Progress List */
.batch-progress-list {
    margin-top: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.batch-progress-list.hidden {
    display: none;
}

.batch-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.batch-item:last-child {
    border-bottom: none;
}

.batch-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.batch-item-number {
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
    color: #2563eb;
    font-weight: 600;
}

.batch-item-status {
    font-size: 13px;
    color: #6b7280;
}

.batch-item-progress {
    flex: 1;
    max-width: 300px;
}

.batch-item-progress .progress-track {
    height: 6px;
}

.batch-item.success .batch-item-number {
    color: #059669;
}

.batch-item.error .batch-item-number {
    color: #dc2626;
}

.batch-item.success .progress-fill {
    background: #059669;
}

.batch-item.error .progress-fill {
    background: #dc2626;
}

/* Batch Summary */
.batch-summary {
    margin-top: 24px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.batch-summary.hidden {
    display: none;
}

.batch-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

.summary-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.stat.success .stat-value {
    color: #059669;
}

.stat.error .stat-value {
    color: #dc2626;
}

/* Failed List */
.failed-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.failed-list.hidden {
    display: none;
}

.failed-list h4 {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    margin: 0 0 12px 0;
}

.failed-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.failed-list ul li {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Courier New', Courier, monospace;
    padding: 4px 0;
}

.failed-list ul li::before {
    content: "×";
    color: #dc2626;
    font-weight: bold;
    margin-right: 8px;
}

/* Progress Section (Steps Display) */
#progress-section {
    margin-top: 0;
}

#progress-section.hidden {
    display: none;
}

#progress-section .collapsible-content {
    padding: 28px;
}

.progress-two-columns {
    display: block;
}

.progress-steps-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.workflow-step.active {
    background: #eff6ff;
    border-color: #3b82f6;
}

.workflow-step.completed {
    background: #f0fdf4;
    border-color: #10b981;
}

.workflow-step.error {
    background: #fef2f2;
    border-color: #ef4444;
}

.step-indicator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Pulsating circles around the indicator number */
.workflow-step.active .step-indicator::before,
.workflow-step.active .step-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #3b82f6;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.workflow-step.active .step-indicator::after {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 170%;
        height: 170%;
        opacity: 0;
    }
}

.workflow-step.active .step-indicator {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.workflow-step.completed .step-indicator {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.workflow-step.completed .step-indicator::before {
    content: '✓';
    position: absolute;
    font-size: 22px;
    font-weight: 700;
}

.workflow-step.error .step-indicator {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.workflow-step.error .step-indicator::before {
    content: '✕';
    position: absolute;
    font-size: 22px;
    font-weight: 700;
}

.step-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.step-status {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.workflow-step.active .step-status {
    color: #3b82f6;
    font-weight: 500;
}

.workflow-step.completed .step-status {
    color: #10b981;
    font-weight: 500;
}

.workflow-step.error .step-status {
    color: #ef4444;
    font-weight: 500;
}

/* Step Progress Bar */
.step-progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}

.step-progress-bar {
    height: 100%;
    width: 0%;
    background: #9ca3af;
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animated shimmer with moving wave effect */
.workflow-step.active .step-progress-bar {
    background: linear-gradient(90deg, 
        #2563eb 0%, 
        #3b82f6 25%, 
        #60a5fa 50%, 
        #3b82f6 75%, 
        #2563eb 100%
    );
    background-size: 300% 100%;
    animation: shimmer-wave 2s ease-in-out infinite;
}

/* Add a glowing overlay that moves */
.workflow-step.active .step-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    animation: shine 2s ease-in-out infinite;
}

@keyframes shimmer-wave {
    0% {
        background-position: 300% 0;
    }
    100% {
        background-position: -300% 0;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

.workflow-step.completed .step-progress-bar {
    width: 100%;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    animation: none;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.workflow-step.error .step-progress-bar {
    width: 100%;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
    animation: none;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Progress Screenshot Column */
.progress-screenshot-column {
    display: flex;
    flex-direction: column;
}

.screenshot-preview-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.screenshot-preview-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.screenshot-preview-label .ri {
    font-size: 18px;
}

.screenshot-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder {
    text-align: center;
    color: #9ca3af;
}

.screenshot-placeholder .ri {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.screenshot-placeholder p {
    font-size: 14px;
    margin: 0;
}

#screenshotImage {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Collapsible Content Animation */
.collapsible-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card.collapsed .collapsible-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 24px;
    color: #6b7280;
}

.card.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* Responsive: Home Section */
@media (max-width: 1024px) {
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 20px 16px;
    }
    
    .search-card .collapsible-content {
        padding: 20px 16px;
    }
    
    .batch-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-buttons button {
        width: 100%;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .workflow-steps {
        gap: 12px;
    }
    
    .workflow-step {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: flex-start;
        padding-left: 16px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .primary-btn,
    .cancel-btn {
        width: 100%;
        justify-content: center;
    }
    
    .batch-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-item-progress {
        max-width: 100%;
    }
}


/* ===========================================
   DATABASE STATISTICS DASHBOARD
   =========================================== */

.stats-card {
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.stat-icon.green {
    background: #f0fdf4;
    color: #10b981;
}

.stat-icon.purple {
    background: #faf5ff;
    color: #9333ea;
}

.stat-icon.orange {
    background: #fff7ed;
    color: #f97316;
}

.stat-icon .ri {
    font-size: 28px;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Category Breakdown */
.category-breakdown {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.breakdown-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
}

/* Breakdown Grid - using same style as category cards */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.breakdown-card {
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
}

.breakdown-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Legacy styles (kept for compatibility) */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.breakdown-category {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.breakdown-category .ri {
    font-size: 18px;
    color: #6b7280;
}

.breakdown-code {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    margin-left: auto;
}

.breakdown-count {
    font-size: 14px;
    color: #6b7280;
}

.breakdown-count strong {
    color: #2563eb;
    font-weight: 700;
}

.breakdown-percent {
    color: #0066CC;
    font-weight: 600;
    margin-left: 4px;
}

.breakdown-empty {
    text-align: center;
    padding: 32px;
    color: #9ca3af;
}

.breakdown-empty .ri {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 24px;
    }
}


/* ===========================================
   DEPLOY SYSTEM
   =========================================== */
.deploy-content {
    padding: 0;
}

.deploy-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.deploy-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.deploy-stat-card i {
    font-size: 32px;
    color: #2563eb;
}

.deploy-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.deploy-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.deploy-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.deploy-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.deploy-category {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.deploy-category-header {
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deploy-category-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deploy-category-count {
    font-size: 13px;
    color: #6b7280;
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.deploy-items {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deploy-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.deploy-item:hover {
    border-color: #2563eb;
}

.deploy-item-header {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.deploy-item-info {
    flex: 1;
}

.deploy-item-number {
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.deploy-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 8px 0 4px 0;
}

.deploy-item-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.deploy-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.deploy-item-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid #e5e7eb;
}

.deploy-item-content.hidden {
    display: none;
}

.deploy-item-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.action-btn i {
    font-size: 16px;
}

.deploy-item-details {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
    min-width: 100px;
}

.detail-value {
    color: #111827;
}

.loading-state, .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.loading-state i, .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state h3 {
    font-size: 18px;
    color: #6b7280;
    margin: 16px 0 8px 0;
}

.empty-state p {
    font-size: 14px;
    color: #9ca3af;
}


/* ===========================================
   ENHANCED TENDER DETAIL VIEW - 2 COLUMN RESPONSIVE
   =========================================== */

/* Info Sections - Enhanced */
.info-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.info-section-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 20px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #f3f4f6 !important;
}

.info-section-title i {
    font-size: 20px !important;
    color: #2563eb !important;
}

.info-section-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: grid !important;
    grid-template-columns: 180px 1fr !important;
    gap: 16px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    align-items: start !important;
}

.info-row:last-child {
    border-bottom: none !important;
}

.info-row-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    padding-top: 2px;
}

.info-row-value {
    font-size: 14px !important;
    color: #111827 !important;
    line-height: 1.5 !important;
}

.description-block {
    padding: 16px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    border-left: 3px solid #2563eb !important;
}

.description-block p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

/* Documents Section - Enhanced */
.documents-section {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

.documents-section-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.documents-section-title i {
    font-size: 20px !important;
    color: #2563eb !important;
}

/* Responsive Enhancements for Tender Detail */
@media (max-width: 768px) {
    .info-section {
        padding: 20px !important;
    }
    
    .info-section-title {
        font-size: 15px !important;
        margin-bottom: 16px !important;
    }
    
    .info-row {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 12px 0 !important;
    }
    
    .info-row-label {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
    }
    
    .info-row-value {
        font-size: 14px !important;
    }
    
    .documents-section {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 16px !important;
    }
    
    .info-section-title {
        font-size: 14px !important;
    }
    
    .description-block {
        padding: 12px !important;
    }
    
    .documents-section {
        padding: 16px !important;
    }
}


/* ===========================================
   FULLY RESPONSIVE LAYOUT - NO HORIZONTAL SCROLL
   =========================================== */

/* Desktop Large */
@media (min-width: 1440px) {
    .content-section {
        padding: 40px;
        margin: 0 auto;
        width: 100%;
        max-width: 1400px;
    }
}

/* Desktop */
@media (max-width: 1439px) {
    .content-section {
        padding: 32px;
        width: 100%;
        max-width: 100%;
    }
}

/* Tablet Large */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }
    
    .sidebar .sidebar-logo span,
    .sidebar .sidebar-text {
        opacity: 0 !important;
        width: 0 !important;
    }
    
    .sidebar .menu-item {
        justify-content: center !important;
        padding: 12px !important;
    }
    
    .sidebar .sidebar-logo {
        justify-content: center !important;
    }
    
    .content-section {
        padding: 24px;
    }
    
    .main-content-wrapper {
        width: calc(100vw - 70px) !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .content-section {
        padding: 20px;
    }
    
    .screen-container {
        padding: 0 !important;
    }
    
    .card {
        margin-bottom: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-70px);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content-wrapper {
        width: 100vw !important;
        margin-left: 0 !important;
    }
    
    .content-section {
        padding: 16px;
    }
    
    .fixed-header {
        padding-left: 60px;
    }
}

/* Prevent any horizontal overflow */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box;
}

.app-container,
.main-content-wrapper,
.main-content,
.sidebar,
.content-section {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Download Notification */
.download-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideInUp 0.3s ease-out;
    min-width: 300px;
}

.download-notification.success {
    border-color: #10b981;
}

.download-notification.success i {
    color: #10b981;
}

.download-notification.error {
    border-color: #ef4444;
}

.download-notification.error i {
    color: #ef4444;
}

.download-notification i {
    font-size: 24px;
    color: #3b82f6;
    animation: pulse 1.5s ease-in-out infinite;
}

.download-notification.success i,
.download-notification.error i {
    animation: none;
}

.download-notification span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

/* Loading spinner for active downloads */
.download-notification:not(.success):not(.error)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px 10px 0 0;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}


/* ========================================
   PROFESSIONAL BRANDING - MÉXICO 2026 | JR-TEAM
   ======================================== */

/* App Footer Branding - DISABLED */
.app-footer {
    display: none !important;
}

/* Professional Login Branding */
.login-logo p {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 16px;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e293b 100%);
    opacity: 0.95;
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
}

/* Login shake animation on error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-form.shake {
    animation: shake 0.5s ease-in-out;
}

/* Professional Sidebar Branding */
.sidebar-logo span.sidebar-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Success State Styling */
.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Loading spinner for login button */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Professional Color Scheme - Mexican Flag Inspired */
:root {
    --mexico-green: #006847;
    --mexico-white: #ffffff;
    --mexico-red: #ce1126;
    --jr-blue: #2563eb;
    --jr-dark: #0f172a;
}

/* Enhance primary buttons with gradient */
.primary-btn {
    background: linear-gradient(135deg, var(--jr-blue) 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Professional Badge Styles */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhance card headers */
.screen-title {
    background: linear-gradient(135deg, var(--jr-dark) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Professional focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--jr-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Watermark (optional - subtle branding) */
.app-container::after {
    content: 'MÉXICO 2026 • JR-TEAM';
    position: fixed;
    bottom: 50px;
    right: 20px;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.05);
    font-weight: 700;
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    /* Footer removed */
}


/* ===========================================
   ANIMATED FOLDER ICON - Enhanced Version
   =========================================== */
.category-card-icon-animated {
    position: relative;
    width: 100px !important;
    height: 80px !important;
    background: #eee;
    box-sizing: border-box;
    border-style: solid;
    border-radius: 0 5px 5px 5px !important;
    transition: border-top-width 0.3s ease, transform 0.2s ease;
    transform-origin: 0% 100%;
    cursor: pointer;
    flex-shrink: 0;
    display: block !important;
}

/* Tab on top */
.category-card-icon-animated:before {
    content: '';
    position: absolute;
    border-radius: 3px 3px 0 0;
}

/* Foldover effect */
.category-card-icon-animated:after {
    content: '';
    position: absolute;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    transition: transform 0.2s ease, background 0.2s ease;
    transform-origin: 0% 100%;
}

/* Icon positioning */
.category-card-icon-animated .ri {
    position: absolute !important;
    z-index: 2;
    width: 100px;
    height: 73px;
    line-height: 73px !important;
    text-align: center;
    bottom: -7px;
    left: -7px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease;
    transform-origin: 0% 100%;
    font-size: 45px !important;
}

/* Hover Animation */
.category-card-large:hover .category-card-icon-animated {
    border-top-width: 7px !important;
}

.category-card-large:hover .category-card-icon-animated:after,
.category-card-large:hover .category-card-icon-animated .ri {
    transform: scaleY(0.85) skewX(-15deg);
}

/* Color Variants - Blue */
.category-card-icon-animated.blue {
    border-width: 7px;
    border-color: rgb(130, 190, 250);
    border-top-width: 28px;
}
.category-card-icon-animated.blue:before {
    background: rgb(130, 190, 250);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.blue:after {
    background: rgb(110, 170, 230);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.blue .ri {
    color: rgb(70, 130, 190);
}
.category-card-large:hover .category-card-icon-animated.blue:after {
    background: rgb(95, 155, 215);
}

/* Color Variants - Green */
.category-card-icon-animated.green {
    border-width: 7px;
    border-color: rgb(134, 239, 172);
    border-top-width: 28px;
}
.category-card-icon-animated.green:before {
    background: rgb(134, 239, 172);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.green:after {
    background: rgb(110, 215, 148);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.green .ri {
    color: rgb(74, 175, 108);
}
.category-card-large:hover .category-card-icon-animated.green:after {
    background: rgb(95, 195, 133);
}

/* Color Variants - Purple */
.category-card-icon-animated.purple {
    border-width: 7px;
    border-color: rgb(216, 180, 254);
    border-top-width: 28px;
}
.category-card-icon-animated.purple:before {
    background: rgb(216, 180, 254);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.purple:after {
    background: rgb(196, 160, 234);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.purple .ri {
    color: rgb(146, 110, 184);
}
.category-card-large:hover .category-card-icon-animated.purple:after {
    background: rgb(176, 145, 214);
}

/* Color Variants - Orange */
.category-card-icon-animated.orange {
    border-width: 7px;
    border-color: rgb(253, 186, 116);
    border-top-width: 28px;
}
.category-card-icon-animated.orange:before {
    background: rgb(253, 186, 116);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.orange:after {
    background: rgb(233, 166, 96);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.orange .ri {
    color: rgb(193, 126, 56);
}
.category-card-large:hover .category-card-icon-animated.orange:after {
    background: rgb(213, 151, 81);
}

/* Color Variants - Red */
.category-card-icon-animated.red {
    border-width: 7px;
    border-color: rgb(252, 165, 165);
    border-top-width: 28px;
}
.category-card-icon-animated.red:before {
    background: rgb(252, 165, 165);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.red:after {
    background: rgb(232, 145, 145);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.red .ri {
    color: rgb(192, 105, 105);
}
.category-card-large:hover .category-card-icon-animated.red:after {
    background: rgb(212, 130, 130);
}

/* Color Variants - Indigo */
.category-card-icon-animated.indigo {
    border-width: 7px;
    border-color: rgb(165, 180, 252);
    border-top-width: 28px;
}
.category-card-icon-animated.indigo:before {
    background: rgb(165, 180, 252);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.indigo:after {
    background: rgb(145, 160, 232);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.indigo .ri {
    color: rgb(105, 120, 192);
}
.category-card-large:hover .category-card-icon-animated.indigo:after {
    background: rgb(130, 145, 212);
}

/* Color Variants - Yellow */
.category-card-icon-animated.yellow {
    border-width: 7px;
    border-color: rgb(253, 224, 71);
    border-top-width: 28px;
}
.category-card-icon-animated.yellow:before {
    background: rgb(253, 224, 71);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.yellow:after {
    background: rgb(233, 204, 51);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.yellow .ri {
    color: rgb(193, 164, 11);
}
.category-card-large:hover .category-card-icon-animated.yellow:after {
    background: rgb(213, 184, 36);
}

/* Color Variants - Cyan */
.category-card-icon-animated.cyan {
    border-width: 7px;
    border-color: rgb(103, 232, 249);
    border-top-width: 28px;
}
.category-card-icon-animated.cyan:before {
    background: rgb(103, 232, 249);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.cyan:after {
    background: rgb(83, 212, 229);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.cyan .ri {
    color: rgb(43, 172, 189);
}
.category-card-large:hover .category-card-icon-animated.cyan:after {
    background: rgb(68, 197, 214);
}

/* Color Variants - Pink */
.category-card-icon-animated.pink {
    border-width: 7px;
    border-color: rgb(249, 168, 212);
    border-top-width: 28px;
}
.category-card-icon-animated.pink:before {
    background: rgb(249, 168, 212);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.pink:after {
    background: rgb(229, 148, 192);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.pink .ri {
    color: rgb(189, 108, 152);
}
.category-card-large:hover .category-card-icon-animated.pink:after {
    background: rgb(209, 133, 177);
}

/* Color Variants - Gray */
.category-card-icon-animated.gray {
    border-width: 7px;
    border-color: rgb(209, 213, 219);
    border-top-width: 28px;
}
.category-card-icon-animated.gray:before {
    background: rgb(209, 213, 219);
    width: 35px;
    height: 5px;
    bottom: 66px;
    left: -7px;
}
.category-card-icon-animated.gray:after {
    background: rgb(189, 193, 199);
    width: 100px;
    height: 73px;
    bottom: -7px;
    left: -7px;
}
.category-card-icon-animated.gray .ri {
    color: rgb(139, 143, 149);
}
.category-card-large:hover .category-card-icon-animated.gray:after {
    background: rgb(174, 178, 184);
}

/* =============================================
   ANIMATED FOLDER ICON FOR TENDER CARDS (SMALLER)
   ============================================= */

.folder-icon-animated {
    position: relative;
    background: #1f2937;
    width: 60px;
    height: 48px;
    box-sizing: border-box;
    border: 4px solid rgb(130, 190, 250);
    border-top-width: 17px;
    border-radius: 0 3px 3px;
    transition: border-top-width 0.3s, transform 0.2s;
    transform-origin: 0% 100%;
    cursor: pointer;
    margin: 0 auto 12px;
}

.folder-icon-animated:before,
.folder-icon-animated:after {
    content: '';
    background: rgb(130, 190, 250);
    position: absolute;
}

/* Tab */
.folder-icon-animated:before {
    width: 21px;
    height: 3px;
    bottom: 44px;
    left: -4px;
    border-radius: 2px 2px 0 0;
}

/* Foldover */
.folder-icon-animated:after {
    width: 60px;
    height: 44px;
    bottom: -4px;
    left: -4px;
    background: rgb(110, 170, 230);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    transition: transform 0.2s, background 0.2s;
    transform-origin: 0% 100%;
}

/* Icon */
.folder-icon-animated i {
    position: absolute;
    width: 60px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    bottom: -4px;
    left: -4px;
    z-index: 2;
    color: rgb(70, 130, 190);
    font-size: 27px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s, color 0.2s;
    transform-origin: 0% 100%;
}

/* Badge on animated folder */
.folder-icon-animated .folder-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Hover Effect */
.folder-card:hover .folder-icon-animated {
    border-top-width: 4px;
}

.folder-card:hover .folder-icon-animated:after,
.folder-card:hover .folder-icon-animated i {
    transform: scaleY(0.85) skewX(-15deg);
}

.folder-card:hover .folder-icon-animated:after {
    background: rgb(90, 150, 210);
}

.folder-card:hover .folder-icon-animated i {
    color: rgb(50, 110, 170);
}

/* Small variant for list view */
.folder-icon-animated.small {
    width: 40px;
    height: 32px;
    border-width: 3px;
    border-top-width: 11px;
    margin: 0;
}

.folder-icon-animated.small:before {
    width: 14px;
    height: 2px;
    bottom: 29px;
    left: -3px;
}

.folder-icon-animated.small:after {
    width: 40px;
    height: 29px;
    bottom: -3px;
    left: -3px;
}

.folder-icon-animated.small i {
    width: 40px;
    height: 29px;
    line-height: 29px;
    bottom: -3px;
    left: -3px;
    font-size: 18px;
}

.tender-list-item:hover .folder-icon-animated.small {
    border-top-width: 3px;
}

.tender-list-item:hover .folder-icon-animated.small:after,
.tender-list-item:hover .folder-icon-animated.small i {
    transform: scaleY(0.85) skewX(-15deg);
}

.tender-list-item:hover .folder-icon-animated.small:after {
    background: rgb(90, 150, 210);
}

.tender-list-item:hover .folder-icon-animated.small i {
    color: rgb(50, 110, 170);
}
