/* ================================================================
   TATЛИФТ CRM - Design Upgrade v2.0
   Modern glassmorphism, layered shadows, micro-animations
   ================================================================ */

/* === GLOBAL IMPROVEMENTS === */
body {
    background: #f0f4f8 !important;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.02) 0%, transparent 70%) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* === PORTAL HEADER GLASSMORPHISM === */
.portal-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.97) 100%) !important;
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.12) !important;
}

.portal-nav-item {
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.portal-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.portal-nav-item.active::before {
    opacity: 1;
}

.portal-nav-item.active {
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.1), 0 0 16px rgba(37, 99, 235, 0.1) !important;
}

.portal-nav-item.tenders-nav.active,
.portal-nav-item.goszakupki-nav.active {
    box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.1), 0 0 16px rgba(124, 58, 237, 0.1) !important;
}

.portal-nav-item.crm-nav.active {
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.1), 0 0 16px rgba(245, 158, 11, 0.1) !important;
}

.portal-nav-item.predotbor-nav.active {
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.1), 0 0 16px rgba(16, 185, 129, 0.1) !important;
}

.portal-logo img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.portal-logo:hover img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.3)) !important;
}

/* User avatar glow */
.portal-user-avatar {
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
    transition: all 0.3s !important;
}

.portal-user-btn:hover .portal-user-avatar {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

/* === SIDEBAR GLASSMORPHISM === */
.sidebar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%) !important;
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12) !important;
}

.sidebar-menu li {
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 2px !important;
    position: relative;
    overflow: hidden;
}

.sidebar-menu li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transform: scaleY(0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu li:hover::after {
    opacity: 0.5;
    transform: scaleY(0.8);
}

.sidebar-menu li.active::after {
    opacity: 0 !important;
}

.sidebar-menu li.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.sidebar-menu li.active.tenders-active {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
    box-shadow:
        0 4px 16px rgba(124, 58, 237, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.sidebar-section-header {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 10px !important;
    letter-spacing: 1.8px !important;
}

/* === STAT CARDS - LAYERED SHADOWS === */
.stat-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.06) inset,
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.06),
        0 20px 44px rgba(0, 0, 0, 0.03) !important;
}

.stat-card::before {
    height: 3px !important;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #3b82f6) !important;
    background-size: 200% 100% !important;
    animation: shimmer 3s ease infinite !important;
}

.stat-card:hover::before {
    opacity: 1 !important;
}

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

.stat-value {
    font-weight: 800 !important;
    letter-spacing: -1.5px !important;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === FILTERS CARD === */
.filters-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* === TABLE CONTAINER === */
.table-container {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    overflow: hidden !important;
}

/* Better table headers */
th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 2px solid #e2e8f0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: #475569 !important;
    transition: all 0.2s !important;
}

th:hover {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #1e293b !important;
}

/* Better row hover */
tbody tr {
    transition: all 0.15s ease-out !important;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.04) 0%, rgba(59, 130, 246, 0.015) 100%) !important;
}

tr.clickable-row {
    cursor: pointer;
}

tr.clickable-row:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%) !important;
}

tr.clickable-row:active {
    background: rgba(37, 99, 235, 0.08) !important;
}

/* Elevators badge glow */
.elevators-count {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
}

tr:hover .elevators-count {
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.4) !important;
    transform: scale(1.05);
}

/* Fund badges */
.fund-badge.special {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border: 1px solid #a7f3d0 !important;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.08) !important;
}

.fund-badge.regional {
    background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
    border: 1px solid #fed7aa !important;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.08) !important;
}

/* Balance glow */
.balance {
    font-weight: 700 !important;
    color: #059669 !important;
}

/* === WELCOME BANNER (Main Page) === */
.mp-welcome {
    background: linear-gradient(135deg, #0c1a3a 0%, #1a3567 25%, #2563eb 60%, #3b82f6 85%, #60a5fa 100%) !important;
    border-radius: 20px !important;
    padding: 40px 44px !important;
    box-shadow:
        0 8px 32px rgba(37, 99, 235, 0.2),
        0 16px 48px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
}

.mp-welcome::before {
    content: '' !important;
    position: absolute !important;
    top: -80% !important;
    right: -15% !important;
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 65%) !important;
    pointer-events: none !important;
    animation: floatOrb 8s ease-in-out infinite !important;
}

.mp-welcome::after {
    content: '' !important;
    position: absolute !important;
    bottom: -60% !important;
    left: -10% !important;
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 60%) !important;
    pointer-events: none !important;
    animation: floatOrb 10s ease-in-out infinite reverse !important;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -15px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

.mp-welcome-title {
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    z-index: 1;
}

.mp-welcome-sub {
    position: relative;
    z-index: 1;
    font-size: 15px !important;
}

.mp-welcome-date {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === SECTION PANELS (Main Page) === */
.mp-sections {
    gap: 20px !important;
}

.mp-section-panel {
    border-radius: 20px !important;
    padding: 28px 32px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative !important;
    overflow: hidden !important;
}

.mp-section-panel::before {
    height: 4px !important;
    border-radius: 0 0 4px 4px !important;
}

/* Decorative corner glow */
.mp-section-panel .mp-section-icon {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mp-section-panel:hover .mp-section-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.mp-section-panel:hover {
    transform: translateY(-6px) !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.06),
        0 24px 64px rgba(0, 0, 0, 0.03) !important;
}

.mp-section-blue:hover {
    border-color: rgba(37, 99, 235, 0.15) !important;
}

.mp-section-purple:hover {
    border-color: rgba(124, 58, 237, 0.15) !important;
}

.mp-section-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
    color: #0f172a !important;
}

.mp-section-desc {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
}

.mp-stat-value {
    font-size: 26px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

.mp-stat-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
}

.mp-section-go {
    font-weight: 700 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mp-section-panel:hover .mp-section-go {
    transform: translateX(6px);
    letter-spacing: 0.3px;
}

/* === NEWS SECTION (Main Page) === */
.mp-news-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

.mp-news-featured {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.mp-news-featured:hover {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-4px) !important;
}

.mp-news-featured-title {
    font-weight: 800 !important;
}

.mp-news-card {
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.mp-news-card:hover {
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-4px) !important;
}

.mp-news-card:hover .mp-news-card-img img {
    transform: scale(1.08) !important;
}

.mp-news-card-img {
    border-radius: 18px 18px 0 0 !important;
    overflow: hidden !important;
}

.mp-news-card-img img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mp-news-card-title {
    font-weight: 700 !important;
}

.mp-news-source {
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

/* === FORM ELEMENTS === */
select,
input[type="text"],
input[type="number"] {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: white !important;
}

select:hover,
input[type="text"]:hover,
input[type="number"]:hover {
    border-color: #cbd5e1 !important;
}

select:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #3b82f6 !important;
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* === BUTTONS === */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow:
        0 2px 4px rgba(37, 99, 235, 0.15),
        0 4px 12px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow:
        0 4px 8px rgba(37, 99, 235, 0.2),
        0 8px 24px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 1px 2px rgba(37, 99, 235, 0.2),
        inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.btn-ghost {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
}

.btn-ghost:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    transform: translateY(-1px);
}

/* === AUTH PAGE === */
.auth-container {
    background: linear-gradient(135deg, #0c1222 0%, #162036 30%, #1e3a5f 70%, #1a2744 100%) !important;
    position: relative;
}

.auth-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 40%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    border-radius: 24px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    z-index: 1;
}

.auth-logo-icon {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3) !important;
    border-radius: 18px !important;
}

.auth-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-btn:hover {
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4) !important;
    transform: translateY(-2px) !important;
}

.auth-tabs {
    border-radius: 14px !important;
    padding: 4px !important;
    background: #f1f5f9 !important;
}

.auth-tab {
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-tab.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.auth-field input {
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-field input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
}

/* === MODALS === */
.modal-overlay {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.modal-content {
    border-radius: 20px !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    animation: modalEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header h2 {
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}

.modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    font-size: 22px !important;
    color: #94a3b8 !important;
}

.modal-close:hover {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* === PAGINATION === */
.pagination {
    background: linear-gradient(180deg, #fafbfc, #f1f5f9) !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 0 16px 16px !important;
}

.pagination-buttons button {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1.5px solid #e2e8f0 !important;
}

.pagination-buttons button:hover:not(:disabled) {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.04) !important;
    transform: translateY(-1px);
}

.pagination-buttons button.active {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-color: #2563eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* === YEAR CHECKBOXES === */
.year-checkbox {
    border-radius: 22px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1.5px solid transparent !important;
}

.year-checkbox:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

.year-checkbox.selected {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
    border-color: transparent !important;
}

.year-checkbox.overdue.selected {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

/* === FILTER BADGES === */
.filter-badge {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
    border-radius: 24px !important;
    transition: all 0.2s !important;
}

.filter-badge:hover {
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35) !important;
}

/* === LOADING SPINNER === */
.loading::before {
    border: 3px solid rgba(37, 99, 235, 0.1) !important;
    border-top-color: #2563eb !important;
    width: 36px !important;
    height: 36px !important;
}

/* === PAGE TITLE WITH GRADIENT === */
.page-title {
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === DASHBOARD CHART CARDS === */
.chart-card-v3 {
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 18px !important;
    padding: 24px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.04) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* === KPI CARDS (Dashboard) === */
.kpi-card-v3 {
    border-radius: 18px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.kpi-card-v3:hover {
    transform: translateY(-3px) !important;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* === ADMIN SECTION === */
.admin-section {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.92) !important;
}

/* === USER CARD (Admin) === */
.user-card {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s !important;
}

.user-card:hover {
    background: #f1f5f9 !important;
}

.btn-approve {
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.2s !important;
}

.btn-approve:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.btn-reject {
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !important;
    transition: all 0.2s !important;
}

.btn-reject:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    transform: translateY(-1px);
}

/* === COMPANIES PAGE === */
.companies-stat {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.companies-stat:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.06) !important;
}

.companies-stat-value {
    font-weight: 800 !important;
    letter-spacing: -1px !important;
}

/* === NOTIFICATION DROPDOWN === */
.notification-dropdown {
    border-radius: 16px !important;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.notification-item {
    transition: all 0.15s !important;
}

.notification-item:hover {
    background: #f8fafc !important;
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.04) !important;
}

/* === PORTAL USER DROPDOWN === */
.portal-user-dropdown {
    border-radius: 16px !important;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    animation: dropdownEnter 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portal-user-dropdown-item {
    transition: all 0.15s !important;
    border-radius: 8px !important;
    margin: 2px 4px !important;
}

.portal-user-dropdown-item:hover {
    background: #f1f5f9 !important;
}

/* === ERROR MESSAGES === */
.error {
    border-radius: 14px !important;
    border: 1px solid #fecaca !important;
    background: linear-gradient(135deg, #fef2f2, #fff1f2) !important;
}

/* === MC LINK === */
.mc-link {
    position: relative;
    transition: all 0.2s !important;
}

.mc-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mc-link:hover::after {
    width: 100%;
}

.mc-link:hover {
    text-decoration: none !important;
}

/* === NOTIFICATION BELL PULSE === */
.notification-bell.has-unread .notification-badge {
    animation: badgePulse 2s ease-in-out infinite !important;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* === ADDRESS CELL IMPROVEMENTS === */
.address-street {
    font-weight: 600 !important;
    color: #1e293b !important;
}

.address-region {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* === SMOOTH FOCUS RING === */
*:focus-visible {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* === SKELETON LOADER === */
@keyframes skeletonPulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* === NICE CHECKBOX STYLING === */
input[type="checkbox"] {
    accent-color: #2563eb !important;
    cursor: pointer;
}

/* === SUBTLE BACKGROUND PATTERN FOR MAIN CONTENT === */
.main, .main-full-width, .main-with-sidebar {
    position: relative;
}

/* === RESPONSIVE IMPROVEMENTS === */
@media (max-width: 768px) {
    .mp-welcome {
        padding: 28px 24px !important;
        border-radius: 16px !important;
    }

    .mp-welcome-title {
        font-size: 22px !important;
    }

    .mp-section-panel {
        border-radius: 16px !important;
    }

    .stat-card {
        border-radius: 14px !important;
    }

    .modal-content {
        border-radius: 20px 20px 0 0 !important;
    }

    .mp-welcome-date {
        padding: 6px 12px;
    }
}

/* === AMBER/GOLD SECTION PANEL (for CRM) === */
.mp-section-amber::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}

.mp-section-amber:hover {
    border-color: rgba(245, 158, 11, 0.15) !important;
}

/* === GREEN SECTION PANEL (for Predotbor) === */
.mp-section-green::before {
    background: linear-gradient(90deg, #10b981, #34d399) !important;
}

.mp-section-green:hover {
    border-color: rgba(16, 185, 129, 0.15) !important;
}

/* === TOOLTIP IMPROVEMENTS === */
[data-tooltip]::after {
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    background: #0f172a !important;
    font-size: 12px !important;
    padding: 8px 16px !important;
}

/* === GENERAL SMOOTHNESS === */
* {
    scroll-behavior: smooth;
}

/* Prevent layout shift on hover transforms */
.stat-card,
.mp-section-panel,
.mp-news-card,
.mp-news-featured,
.companies-stat,
.kpi-card-v3,
.btn {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* ================================================================
   MAINPAGE V2 - Hero, Cards, Widgets
   ================================================================ */

/* Hero floating orbs */
.mp-hero-v2 {
    position: relative !important;
}

.mp-hero-v2::before {
    content: '' !important;
    position: absolute !important;
    top: -30% !important;
    right: -5% !important;
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, rgba(59, 130, 246, 0.04) 40%, transparent 65%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    animation: heroOrb1 12s ease-in-out infinite !important;
    z-index: 1 !important;
}

.mp-hero-v2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40% !important;
    left: -8% !important;
    width: 350px !important;
    height: 350px !important;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.14) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 65%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    animation: heroOrb2 15s ease-in-out infinite !important;
    z-index: 1 !important;
}

@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, 15px) scale(1.05); }
    50% { transform: translate(15px, -20px) scale(0.95); }
    75% { transform: translate(-10px, -10px) scale(1.02); }
}

@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(25px, -10px) scale(1.08); }
    60% { transform: translate(-15px, 20px) scale(0.92); }
    80% { transform: translate(10px, 15px) scale(1.04); }
}

/* Section cards v2 */
.mp-card-v2 {
    border-top: 4px solid transparent !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 1px solid rgba(0,0,0,0.04) !important;
    border-right: 1px solid rgba(0,0,0,0.04) !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
}

.mp-card-spec {
    border-top-color: #2563eb !important;
}

.mp-card-proc {
    border-top-color: #7c3aed !important;
}

.mp-card-crm {
    border-top-color: #f59e0b !important;
}

.mp-card-v2:hover {
    border-top-width: 4px !important;
}

.mp-card-spec:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08), 0 20px 48px rgba(0,0,0,0.06) !important;
}

.mp-card-proc:hover {
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08), 0 20px 48px rgba(0,0,0,0.06) !important;
}

.mp-card-crm:hover {
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.08), 0 20px 48px rgba(0,0,0,0.06) !important;
}

/* Widget cards v2 */
.mp-widget-v2 {
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mp-widget-v2:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.06) !important;
}


/* ================================================================
   FINAL DESIGN TOUCHES - v2.1
   ================================================================ */

/* === SIDEBAR HEADER TITLE === */
.sidebar-header > div {
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    padding: 16px 20px 8px !important;
}

/* === SIDEBAR SCROLLBAR === */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* === BUILDING DETAIL PAGE === */
/* Back button */
.main button[style*="gap: 8px"],
.main-with-sidebar button[style*="gap: 8px"] {
    transition: all 0.2s !important;
}

/* Detail page cards */
.main div[style*="borderRadius: 16px"][style*="background: white"],
.main-with-sidebar div[style*="borderRadius: 16px"][style*="background: white"] {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

/* === STATUS BADGES (used in tables and detail pages) === */
span[style*="borderRadius: 12px"][style*="padding: 2px 8px"],
span[style*="border-radius: 12px"][style*="padding: 2px 8px"] {
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
}

/* === TENDERS PAGE - card improvements === */
div[style*="borderRadius: '16px'"][style*="border: '1px solid #e2e8f0'"] {
    border-radius: 18px !important;
    border-color: rgba(0,0,0,0.06) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04) !important;
}

/* === PREDOTBOR PAGE MATRIX === */
.predotbor-matrix table {
    border-radius: 12px;
    overflow: hidden;
}

/* === CRM SALES PAGE === */
/* Deal cards in kanban/list view */
.crm-deal-card,
div[class*="deal-card"] {
    border-radius: 14px !important;
    transition: all 0.2s !important;
}

/* === ENRICHMENT PAGE TABS === */
div[style*="borderBottom: '2px solid #2563eb'"],
div[style*="border-bottom: 2px solid #2563eb"] {
    border-radius: 8px 8px 0 0 !important;
}

/* === FROZEN PAGE === */
/* frozen cards get subtle blue tint */
.frozen-building-card,
div[style*="#e0f7fa"] {
    border-radius: 12px !important;
}

/* === MEETINGS PAGE === */
/* Calendar-like items */
div[style*="borderLeft: '4px solid"],
div[style*="border-left: 4px solid"] {
    border-radius: 0 12px 12px 0 !important;
    transition: all 0.2s !important;
}

/* === NOTIFICATION DROPDOWN ITEMS === */
.notification-item {
    border-radius: 8px !important;
    margin: 2px 4px !important;
}

.notification-item:last-child {
    border-bottom: none !important;
}

/* === PORTAL HEADER SUBTLE SHINE === */
.portal-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 20%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.04) 80%,
        transparent 100%
    );
    pointer-events: none;
}

/* === SIDEBAR BOTTOM GRADIENT === */
.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.5));
    pointer-events: none;
    z-index: 1;
}

/* === MC DETAIL PAGE === */
/* Company info card */
div[style*="borderRadius: 20px"][style*="background: white"] {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04) !important;
}

/* === BETTER BADGE PILLS === */
span[style*="borderRadius: 20px"],
span[style*="border-radius: 20px"] {
    transition: all 0.15s !important;
}

/* === SMOOTH PAGE TRANSITIONS === */
.main, .main-full-width, .main-with-sidebar {
    animation: pageEnter 0.3s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0.85;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PRINT STYLES === */
@media print {
    .portal-header,
    .sidebar,
    .mobile-menu-btn,
    .mobile-overlay {
        display: none !important;
    }
    .main, .main-full-width, .main-with-sidebar {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    body {
        background: white !important;
    }
}

/* === SELECTION COLOR === */
::selection {
    background: rgba(37, 99, 235, 0.15);
    color: inherit;
}

/* === BETTER TABLE CELL ALIGNMENT === */
td {
    vertical-align: middle !important;
}

/* === ADMIN BADGE GLOW === */
.admin-badge {
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3) !important;
    border-radius: 6px !important;
}

/* === PENDING BADGE PULSE === */
.pending-badge {
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === HOVER UNDERLINE EFFECT FOR TABLE LINKS === */
td .mc-link,
td a {
    position: relative !important;
}

/* === LOADING STATE ENHANCEMENT === */
.loading {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* === EMPTY STATE IMPROVEMENT === */
div[style*="textAlign: 'center'"][style*="color: '#94a3b8'"] {
    font-style: normal !important;
}

/* === CHAT WIDGET BUTTON === */
.chat-widget-btn,
div[style*="position: 'fixed'"][style*="bottom:"] button {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 8px 32px rgba(37, 99, 235, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.chat-widget-btn:hover,
div[style*="position: 'fixed'"][style*="bottom:"] button:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4), 0 12px 40px rgba(37, 99, 235, 0.2) !important;
    transform: scale(1.05) !important;
}
