/* Fade animation for Django messages */
.alert {
    animation: fadeIn 0.5s ease-in;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.alert.fade-out {
    opacity: 0;
}

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

/* Mobile App Layout */
.quick-app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8f9fa;
}

.quick-app-header {
    background: linear-gradient(135deg, #f25c05, #ff914d);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.quick-app-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.quick-app-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white !important;
}

.quick-app-subtitle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
    color: white !important;
}

.quick-messages {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.business-display {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    padding: 1.5rem;
}

.business-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    background: transparent;
    flex-shrink: 0;
    overflow: hidden;
}


.business-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.business-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.business-type {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 0.5rem;
    text-align: center;
}

.quick-app-content {
    flex: 1;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-y: auto;
    
}

.quick-app-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    padding: 0.5rem;
}

.quick-nav-container {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.quick-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
    height: 60px;
    aspect-ratio: 1;
}

/* Two buttons, each takes 1/2 of screen width */
.quick-nav-btn {
    flex: 1;
    max-width: 50vw;
}

.quick-nav-btn i {
    font-size: 1rem;
    margin-bottom: 0.125rem;
    display: block;
}

.quick-nav-btn:hover {
    transform: translateY(-1px);
}

.quick-nav-btn:active {
    transform: translateY(0);
}

.quick-nav-btn-primary {
    background: linear-gradient(135deg, #f25c05, #ff914d) !important;
    color: white !important;
}

.quick-nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(242, 92, 5, 0.3);
}

.quick-nav-btn-secondary {
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
    background: white !important;
    position: relative;
    animation: pulse-glow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    overflow: hidden;
}

.quick-nav-btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.quick-nav-btn-secondary:hover {
    background: #6c757d !important;
    color: white !important;
    border: 2px solid #5a6268 !important;
}

.quick-nav-btn-secondary:hover::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer-line 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(108, 117, 125, 0);
    }
}

@keyframes shimmer-line {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.quick-nav-text {
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* Desktop: Remove fixed positioning and make it inline */
@media (min-width: 769px) {
    .quick-app-content {
        flex: none;
    }

    .quick-app-navigation {
        position: static;
        border-top: none;
        box-shadow: none;
        background: transparent;
        padding: 2rem 0 0 0;
        margin-top: 2rem;
    }

    .quick-nav-container {
        justify-content: center;
        gap: 1rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .quick-nav-btn {
        height: auto;
        padding: 0.75rem 1.5rem;
        min-width: 180px;
        max-width: none;
        flex: none;
        aspect-ratio: unset;
    }
}

/* Quick view specific styles */
.quick-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.quick-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quick-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f25c05;
    margin-bottom: 0.5rem;
}

.quick-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.quick-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quick-input-group {
    margin-bottom: 2rem;
}

.quick-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.quick-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.quick-textarea:focus {
    outline: none;
    border-color: #f25c05;
    box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.1);
}

.quick-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.quick-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.quick-btn {
    padding: 0.75rem 0.7rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Modal de prompt */
.prompt-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.prompt-section {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.prompt-section:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.section-icon i {
    font-size: 1.2rem;
    color: #f25c05;
}

.section-content {
    flex-grow: 1;
}

.section-content h6 {
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.user-input {
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

.prompt-box {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e1e5e9;
}

.prompt-text {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

/* Loading Modal */
.loading-animation {
    font-size: 2.5rem;
    color: #f25c05;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-btn-primary {
    background: linear-gradient(135deg, #f25c05, #ff914d);
    color: white;
}

.quick-btn-primary:hover {
    background: linear-gradient(135deg, #e05505, #ff7f3d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 92, 5, 0.3);
}

.quick-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.quick-btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.business-info {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.business-info strong {
    color: #f25c05;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .quick-textarea {
        min-height: 15rem;
    }

    .quick-form {
        padding: 1rem;
    }

    .business-display {
        margin: 0.5rem;
        padding: 1rem;
    }

    .business-avatar {
        width: 50px !important;
        height: 50px !important;
    }

    .business-name {
        font-size: 1.2rem;
    }

    .business-type {
        font-size: 0.9rem;
        margin-top: 0.25rem;
    }
}
