/* ===================================================================
   EMPTY STATES - Phase 4 Pattern 3
   Contextual empty states with clear CTAs and helpful guidance
   =================================================================== */

/* ===== BASE EMPTY STATE CONTAINER ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
    animation: empty-state-fade-in 0.3s ease-out;
}

@keyframes empty-state-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== EMPTY STATE ICON ===== */
.empty-state-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: #9ca3af;
    animation: empty-state-icon-pulse 2s ease-in-out infinite;
}

@keyframes empty-state-icon-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ===== EMPTY STATE CONTENT ===== */
.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.empty-state-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 0 32px 0;
}

/* ===== EMPTY STATE ACTIONS ===== */
.empty-state-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-state-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: var(--color-primary, #0D2A4A);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(13, 42, 74, 0.1);
}

.empty-state-primary-action:hover {
    background: var(--color-primary-dark, #0a1f35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 42, 74, 0.2);
}

.empty-state-primary-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(13, 42, 74, 0.1);
}

.empty-state-secondary-action {
    font-size: 14px;
    color: var(--color-primary, #0D2A4A);
    text-decoration: none;
    transition: color 0.2s;
}

.empty-state-secondary-action:hover {
    color: var(--color-primary-dark, #0a1f35);
    text-decoration: underline;
}

/* ===== EMPTY STATE RECOMMENDATION ===== */
.empty-state-recommendation {
    margin-top: 24px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    max-width: 500px;
}

.empty-state-recommendation-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.empty-state-recommendation-title svg {
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.empty-state-recommendation-text {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ===== SPECIFIC EMPTY STATE TYPES ===== */

/* No Employees */
.empty-state-no-employees .empty-state-icon {
    color: #3b82f6;
}

/* No Trips */
.empty-state-no-trips .empty-state-icon {
    color: #10b981;
}

/* No Search Results */
.empty-state-no-results .empty-state-icon {
    color: #f59e0b;
}

.empty-state-no-results .empty-state-title {
    color: #92400e;
}

/* No Filtered Results */
.empty-state-filtered .empty-state-icon {
    color: #6366f1;
}

/* ===== EMPTY STATE ILLUSTRATION ===== */
.empty-state-illustration {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
    opacity: 0.8;
}

/* ===== EMPTY STATE WITH IMAGE ===== */
.empty-state-with-image {
    padding: 48px 32px;
}

.empty-state-with-image .empty-state-image {
    width: 240px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.9;
}

/* ===== CONTEXTUAL SUGGESTIONS ===== */
.empty-state-suggestions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    width: 100%;
}

.empty-state-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.empty-state-suggestion-item:hover {
    border-color: var(--color-primary, #0D2A4A);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.empty-state-suggestion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-primary, #0D2A4A);
}

.empty-state-suggestion-content {
    flex: 1;
}

.empty-state-suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
}

.empty-state-suggestion-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .empty-state {
        padding: 48px 24px;
    }

    .empty-state-icon {
        width: 48px;
        height: 48px;
    }

    .empty-state-title {
        font-size: 20px;
    }

    .empty-state-description {
        font-size: 14px;
    }

    .empty-state-primary-action {
        width: 100%;
        justify-content: center;
    }

    .empty-state-illustration {
        width: 160px;
        height: 160px;
    }

    .empty-state-with-image .empty-state-image {
        width: 180px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-theme="dark"] .empty-state-title {
    color: #f3f4f6;
}

[data-theme="dark"] .empty-state-description {
    color: #9ca3af;
}

[data-theme="dark"] .empty-state-recommendation {
    background: #1f2937;
    border-left-color: #3b82f6;
}

[data-theme="dark"] .empty-state-recommendation-title {
    color: #f3f4f6;
}

[data-theme="dark"] .empty-state-recommendation-text {
    color: #d1d5db;
}

[data-theme="dark"] .empty-state-suggestion-item {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .empty-state-suggestion-item:hover {
    border-color: var(--color-primary, #385070);
}

[data-theme="dark"] .empty-state-suggestion-title {
    color: #f3f4f6;
}

[data-theme="dark"] .empty-state-suggestion-text {
    color: #9ca3af;
}

/* ===== ACCESSIBILITY ===== */
.empty-state-primary-action:focus,
.empty-state-secondary-action:focus,
.empty-state-suggestion-item:focus {
    outline: 2px solid var(--color-primary, #0D2A4A);
    outline-offset: 2px;
}

/* Reduce motion for users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {
    .empty-state,
    .empty-state-icon,
    .empty-state-primary-action,
    .empty-state-suggestion-item {
        animation: none;
        transition: none;
    }

    .empty-state-primary-action:hover,
    .empty-state-suggestion-item:hover {
        transform: none;
    }
}

/* ===== COMPACT EMPTY STATE (for small sections) ===== */
.empty-state-compact {
    padding: 32px 24px;
}

.empty-state-compact .empty-state-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.empty-state-compact .empty-state-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state-compact .empty-state-description {
    font-size: 14px;
    margin-bottom: 20px;
}
