/* ==========================================================================
   Empty State Component
   ========================================================================== */

.dp-empty-state {
    text-align: center;
    padding: 48px 24px;
    animation: dpEmptyFadeIn 0.4s ease;
}

@keyframes dpEmptyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dpEmptyIconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.dp-empty-state--sm {
    padding: 32px 16px;
}

.dp-empty-state__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    animation: dpEmptyIconFloat 4s ease-in-out infinite;
}

.dp-empty-state__icon i {
    font-size: 2rem;
    color: #94a3b8;
}

/* Context-aware variants — 2026 soft gradient palette */
.dp-empty-state--property .dp-empty-state__icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}
.dp-empty-state--property .dp-empty-state__icon i { color: #059669; }

.dp-empty-state--tender .dp-empty-state__icon {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
}
.dp-empty-state--tender .dp-empty-state__icon i { color: #c2410c; }

.dp-empty-state--meeting .dp-empty-state__icon {
    background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 100%);
}
.dp-empty-state--meeting .dp-empty-state__icon i { color: #7b6fb0; }

.dp-empty-state--document .dp-empty-state__icon {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}
.dp-empty-state--document .dp-empty-state__icon i { color: #285d77; }

.dp-empty-state--message .dp-empty-state__icon {
    background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 100%);
}
.dp-empty-state--message .dp-empty-state__icon i { color: #0d9488; }

.dp-empty-state--notification .dp-empty-state__icon {
    background: linear-gradient(135deg, #fce7f3 0%, #f9a8d4 100%);
}
.dp-empty-state--notification .dp-empty-state__icon i { color: #be185d; }

.dp-empty-state--bookmark .dp-empty-state__icon {
    background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%);
}
.dp-empty-state--bookmark .dp-empty-state__icon i { color: #a16207; }

.dp-empty-state--users .dp-empty-state__icon {
    background: linear-gradient(135deg, #e0e7ff 0%, #a5b4fc 100%);
}
.dp-empty-state--users .dp-empty-state__icon i { color: #4338ca; }

.dp-empty-state--sm .dp-empty-state__icon {
    width: 56px;
    height: 56px;
}

.dp-empty-state--sm .dp-empty-state__icon i {
    font-size: 1.35rem;
}

.dp-empty-state__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.dp-empty-state--sm .dp-empty-state__title {
    font-size: 0.95rem;
}

.dp-empty-state__desc {
    font-size: 0.875rem;
    color: #64748b;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.dp-empty-state__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dp-empty-state__actions .btn {
    min-height: 40px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   Page Context Bar Component
   ========================================================================== */

.dp-context-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-2026, 20px);
    padding: 14px 20px;
    margin-bottom: 20px;
    animation: ctxBarIn 0.3s ease;
}

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

.dp-context-bar__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dp-context-bar__text {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dp-context-bar__icon {
    font-size: 1.3rem;
    color: #8ecae6;
    flex-shrink: 0;
}

.dp-context-bar__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.dp-context-bar__desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0;
    line-height: 1.4;
}

.dp-context-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dp-context-bar__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8ecae6;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.dp-context-bar__link:hover {
    color: #285d77;
    text-decoration: underline;
}

.dp-context-bar__close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.15s;
}

.dp-context-bar__close:hover {
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 767.98px) {
    .dp-context-bar {
        padding: 12px 14px;
    }

    .dp-context-bar__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-context-bar__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .dp-empty-state {
        padding: 32px 16px;
    }
}

/* Dark mode */
html[data-theme='dark'] .dp-empty-state__icon {
    background: #1e293b;
}

html[data-theme='dark'] .dp-empty-state__icon i {
    color: #64748b;
}

html[data-theme='dark'] .dp-empty-state__title {
    color: #e2e8f0;
}

html[data-theme='dark'] .dp-context-bar {
    background: linear-gradient(135deg, #1e293b 0%, #1e1b4b 100%);
    border-color: #334155;
}

html[data-theme='dark'] .dp-context-bar__title {
    color: #e2e8f0;
}

html[data-theme='dark'] .dp-context-bar__close:hover {
    background: rgba(255, 255, 255, 0.08);
}
