/**
 * Empty State Designs
 * Beautiful empty states for when lists/data are empty
 */

/* ===================================
   BASE EMPTY STATE
   =================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    min-height: 400px;
}

.empty-state-icon {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    opacity: 0.7;
    filter: drop-shadow(0 10px 30px rgba(0, 243, 255, 0.15));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00f3ff 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.6;
}

.empty-state-action {
    padding: 14px 32px;
    background: linear-gradient(135deg, #00f3ff 0%, #0066ff 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 243, 255, 0.3);
}

.empty-state-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 243, 255, 0.5);
}

.empty-state-action i {
    margin-right: 8px;
}

/* ===================================
   EMPTY STATE VARIANTS
   =================================== */

/* No Products */
.empty-state.no-products .empty-state-icon {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="%2310b981" opacity="0.1"/><path d="M60 80 L140 80 L130 140 L70 140 Z" fill="%2310b981" opacity="0.3"/><rect x="90" y="50" width="20" height="30" fill="%2310b981"/><circle cx="85" cy="120" r="8" fill="%2310b981"/><circle cx="115" cy="120" r="8" fill="%2310b981"/></svg>');
}

/* No Customers */
.empty-state.no-customers .empty-state-icon {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="%23d946ef" opacity="0.1"/><circle cx="100" cy="70" r="25" fill="%23d946ef" opacity="0.5"/><path d="M60 140 Q100 120 140 140 L140 160 L60 160 Z" fill="%23d946ef" opacity="0.5"/></svg>');
}

/* No Quotes */
.empty-state.no-quotes .empty-state-icon {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="%2300f3ff" opacity="0.1"/><rect x="60" y="60" width="80" height="100" fill="%2300f3ff" opacity="0.3" rx="8"/><line x1="75" y1="80" x2="125" y2="80" stroke="%2300f3ff" stroke-width="3"/><line x1="75" y1="100" x2="125" y2="100" stroke="%2300f3ff" stroke-width="3"/><line x1="75" y1="120" x2="110" y2="120" stroke="%2300f3ff" stroke-width="3"/></svg>');
}

/* No Search Results */
.empty-state.no-results .empty-state-icon {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="80" cy="80" r="40" fill="none" stroke="%23f59e0b" stroke-width="8" opacity="0.5"/><line x1="110" y1="110" x2="140" y2="140" stroke="%23f59e0b" stroke-width="8" opacity="0.5"/><text x="100" y="180" font-size="24" fill="%23f59e0b" text-anchor="middle">?</text></svg>');
}

/* No Data */
.empty-state.no-data .empty-state-icon {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="%230066ff" opacity="0.1"/><rect x="60" y="90" width="30" height="60" fill="%230066ff" opacity="0.3"/><rect x="100" y="70" width="30" height="80" fill="%230066ff" opacity="0.5"/><rect x="140" y="50" width="30" height="100" fill="%230066ff" opacity="0.7"/></svg>');
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .empty-state {
        padding: 60px 20px;
        min-height: 300px;
    }

    .empty-state-icon {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

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

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

    .empty-state-action {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===================================
   LIST INTEGRATION
   =================================== */

/* Show empty state when list is empty */
.list-container:empty::after,
.table-body:empty::after {
    content: '';
    display: block;
    width: 100%;
    min-height: 300px;
}

/* Hide table headers when empty */
.table-container:has(.table-body:empty) .table-header {
    display: none;
}

/* ===================================
   LOADING TO EMPTY TRANSITION
   =================================== */

.empty-state {
    animation: emptyFadeIn 0.5s ease;
}

@keyframes emptyFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECONDARY ACTIONS
   =================================== */

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

.empty-state-action.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.empty-state-action.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

/* ===================================
   TIPS & HINTS
   =================================== */

.empty-state-tips {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 500px;
}

.empty-state-tips-title {
    font-size: 14px;
    font-weight: 600;
    color: #00f3ff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.empty-state-tips-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.empty-state-tips-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00f3ff;
    font-weight: bold;
}