/* NossoGas - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* Oculta elementos Alpine antes da inicialização */
[x-cloak] { display: none !important; }

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; }

/* ===== GRADIENTS ===== */
.text-gradient {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, #F97316 0%, #DC2626 100%);
}

/* ===== HERO GRID BG ===== */
.hero-grid-bg {
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }
.animate-bounce-slow { animation: bounce-slow 3s ease-in-out infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }

/* ===== SKELETON LOADER ===== */
.skeleton {
    background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover {
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0F172A; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #F97316; }

/* ===== FORMS ===== */
.form-input {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    color: white;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
}
.form-input:focus {
    outline: none;
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.form-input::placeholder { color: #475569; }
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-error {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
    background: #0F172A;
    border-right: 1px solid #1E293B;
    min-height: 100vh;
    width: 260px;
    flex-shrink: 0;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    color: #64748B;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}
.admin-nav-item:hover {
    background: #1E293B;
    color: white;
}
.admin-nav-item.active {
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(220,38,38,0.1));
    color: #F97316;
    border: 1px solid rgba(249,115,22,0.2);
}
.admin-nav-item.active i { color: #F97316; }

/* ===== STAT CARD ===== */
.stat-card {
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-yellow  { background: rgba(234,179,8,0.1);  color: #CA8A04; border: 1px solid rgba(234,179,8,0.2); }
.badge-blue    { background: rgba(59,130,246,0.1); color: #3B82F6; border: 1px solid rgba(59,130,246,0.2); }
.badge-indigo  { background: rgba(99,102,241,0.1); color: #818CF8; border: 1px solid rgba(99,102,241,0.2); }
.badge-orange  { background: rgba(249,115,22,0.1); color: #F97316; border: 1px solid rgba(249,115,22,0.2); }
.badge-green   { background: rgba(34,197,94,0.1);  color: #22C55E; border: 1px solid rgba(34,197,94,0.2); }
.badge-red     { background: rgba(239,68,68,0.1);  color: #EF4444; border: 1px solid rgba(239,68,68,0.2); }
.badge-gray    { background: rgba(148,163,184,0.1); color: #94A3B8; border: 1px solid rgba(148,163,184,0.2); }

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: #0F172A;
    color: #64748B;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #1E293B;
}
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #1E293B;
    color: #CBD5E1;
    font-size: 0.875rem;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #1E293B; }

/* ===== PIX QR CODE ===== */
.pix-qr-container {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    display: inline-block;
}

/* ===== ORDER TIMELINE ===== */
.timeline-step {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
}
.timeline-step::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 1.5rem;
    bottom: 0;
    width: 2px;
    background: #1E293B;
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

/* ===== CARD FIELD MASKED ===== */
.card-masked {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.15em;
    color: #94A3B8;
}

/* ===== GLOW BUTTON ===== */
.btn-glow {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transition: box-shadow 0.3s;
}
.btn-glow:hover { box-shadow: 0 0 35px rgba(249, 115, 22, 0.6); }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #22C55E;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-sidebar { width: 100%; min-height: auto; }
}

/* ===== SELECTION ===== */
::selection { background: rgba(249,115,22,0.3); color: white; }

/* ===== CHECKOUT STEPS ===== */
.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.checkout-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}
.checkout-step-num.active { background: #F97316; color: white; }
.checkout-step-num.done   { background: #22C55E; color: white; }
.checkout-step-num.pending{ background: #1E293B; border: 1px solid #334155; color: #475569; }

/* ===== PAYMENT METHOD CARD ===== */
.payment-option {
    border: 2px solid #334155;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-option:hover { border-color: rgba(249,115,22,0.4); }
.payment-option.selected { border-color: #F97316; background: rgba(249,115,22,0.05); }

/* ===== ADMIN HEADER ===== */
.admin-header {
    background: #1E293B;
    border-bottom: 1px solid #334155;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: between;
    gap: 1rem;
}

/* ===== REPORT CHART BARS ===== */
.chart-bar {
    background: linear-gradient(180deg, #F97316, #DC2626);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
