/**
 * Nutri AI Frontend Styles
 * UI components, notices, modals, and interactive elements
 *
 * @package Nutri_AI
 */

/* ========================================
   NOTICES & ALERTS
   ======================================== */

.na-notices {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.na-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.na-notice.na-notice-show {
    opacity: 1;
    transform: translateX(0);
}

.na-notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.na-notice-message {
    flex: 1;
    line-height: 1.4;
}

.na-notice-close {
    background: none;
    border: none;
    color: rgba(203, 213, 225, 0.6);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.na-notice-close:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
}

/* Notice types */
.na-notice-success {
    border-color: rgba(67, 200, 72, 0.4);
    background: rgba(67, 200, 72, 0.12);
}

.na-notice-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
}

.na-notice-warning {
    border-color: rgba(251, 146, 60, 0.4);
    background: rgba(251, 146, 60, 0.12);
}

.na-notice-info {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.12);
}

/* ========================================
   CONFIRM DIALOG / MODAL
   ======================================== */

.na-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.na-confirm-modal.na-confirm-show {
    opacity: 1;
    pointer-events: auto;
}

.na-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.na-confirm-dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.na-confirm-modal.na-confirm-show .na-confirm-dialog {
    transform: scale(1);
}

.na-confirm-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.na-confirm-title {
    margin: 0;
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 800;
}

.na-confirm-body {
    padding: 24px;
}

.na-confirm-message {
    margin: 0;
    color: rgba(203, 213, 225, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

.na-confirm-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
    justify-content: flex-end;
}

.na-confirm-footer .na-btn {
    min-width: 100px;
}

/* ========================================
   LOADING STATES
   ======================================== */

.na-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.na-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: na-spin 0.6s linear infinite;
}

@keyframes na-spin {
    to {
        transform: rotate(360deg);
    }
}

.na-loading-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: rgba(203, 213, 225, 0.7);
    font-size: 16px;
    background: rgba(2, 6, 23, 0.15);
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
}

/* ========================================
   TYPING INDICATOR (Experts AI)
   ======================================== */

.na-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(67, 200, 72, 0.1);
    border: 1px solid rgba(67, 200, 72, 0.2);
    border-radius: 16px;
}

.na-typing-dots span {
    display: block;
    width: 8px;
    height: 8px;
    background: #43c848;
    border-radius: 50%;
    animation: na-typing 1.4s infinite ease-in-out;
}

.na-typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.na-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.na-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes na-typing {
    0%,
    60%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
    30% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* ========================================
   IDEA CARDS (Chef Assistant)
   ======================================== */

.na-idea-card {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.25);
    transition: all 0.25s ease;
}

.na-idea-card:hover {
    border-color: rgba(67, 200, 72, 0.4);
    background: rgba(2, 6, 23, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.na-idea-header {
    margin-bottom: 12px;
}

.na-idea-title {
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.na-idea-description {
    margin: 0 0 16px;
    color: rgba(203, 213, 225, 0.85);
    font-size: 14px;
    line-height: 1.6;
}

.na-idea-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.na-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.9);
    font-size: 12px;
    font-weight: 700;
}

.na-badge-time {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.na-idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.na-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(67, 200, 72, 0.12);
    border: 1px solid rgba(67, 200, 72, 0.25);
    color: rgba(67, 200, 72, 0.95);
    font-size: 11px;
    font-weight: 600;
}

.na-regenerate-section {
    margin-top: 24px;
    text-align: center;
}

/* ========================================
   ANALYSIS RESULT (Snap & Track)
   ======================================== */

.na-snap-analysis-result {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(67, 200, 72, 0.3);
    border-radius: 16px;
    background: rgba(67, 200, 72, 0.08);
    animation: na-fade-in 0.4s ease;
}

@keyframes na-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.na-snap-analysis-result h3 {
    margin: 0 0 16px;
    color: #43c848;
    font-size: 18px;
    font-weight: 800;
}

.na-foods-detected {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.3);
    color: #e2e8f0;
    font-size: 14px;
}

.na-foods-detected strong {
    color: #43c848;
    margin-right: 8px;
}

.na-nutrition-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.na-nutrition-item {
    padding: 12px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

.na-nutrition-item .label {
    display: block;
    margin-bottom: 6px;
    color: rgba(203, 213, 225, 0.7);
    font-size: 12px;
    font-weight: 600;
}

.na-nutrition-item .value {
    display: block;
    color: #43c848;
    font-size: 18px;
    font-weight: 800;
}

.na-ai-insight {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: rgba(203, 213, 225, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

.na-ai-insight::before {
    content: "💡 ";
    margin-right: 4px;
}

/* ========================================
   MEAL PLAN ITEMS
   ======================================== */

.na-meal-plan-meal-item {
    padding: 12px;
    border-radius: 12px;
    background: rgba(67, 200, 72, 0.08);
    border: 1px solid rgba(67, 200, 72, 0.2);
    animation: na-fade-in 0.3s ease;
}

.na-meal-name {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.na-meal-macros {
    color: rgba(203, 213, 225, 0.75);
    font-size: 12px;
    margin-bottom: 8px;
}

.na-meal-actions {
    display: flex;
    gap: 6px;
}

.na-meal-action-btn {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.na-meal-action-btn:hover {
    background: rgba(67, 200, 72, 0.15);
    border-color: rgba(67, 200, 72, 0.3);
    transform: scale(1.05);
}

/* ========================================
   ERROR MESSAGE
   ======================================== */

.na-error-message {
    padding: 24px;
    text-align: center;
    color: #ef4444;
    font-size: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
}

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

@media (max-width: 768px) {
    .na-notices {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .na-notice {
        padding: 12px 14px;
        font-size: 13px;
    }

    .na-confirm-dialog {
        max-width: 100%;
        margin: 0 10px;
    }

    .na-confirm-footer {
        flex-direction: column;
    }

    .na-confirm-footer .na-btn {
        width: 100%;
    }

    .na-nutrition-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   ADDITIONAL UTILITIES
   ======================================== */

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

.na-text-success {
    color: #43c848 !important;
}

.na-text-error {
    color: #ef4444 !important;
}

.na-text-warning {
    color: #fb923c !important;
}

.na-text-info {
    color: #3b82f6 !important;
}

.na-hidden {
    display: none !important;
}

.na-visible {
    display: block !important;
}

.na-fade-in {
    animation: na-fade-in 0.3s ease;
}

.na-slide-up {
    animation: na-slide-up 0.3s ease;
}

@keyframes na-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SKELETON LOADERS
   ======================================== */

.na-skeleton {
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.08) 0%,
        rgba(148, 163, 184, 0.15) 50%,
        rgba(148, 163, 184, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: na-skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes na-skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.na-skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.na-skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.na-skeleton-card {
    height: 120px;
    border-radius: 16px;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

.na-custom-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.na-custom-scroll::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.25);
    border-radius: 4px;
}

.na-custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.na-custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Firefox */
.na-custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) rgba(2, 6, 23, 0.25);
}

/* ========================================
   SKELETON LOADERS
   ======================================== */

/* Skeleton animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.na-skeleton-line,
.na-skeleton-header,
.na-skeleton-item {
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.08) 0%,
        rgba(148, 163, 184, 0.15) 50%,
        rgba(148, 163, 184, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Shopping list skeleton */
.na-shopping-list-skeleton {
    display: grid;
    gap: 18px;
}

.na-skeleton-category {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.25);
    padding: 16px;
}

.na-skeleton-header {
    height: 24px;
    width: 150px;
    margin-bottom: 14px;
}

.na-skeleton-item {
    height: 48px;
    margin-bottom: 8px;
    border-radius: 12px;
}

.na-skeleton-item:last-child {
    margin-bottom: 0;
}

/* ========================================
   SHOPPING LIST LOADING STATES
   ======================================== */

/* Centered loader for shopping list */
.na-shopping-list-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

/* Spinner loader */
.na-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(148, 163, 184, 0.2);
    border-top-color: #43c848;
    border-radius: 50%;
    animation: na-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes na-spin {
    to {
        transform: rotate(360deg);
    }
}

.na-loading-text {
    color: rgba(203, 213, 225, 0.85);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Skeleton line for summary */
.na-skeleton-line {
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.08) 0%,
        rgba(148, 163, 184, 0.15) 50%,
        rgba(148, 163, 184, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    display: inline-block;
}

/* ========================================
   CHOICE DIALOG IMPROVEMENTS
   ======================================== */

/* Choice dialog specific styles */
.na-choice-dialog {
    max-width: 480px;
}

.na-choice-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.na-choice-buttons {
    display: grid;
    gap: 10px;
    width: 100%;
}

.na-choice-btn {
    width: 100%;
    padding: 14px 18px !important;
    text-align: center;
    min-height: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.na-choice-btn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.na-choice-btn-text {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.na-choice-btn-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.75;
    display: block;
    line-height: 1.3;
}

/* Danger button - red gradient matching theme style */
.na-choice-btn.na-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.na-choice-btn.na-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.na-choice-btn.na-btn-danger:active {
    transform: translateY(0);
}

/* Secondary button - keep existing style */
.na-choice-btn.na-btn-secondary {
    background: rgba(148, 163, 184, 0.15);
    color: rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.na-choice-btn.na-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.25);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Ghost button for cancel */
.na-btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.3);
    color: rgba(203, 213, 225, 0.85);
}

.na-btn-ghost:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.5);
}

/* ========================================
   SNAP & TRACK - SCANNING EFFECT
   ======================================== */

/* Scanning state - grayscale image */
.na-snap-preview.na-snap-scanning .na-snap-preview-img,
.na-snap-preview.na-snap-scanning img {
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.na-snap-grayscale {
    filter: grayscale(1) !important;
    transition: filter 0.3s ease;
}

/* Scan overlay - green sweep effect */
.na-snap-preview .na-scan-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(67, 200, 72, 0.25),
        transparent
    );
    transform: translateX(-60%);
    animation: na-scan 2.4s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes na-scan {
    0% {
        transform: translateX(-60%);
    }
    60% {
        transform: translateX(60%);
    }
    100% {
        transform: translateX(60%);
    }
}

/* Ensure preview has position relative */
.na-snap-preview {
    position: relative;
    overflow: hidden;
}

/* Disable scanning animation on devices that prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .na-snap-preview .na-scan-overlay {
        animation: none;
    }
}

/* ========================================
   AI LOADING ANIMATION (Chef Ideas)
   ======================================== */

.na-ai-loading {
    padding: 60px 40px;
    text-align: center;
    background: rgba(2, 6, 23, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(67, 200, 72, 0.2);
    position: relative;
    overflow: hidden;
}

.na-ai-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(67, 200, 72, 0.05) 0%,
        transparent 50%,
        rgba(67, 200, 72, 0.05) 100%
    );
    animation: na-shimmer 3s ease-in-out infinite;
}

@keyframes na-shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.na-ai-loading-animation {
    position: relative;
    margin-bottom: 32px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Magic sparkles container */
.na-ai-magic-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.na-ai-sparkle {
    position: absolute;
    font-size: 28px;
    opacity: 0;
    animation: na-sparkle-float 3s ease-in-out infinite;
}

.na-ai-sparkle-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.na-ai-sparkle-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.na-ai-sparkle-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: 1s;
}

.na-ai-sparkle-4 {
    top: 40%;
    right: 15%;
    animation-delay: 1.5s;
}

.na-ai-sparkle-5 {
    bottom: 20%;
    right: 30%;
    animation-delay: 2s;
}

.na-ai-sparkle-6 {
    top: 60%;
    left: 10%;
    animation-delay: 2.5s;
}

@keyframes na-sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1.2) rotate(180deg);
    }
}

/* Cooking pot */
.na-ai-cooking-pot {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.na-ai-pot-body {
    font-size: 64px;
    animation: na-pot-bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(67, 200, 72, 0.3));
}

@keyframes na-pot-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.na-ai-steam {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: 2px;
    top: -10px;
    animation: na-steam-rise 2s ease-in-out infinite;
}

.na-ai-steam:nth-child(2) {
    left: 30%;
    animation-delay: 0s;
}

.na-ai-steam:nth-child(3) {
    left: 50%;
    animation-delay: 0.3s;
}

.na-ai-steam:nth-child(4) {
    right: 30%;
    animation-delay: 0.6s;
}

@keyframes na-steam-rise {
    0% {
        opacity: 0;
        transform: translateY(0) scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-15px) scaleY(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scaleY(1.2);
    }
}

.na-ai-loading-text {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.na-ai-loading-title {
    display: block;
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    animation: na-text-pulse 2s ease-in-out infinite;
}

.na-ai-loading-subtitle {
    display: block;
    color: rgba(203, 213, 225, 0.7);
    font-size: 14px;
    font-weight: 500;
}

@keyframes na-text-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Progress bar */
.na-ai-loading-progress {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 4px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    z-index: 2;
}

.na-ai-loading-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(
        90deg,
        #43c848,
        #22c55e,
        #43c848
    );
    background-size: 200% 100%;
    border-radius: 2px;
    animation: na-progress-slide 2s ease-in-out infinite;
}

@keyframes na-progress-slide {
    0% {
        transform: translateX(-100%);
        background-position: 0% 0%;
    }
    50% {
        transform: translateX(200%);
        background-position: 100% 0%;
    }
    100% {
        transform: translateX(500%);
        background-position: 200% 0%;
    }
}

@media (max-width: 768px) {
    .na-ai-loading {
        padding: 40px 20px;
    }

    .na-ai-loading-title {
        font-size: 18px;
    }

    .na-ai-loading-subtitle {
        font-size: 13px;
    }

    .na-ai-sparkle {
        font-size: 24px;
    }

    .na-ai-pot-body {
        font-size: 56px;
    }
}
