/* ===== REAL APP UI STYLING (Matching Desktop App) ===== */

/* App Preview - Real UI */
.app-preview {
    position: relative;
    overflow: visible !important;

    /* FIXED STANDARD SIZE - prevents resizing during animations */
    width: 520px !important;
    min-height: 400px !important;
    max-height: 400px !important;

    background: rgba(15, 15, 15, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.app-preview::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.app-preview:hover::before {
    opacity: 1;
}

/* Toolbar - Real App Style */
.preview-toolbar {
    padding: 14px 18px !important;
    background: rgba(60, 60, 65, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.preview-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
}

/* Content Area - Real App Style */
.preview-content {
    min-height: 320px !important;
    padding: 20px !important;
    background: rgba(15, 15, 15, 0.95) !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Question Box - Real App Style */
.preview-question {
    background: rgba(30, 30, 35, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.q-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
}

/* Answer Box - Real App Style */
.preview-answer {
    background: rgba(20, 20, 25, 0.9) !important;
    border-left: 3px solid #10b981 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.a-label {
    display: block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
}

.preview-answer p {
    margin-bottom: 10px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.preview-answer strong {
    color: #34d399 !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border-radius: 4px !important;
}

/* Slide Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.preview-question.slide-out,
.preview-answer.slide-out {
    animation: slideOutLeft 0.4s ease forwards;
}

.preview-question.slide-in,
.preview-answer.slide-in {
    animation: slideInRight 0.4s ease forwards;
}

/* Thinking indicator */
@keyframes thinkingPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.thinking-indicator {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}

.thinking-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: thinkingPulse 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #10b981;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Progress bar */
.question-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #10b981;
    width: 0;
    transition: width 5s linear;
    border-radius: 0 0 24px 24px;
}

.question-progress.active {
    width: 100%;
}