/* ========================================
   TAGSE RESERVAS - ESTILOS CUSTOMIZADOS
   Com Tailwind CSS integrado
   ======================================== */

:root {
    --primary: #FF7A00;
    --accent: #FF7A00;
    --dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --font-title: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset & Base - Necessário para garantir consistência */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95)),
        url('https://images.unsplash.com/photo-1590059392231-1587d69cd899?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100%;
}

body {
    background-color: transparent !important;
    background-image: none !important;
}

/* Animações Customizadas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.animate-fade-in {
    animation: fadeIn 0.6s var(--ease) forwards;
}

/* Estilos para botões disabled - comportamento especial */
.action-btn.disabled {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.4);
}



/* Estilos específicos de pseudo-elementos que não podem ser feitos apenas com Tailwind */
.wifi-help-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   MOLDURA DE CELULAR PARA DESKTOP
   ======================================== */

/* Container para moldura - apenas em desktop */
@media (min-width: 768px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 2rem;
    }

    /* Moldura do celular */
    body::before {
        content: '';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 420px;
        height: 860px;
        background: linear-gradient(145deg, #1e293b, #0f172a);
        border-radius: 50px;
        box-shadow:
            0 0 0 12px #0a0f1a,
            0 0 0 14px #334155,
            0 30px 80px rgba(0, 0, 0, 0.5),
            inset 0 0 6px rgba(255, 255, 255, 0.1);
        z-index: -1;
        pointer-events: none;
    }

    /* Notch (entalhe superior do iPhone) */
    body::after {
        content: '';
        position: fixed;
        top: calc(50% - 430px + 15px);
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 28px;
        background: #000;
        border-radius: 0 0 20px 20px;
        z-index: 10;
        box-shadow: inset 0 -2px 4px rgba(255, 255, 255, 0.1);
        pointer-events: none;
    }

    /* Área da tela do celular */
    #app {
        position: relative;
        width: 390px !important;
        max-width: 390px !important;
        height: 844px;
        max-height: 844px;
        overflow: hidden;
        border-radius: 40px;
        box-shadow:
            inset 0 0 0 2px rgba(255, 255, 255, 0.05),
            0 10px 40px rgba(0, 0, 0, 0.3);
        background: var(--dark);
    }

    /* Scroll customizado para a área interna */
    #app {
        overflow-y: auto;
        overflow-x: hidden;
    }

    #app::-webkit-scrollbar {
        width: 6px;
    }

    #app::-webkit-scrollbar-track {
        background: transparent;
    }

    #app::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    #app::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Botão home do iPhone (barra inferior) */
    #app::after {
        content: '';
        position: fixed;
        bottom: calc(50% - 430px + 10px);
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        z-index: 1000;
        pointer-events: none;
    }

    /* Ajuste do conteúdo interno */
    #app>* {
        width: 100%;
        max-width: 100%;
    }

    /* Botão de volume lateral esquerdo */
    body {
        position: relative;
    }

    /* Camada extra para botões laterais */
    @supports (position: fixed) {

        /* Botões de volume */
        html::before {
            content: '';
            position: fixed;
            top: 50%;
            left: calc(50% - 210px - 14px);
            transform: translateY(-80px);
            width: 3px;
            height: 60px;
            background: linear-gradient(to right, #0a0f1a, #1e293b);
            border-radius: 2px 0 0 2px;
            z-index: -1;
        }

        /* Botão de power lateral direito */
        html::after {
            content: '';
            position: fixed;
            top: 50%;
            right: calc(50% - 210px - 14px);
            transform: translateY(-120px);
            width: 3px;
            height: 80px;
            background: linear-gradient(to left, #0a0f1a, #1e293b);
            border-radius: 0 2px 2px 0;
            z-index: -1;
        }
    }
}

/* Responsividade - remove moldura em tablets pequenos */
@media (min-width: 768px) and (max-width: 1024px) and (max-height: 900px) {
    body::before {
        width: 360px;
        height: 740px;
        border-radius: 40px;
    }

    body::after {
        top: calc(50% - 370px + 15px);
        width: 120px;
        height: 24px;
    }

    #app {
        width: 340px !important;
        max-width: 340px !important;
        height: 720px;
        max-height: 720px;
        border-radius: 35px;
    }

    #app::after {
        bottom: calc(50% - 370px + 10px);
    }
}

/* Utility to hide scrollbar but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Ensure content from rich text editors is legible on dark backgrounds */
.rich-text-content,
.rich-text-content p,
.rich-text-content div,
.rich-text-content span,
.rich-text-content li,
.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6,
.rich-text-content font {
    color: #e2e8f0 !important;
    line-height: 1.6 !important;
}

.rich-text-content strong,
.rich-text-content b {
    color: #ffffff !important;
    font-weight: 700;
}

.rich-text-content a {
    color: #FF7A00 !important;
    text-decoration: underline;
}

.rich-text-content ul {
    list-style-type: disc !important;
    padding-left: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.rich-text-content ul li::marker {
    color: #FF7A00;
}

.rich-text-content ol {
    list-style-type: decimal !important;
    padding-left: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.rich-text-content li {
    margin-bottom: 0.4rem !important;
}

.rich-text-content p {
    margin-bottom: 0.75rem !important;
}

.rich-text-content p:last-child,
.rich-text-content li:last-child,
.rich-text-content ul:last-child,
.rich-text-content ol:last-child {
    margin-bottom: 0 !important;
}

/* Allow orange color to persist if explicitly set */
.rich-text-content .text-primary,
.rich-text-content [style*="color: rgb(255, 122, 0)"],
.rich-text-content [style*="color: #FF7A00"] {
    color: #FF7A00 !important;
}