/* ========================================
   LISTAI - UNIFIED DESIGN SYSTEM VARIABLES
   ======================================== */

:root {
    /* Cores Primárias - Paleta Unificada */
    --color-primary: #0943F1;
    --color-primary-dark: #0735be;
    --color-secondary: #1f2937;
    --color-secondary-dark: #111827;
    --color-background: #ffffff;
    --color-background-secondary: #f8fafc;
    --color-background-gradient: #f1f5f9;
    
    /* Cores de Apoio */
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-error: #ef4444;
    --color-neutral: #6b7280;
    --color-border: #e5e7eb;
    --color-border-light: rgba(59, 130, 246, 0.1);
    
    /* Cores de Texto */
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-highlight: #3b82f6;
    
    /* Sombras e Efeitos */
    --shadow-primary: 0 4px 14px 0 rgba(59, 130, 246, 0.15);
    --shadow-primary-hover: 0 8px 25px 0 rgba(59, 130, 246, 0.25);
    --shadow-card: 0 20px 40px rgba(59, 130, 246, 0.1);
    --shadow-button: 0 8px 16px rgba(59, 130, 246, 0.3);
    --shadow-button-hover: 0 12px 24px rgba(59, 130, 246, 0.4);
    
    /* Animações */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease-out;
    --transition-slow: 18s ease infinite;
    
    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Bordas */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.25rem;
    --border-radius-xl: 1.5rem;
    
    /* Tamanhos de Fonte */
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.5rem;
}

/* ========================================
   LISTAI - CLEAN CSS RESET & BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 200px);
}

/* ========================================
   ANIMAÇÕES PERSONALIZADAS
   ======================================== */

/* Hero logo destacado e centralizado */
.hero-logo {
    display: flex;
    justify-content: start; /* Alinhado à esquerda para combinar com o texto */
    align-items: center;
    margin: 0 0 1.5rem;
}

.hero-logo-img {
    width: 180px; /* Tamanho ajustado para equilíbrio */
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-primary); /* Adicionado sombra para destaque */
}

@media (max-width: 992px) {
    .hero-logo {
        justify-content: center; /* Centralizado no mobile/tablet */
        margin: 0 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        margin: 0 0 1rem;
    }

    .hero-logo-img {
        width: 140px;
        height: auto;
        border-radius: 20px;
    }
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Removido duplicação - já definido acima */

/* Responsive Animations */
@media (max-width: 768px) {
    .hover-lift:hover {
        transform: translateY(-5px);
    }
}

/* Animações de entrada discretas */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.navbar { animation: fadeIn 300ms ease both; }
.hero-logo-img { animation: scaleIn 600ms cubic-bezier(.2,.8,.2,1) both; }
.hero-title { animation: fadeInUp 600ms ease both; animation-delay: 100ms; }
.hero-description { animation: fadeInUp 600ms ease both; animation-delay: 250ms; }
.hero-buttons { animation: fadeInUp 600ms ease both; animation-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .navbar,
  .hero-logo-img,
  .hero-title,
  .hero-description,
  .hero-buttons {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 2000;
    border-radius: 0 0 4px 0;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Focus Visible para Navegação por Teclado */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Compensar navbar fixa ao navegar por âncoras */
.features,
.screenshots,
#collaboration {
    scroll-margin-top: 90px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 44px; /* Tamanho mínimo para touch */
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

.btn-secondary {
    background: var(--color-background);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* permite posicionar dropdown abaixo do navbar */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
}

/* Logo grande no cabeçalho (usando a mesma arte da hero) */
.nav-hero-logo-img {
    width: 140px;
    height: auto;
    border-radius: 1rem;
    object-fit: contain;
}

@media (max-width: 768px) {
    .nav-hero-logo-img {
        width: 110px;
        border-radius: 0.75rem;
    }
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

.admin-link {
    background-color: #2c3e50;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.admin-link:hover {
    background-color: #3498db;
    color: white;
}

.admin-btn {
    background: linear-gradient(135deg, #374151, #1f2937);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #1f2937, #111827);
    transform: translateY(-1px);
}

/* ========================================
   MOBILE MENU (HAMBURGER + DROPDOWN)
   ======================================== */

.mobile-menu-toggle {
    display: none;
    /* aparece só no mobile */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-left: 0.5rem;
    position: absolute;
    right: 1rem;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.25);
}

.mobile-menu-toggle:hover {
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.3);
    transform: translateY(-1px);
}

/* Barras centralizadas para visual mais limpo */
.hamburger-line {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 1px;
}

.hamburger-line:nth-child(1) { top: calc(50% - 7px); }
.hamburger-line:nth-child(2) { top: 50%; }
.hamburger-line:nth-child(3) { top: calc(50% + 7px); }

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    top: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(26, 26, 26, 0.98);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 250px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
}

.mobile-menu-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #e5e7eb;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-link i {
    width: 18px;
    text-align: center;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.mobile-menu-link+.mobile-menu-link {
    margin-top: 4px;
}

/* Estados acessíveis e ativo */
.mobile-menu-toggle:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
.mobile-menu-toggle.active {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-image {
        justify-content: center;
    }
}

.hero-content {
    max-width: 600px;
    width: 100%;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.phone-mockup {
    position: relative;
    max-width: 300px;
}

.phone-img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========================================
   SECTIONS
   ======================================== */

.features,
.screenshots,
.contact {
    padding: 5rem 0;
    width: 100%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* ========================================
   SCREENSHOTS
   ======================================== */

.screenshots {
    background: #f8fafc;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
}

.screenshot-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   CONTACT
   ======================================== */

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    min-width: 250px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-info p {
    color: #6b7280;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* ========================================
   LOGIN SCREEN
   ======================================== */

.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.back-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #3b82f6;
}

.login-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

.login-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-method-btn {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-method-btn:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.login-method-btn.google-btn {
    color: #4285f4;
}

.email-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

/* ========================================
   ADMIN PANEL
   ======================================== */

.admin-panel {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.admin-panel-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
}

.admin-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.admin-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 5rem;
    width: 100%;
}

/* ========================================
   ADMIN PANEL ENHANCEMENTS
   ======================================== */

.admin-top-header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-back-btn:hover {
    background-color: #f3f4f6;
    color: #1f2937;
    border-color: #e5e7eb;
}

.header-logo-container {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-app-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.01em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.admin-mobile-menu-toggle i {
    font-size: 1rem;
}

.header-user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-user-img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.header-user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.header-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.header-logout-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

/* Menu Lateral Aprimorado */
.admin-vertical-menu {
    width: 240px;
    flex-shrink: 0;
    background: #ffffff; /* Fundo branco para limpeza */
    border-right: 1px solid #f3f4f6;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: calc(100vh - 65px); /* Ajuste altura */
    position: sticky;
    top: 65px;
    overflow-y: auto;
}

.admin-menu-group-label {
    margin: 0.75rem 1rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.admin-menu-item-v {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.admin-menu-item-v:hover {
    background: #f9fafb;
    color: #1f2937;
}

.admin-menu-item-v.active {
    background: #eff6ff; /* Azul bem claro */
    color: #2563eb; /* Azul primário */
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
}

.admin-menu-item-v i {
    width: 20px;
    text-align: center;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.admin-menu-item-v:hover i {
    transform: scale(1.1);
}

.admin-menu-item-v.active i {
    color: #2563eb;
}

/* Conteúdo Principal */
.admin-content-area {
    flex: 1;
    padding: 0.5rem 0 4.5rem;
    background: #f9fafb; /* Fundo levemente cinza para contraste com cards brancos */
    min-height: calc(100vh - 65px);
}

.content-section {
    padding: 0.5rem 0 1.5rem;
    display: none;
    width: 100%;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.admin-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-toolbar-left,
.admin-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-filter-select {
    min-width: 140px;
    max-width: 200px;
    border-radius: 8px;
    border-color: #e2e8f0;
    font-size: 0.875rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.admin-filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.admin-input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
}

.admin-input-group .form-control {
    border: none;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.admin-input-group .btn {
    border-radius: 0;
    border: none;
    border-left: 1px solid #e2e8f0;
    padding: 0 1.25rem;
    color: #64748b;
}

.admin-input-group .btn:hover {
    background: #f8fafc;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 992px) {
    .admin-main-wrapper {
        flex-direction: column;
    }

    .admin-vertical-menu {
        position: fixed;
        left: 0;
        top: 65px;
        width: 260px;
        max-width: 80vw;
        height: calc(100vh - 65px);
        background: #ffffff;
        border-right: 1px solid #e5e7eb;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
    }

    .admin-vertical-menu.open {
        transform: translateX(0);
    }

    .admin-content-area {
        padding-top: 1rem;
    }

    .admin-mobile-menu-toggle {
        display: inline-flex;
    }
}

/* Ajustes Header Mobile */
@media (max-width: 576px) {
    .admin-top-header {
        padding: 0.75rem 1rem;
    }
    
    .header-app-name {
        display: none; /* Economizar espaço */
    }
    
    .header-user-name {
        display: none;
    }
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.admin-section {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.admin-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.data-item:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.data-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.data-item-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.data-item-content p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.data-item-content small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.loading-item,
.empty-item {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

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

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    /* Escopo ajustado: ocultar apenas links do navbar marketing */
    .nav-links .nav-link,
    .nav-links .admin-btn {
        display: none;
    }

    /* Garantir visibilidade dos links na sidebar do admin no mobile */
    .sidebar .nav-link {
        display: block;
    }

    /* Mostrar botão hamburger no mobile */
    .mobile-menu-toggle {
        display: inline-flex;
        top: calc(50% - 22px);
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .login-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .admin-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-content {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   DASHBOARD DEVICES TABLE ENHANCEMENTS
   ======================================== */

table.devices-table td {
    vertical-align: middle;
}

.badge-platform {
    background-color: #eef2ff;
    color: #1d4ed8;
}

.badge-sync-ok {
    background-color: #dcfce7;
    color: #166534;
}

.badge-sync-warn {
    background-color: #fef9c3;
    color: #a16207;
}

.badge-sync-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-conn {
    background-color: #f0f9ff;
    color: #0ea5e9;
}

.device-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.device-row-icon {
    width: 18px;
    height: 18px;
}

/* Dashboard: sidebar overlay e comportamento no mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        overflow-y: auto;
        z-index: 1050;
        background-color: #2c3e50;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }

    /* Classe para mostrar o menu */
    .sidebar.show {
        transform: translateX(0);
    }

    /* Quando visível (sem d-none), desliza para dentro */
    .sidebar:not(.d-none) {
        /* Mantém a lógica original caso o JS apenas remova o d-none */
        /* Mas preferimos usar a classe .show para controle explícito */
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: transparent !important;
        z-index: 1040;
        display: none !important;
        opacity: 0 !important;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: none !important;
        opacity: 0 !important;
    }

    /* Mostrar overlay apenas em telas pequenas (mobile) */
    @media (min-width: 768px) {
        .sidebar-overlay,
        .sidebar-overlay.active {
            display: none !important;
            opacity: 0 !important;
            pointer-events: none;
            background: transparent !important;
        }
    }

    /* Cabeçalhos dos cards: permitir quebra no mobile */
    .card-header.d-flex {
        flex-wrap: wrap;
        gap: 12px;
    }

    .card-header .input-group {
        width: 100%;
        max-width: 100%;
    }

    /* Botões e Inputs melhores para toque */
.btn,
.form-control,
.nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.btn-sm {
    min-height: 32px;
}

.admin-main-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.admin-content-area > .px-2,
.admin-content-area > .px-md-4,
.admin-content-area .px-2.px-md-4 {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .admin-content-area {
        padding-bottom: 4.5rem;
    }

    .admin-content-area .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .admin-content-area .input-group {
        max-width: 100% !important;
        width: 100%;
    }

    .admin-content-area .d-flex.align-items-center.ms-3 {
        margin-left: 0 !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-content-area select.form-select-sm {
        min-width: 130px;
    }

    .admin-content-area .row.unified-grid > [class^="col-"],
    .admin-content-area .row.unified-grid > [class*=" col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
}

/* ========================================
   PÁGINAS PADRONIZADAS - CLASSES REUTILIZÁVEIS
   ======================================== */

/* Background padrão para páginas */
.page-background {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.page-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E5E7EB" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Container padrão para conteúdo */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* Páginas legais (privacy, terms) */
.legal-page {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1f2937;
    position: relative;
}

.legal-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E5E7EB" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

.legal-header {
    text-align: center;
    margin-bottom: 3.75rem;
    padding: 2.5rem 0;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.legal-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.legal-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.875rem 0 0.9375rem;
}

.legal-content p {
    margin-bottom: 1.25rem;
    color: #374151;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    margin: 1.25rem 0;
    padding-left: 1.875rem;
}

.legal-content li {
    margin-bottom: 0.625rem;
    color: #374151;
    line-height: 1.7;
}

.legal-content strong {
    color: #1f2937;
    font-weight: 700;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    margin-bottom: 1.875rem;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.last-updated {
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border-left: 4px solid #3b82f6;
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Cards padronizados */
.standard-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Páginas de sucesso/join */
.success-page,
.join-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.success-page::before,
.join-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E5E7EB" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Ícones e badges padronizados */
.page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.page-title {
    font-size: 2rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Botões padronizados para páginas */
.page-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.page-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
    color: white;
}

.page-btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
}

.page-btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
    color: #3b82f6;
}

/* Responsividade para páginas legais */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-container {
        padding: 0 0.9375rem;
    }

    .legal-header {
        padding: 1.875rem 1.25rem;
        margin-bottom: 2.5rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 1.875rem 1.25rem;
    }

    .standard-card {
        margin: 1.25rem;
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========================================
   ANIMATED GRADIENT BACKGROUND
   ======================================== */
.animated-gradient {
    background: linear-gradient(120deg, #f8fafc, #eef2ff, #f1f5f9);
    background-size: 400% 400%;
    animation: bgFlow 18s ease infinite;
}

@keyframes bgFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   MOBILE DESIGN SYSTEM (PWA-Ready)
   ======================================== */

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--color-background);
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.bottom-nav-item.active {
    color: var(--color-primary);
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    right: 1.5rem;
    bottom: 5.5rem;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--color-primary);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-button);
    z-index: 999;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-button-hover);
}

/* Swipeable Cards */
.swipe-container {
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
}

.swipe-content {
    transition: transform 0.2s ease-out;
    background: white;
    position: relative;
    z-index: 2;
}

.swipe-action {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.25rem;
    z-index: 1;
}

.swipe-action-left {
    left: 0;
    background: var(--color-success);
}

.swipe-action-right {
    right: 0;
    background: var(--color-error);
}

/* Progressive Disclosure Cards */
.card-progressive {
    background: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    cursor: pointer;
}

.card-progressive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-progressive-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 0;
}

.card-progressive.expanded .card-progressive-body {
    max-height: 500px;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
}

/* Real-time Sync Indicator */
.sync-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    z-index: 2000;
    transform: translateY(-100px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sync-indicator.active {
    transform: translateY(0);
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

.sync-dot.syncing {
    background: var(--color-warning);
    animation: pulse 1s infinite;
}

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

/* Media Queries for Mobile Design */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    /* FAB removed as requested */
    .fab {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .admin-vertical-menu {
        display: none !important;
    }

    .admin-main-wrapper {
        flex-direction: column;
    }

    .admin-content-area {
        padding-bottom: 80px;
    }

    .navbar {
        display: none !important;
    }
}

/* ========================================
   ADMIN DASHBOARD ENHANCEMENTS
   ======================================== */
.admin-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-card);
}

.curadoria-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.curadoria-pending { background: #fef3c7; color: #92400e; }
.curadoria-approved { background: #d1fae5; color: #065f46; }

.sync-health-bar {
    height: 8px;
    background: var(--color-border-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.sync-health-fill {
    height: 100%;
    background: var(--color-success);
    transition: width 0.5s ease;
}
.admin-hero {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.admin-hero h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-hero p {
    color: #334155;
    margin-top: 4px;
}

.admin-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.25), transparent);
    filter: blur(10px);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action-card i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.quick-action-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* ========================================
   ACCESSIBILITY - REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   IMAGE PROPORTION FIXES
   ======================================== */
/* Preserve natural aspect ratio for images by default */
img {
    height: auto;
}

/* Override fixed heights to keep original proportions */
.logo-img,
.hero-logo-img,
.footer-logo-img,
.admin-logo-img,
.login-logo img,
.login-logo-img,
.screenshot-img,
.phone-img {
    height: auto !important;
    object-fit: contain;
}

/* ========================================
   UNIFIED DESIGN SYSTEM - COMPONENTES PADRONIZADOS
   ======================================== */

/* Sistema de Miniaturas com Lazy Loading */
.thumbnail-container {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--color-background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-light);
}

.thumbnail-container.large {
    width: 80px;
    height: 80px;
}

.thumbnail-container.small {
    width: 32px;
    height: 32px;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-fast);
}

.thumbnail-image.lazy {
    opacity: 0;
}

.thumbnail-image.loaded {
    opacity: 1;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-background-secondary), var(--color-background-gradient));
    color: var(--color-text-secondary);
    font-size: 1.2rem;
}

.thumbnail-placeholder.category-food {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.thumbnail-placeholder.category-electronics {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.thumbnail-placeholder.category-clothing {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
}

.thumbnail-placeholder.category-home {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.thumbnail-placeholder.category-default {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

/* Cards de Produtos Unificados */
.product-card {
    background: var(--color-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.product-card-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    flex: 1;
}

.product-card-category {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-success);
    margin: var(--spacing-sm) 0;
}

.product-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

/* Cards de Listas Unificados */
.list-card {
    background: var(--color-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.list-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.list-card-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    flex: 1;
}

.list-card-sharing {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-primary);
    font-size: var(--font-size-xs);
}

.list-card-preview {
    display: flex;
    gap: var(--spacing-xs);
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm);
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-sm);
}

.list-card-preview-item {
    width: 24px;
    height: 24px;
    border-radius: var(--border-radius-sm);
    background: var(--color-primary);
    opacity: 0.7;
}

.list-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

/* Cards de Usuários Unificados */
.user-card {
    background: var(--color-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--font-size-md);
}

.user-card-name {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.user-card-email {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin: 0;
}

.user-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border-light);
}

.user-stat {
    text-align: center;
}

.user-stat-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.user-stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Badges de Status Unificados */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success-dark);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-warning-dark);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary-dark);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Sistema de Grid Responsivo */
.unified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
    .unified-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Container Unificado */
.unified-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* Animações Unificadas */
.fade-in-up {
    animation: fadeInUp var(--transition-medium) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects Unificados */
.hover-lift-unified {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-lift-unified:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

/* Loading States Unificados */
.loading-shimmer {
    background: linear-gradient(90deg, var(--color-background-secondary) 25%, var(--color-background-gradient) 50%, var(--color-background-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Cards de Estatísticas Unificados */
.card-dashboard.card-stat {
    background: var(--color-background);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.card-dashboard.card-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.card-dashboard.card-stat .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-button);
}

.card-dashboard.card-stat .stat-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1;
}

.card-dashboard.card-stat .stat-content p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cards de Dashboard Unificados */
.card-dashboard {
    background: var(--color-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.card-dashboard .card-header {
    background: linear-gradient(135deg, var(--color-background-secondary), var(--color-background-gradient));
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--spacing-lg);
    font-weight: 600;
    color: var(--color-text-primary);
}

.card-dashboard .card-body {
    padding: var(--spacing-lg);
}

/* Tabelas de Dashboard Unificadas */
.data-table {
    background: var(--color-background);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border-light);
}

.data-table thead {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.data-table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    padding: var(--spacing-md);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.data-table tbody td {
    padding: var(--spacing-md);
    vertical-align: middle;
    color: var(--color-text-primary);
}

.data-table tbody td .btn-sm {
    min-height: 32px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Responsive Dashboard Cards */
@media (max-width: 768px) {
    .card-dashboard.card-stat {
        min-height: 140px;
        padding: var(--spacing-lg);
    }
    
    .card-dashboard.card-stat .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .card-dashboard.card-stat .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
.data-table thead th,
.data-table tbody td {
    padding: 0.75rem;
}
}

@media (max-width: 768px) {
    .container { padding: 0 0.75rem; }
    .content-section { padding: 0.75rem; }
    .input-group { width: 100%; max-width: 100%; }
    .table { font-size: 0.875rem; }
    .table th, .table td { white-space: normal; word-break: break-word; }
    .card { border-radius: 0.75rem; }
    .card-body { padding: 1rem; }
    .standard-card { padding: 2rem 1.5rem; margin: 1rem; }
    .page-title { font-size: 1.75rem; }
    .page-subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.5rem; }
    .content-section { padding: 0.5rem; }
    .btn { padding: 0.625rem 0.875rem; }
    .standard-card { padding: 1.75rem 1.25rem; }
    .page-title { font-size: 1.5rem; }
    .page-subtitle { font-size: 0.9375rem; }
}

/* ========================================
   ADMIN RESPONSIVE GRID & BOTTOM NAV
   ======================================== */

@media (max-width: 767.98px) {
    .admin-top-header { 
        position: sticky; 
        top: 0; 
        z-index: 1060; 
        background: var(--color-primary); 
    }
    
    .admin-content-area { 
        padding-bottom: calc(90px + env(safe-area-inset-bottom)); 
        background: #f8fafc; 
    }
    
    .admin-content-area .card { 
        border: none; 
        background: transparent; 
        box-shadow: none; 
    }
    
    .admin-content-area .card-body { 
        padding: 0; 
    }
    
    .table-responsive { 
        overflow: visible; 
    }
    
    .responsive-table thead { 
        display: none; 
    }
    
    /* Bottom Nav standardized */
    .bottom-nav {
        height: 70px;
        padding-bottom: env(safe-area-inset-bottom);
        background: #fff;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.12);
        display: flex;
        justify-content: space-around;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1050;
    }
    
    .bottom-nav::-webkit-scrollbar { 
        display: none; 
    }
    
    .bottom-nav-item {
        flex: 0 0 auto;
        min-width: 60px;
        padding: 8px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none !important;
        color: #64748b;
        transition: all 0.2s ease;
    }
    
    .bottom-nav-item i { 
        font-size: 1.25rem; 
        margin-bottom: 4px; 
    }
    
    .bottom-nav-item span { 
        font-size: 0.65rem; 
        font-weight: 600; 
    }
    
    .bottom-nav-item.active { 
        color: var(--color-primary); 
    }

    /* Grid layout for tables in mobile */
    .responsive-table tbody { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
        padding: 10px;
    }
    
    .responsive-table tr { 
        display: flex; 
        flex-direction: column; 
        background: #fff; 
        border-radius: 16px; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
        padding: 0;
        position: relative;
        height: 100%;
        border: 1px solid #edf2f7;
        overflow: hidden;
        transition: transform 0.2s ease;
    }
    
    .responsive-table tr:active {
        transform: scale(0.98);
    }
    
    .responsive-table td { 
        display: block; 
        padding: 8px 12px; 
        border: none !important; 
        width: 100% !important;
        text-align: left !important;
        color: #1e293b;
    }
    
    /* Checkbox overlay on top of image */
    .responsive-table td:first-child { 
        position: absolute; 
        top: 10px; 
        left: 10px; 
        z-index: 10;
        width: auto !important;
        background: rgba(255,255,255,0.95);
        border-radius: 8px;
        padding: 6px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .responsive-table td:first-child input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    /* Image container 1:1 */
    .responsive-table td.td-thumbnail, 
    .responsive-table td:nth-child(2) { 
        aspect-ratio: 1 / 1;
        height: auto;
        display: flex; 
        align-items: center; 
        justify-content: center;
        margin-bottom: 0;
        padding: 0 !important;
        background: #f1f5f9;
        overflow: hidden;
    }
    
    .responsive-table .thumbnail-container,
    .responsive-table .thumbnail-container.large { 
        width: 100%; 
        height: 100%; 
        border-radius: 0;
    }
    
    .responsive-table .thumbnail-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .responsive-table td.td-name,
    .responsive-table td:nth-child(3) { 
        font-size: 0.95rem; 
        line-height: 1.3; 
        height: 2.6rem; 
        overflow: hidden; 
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-top: 8px;
        margin-bottom: 4px;
        color: #1e293b;
        font-weight: 700 !important;
    }

    .responsive-table td.td-price,
    .responsive-table td:nth-child(7) { 
        font-size: 1rem; 
        color: var(--color-primary); 
        font-weight: 800;
        padding-top: 0 !important;
    }
    
    .responsive-table td.td-status,
    .responsive-table td:nth-child(8) { 
        margin-top: auto; 
        padding-top: 8px !important; 
    }
    
    .responsive-table td.td-updated,
    .responsive-table td:nth-child(9) { 
        font-size: 0.7rem; 
        color: #94a3b8; 
        padding-bottom: 12px !important; 
    }
    
    /* Load more row fix */
    .responsive-table #loadMoreRow {
        grid-column: 1 / -1;
        display: block;
        background: transparent;
        box-shadow: none;
        border: none !important;
        padding: 20px 0 !important;
    }

    /* FAB adjustment */
    .fab { 
        bottom: 85px; 
        right: 20px; 
        z-index: 1040; 
        width: 60px; 
        height: 60px; 
        border-radius: 50%; 
        box-shadow: 0 8px 20px rgba(9, 67, 241, 0.35); 
        background: var(--color-primary);
        color: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
}

@media (min-width: 500px) and (max-width: 767.98px) {
    .responsive-table.table-grid-view tbody { grid-template-columns: repeat(3, 1fr); }
}

/* Floating Details Modal/Panel */
.floating-details-panel { 
    position: fixed; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%) scale(0.9);
    width: 550px; 
    max-width: 95vw; 
    max-height: 85vh;
    background: #fff; 
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25); 
    display: none; 
    z-index: 2100; 
    padding: 0; 
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-details-panel.active { 
    display: flex; 
    flex-direction: column; 
    transform: translate(-50%, -50%) scale(1); 
}

.floating-details-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(8px); 
    z-index: 2099; 
    display: none; 
}

.floating-details-overlay.active { 
    display: block; 
}

.floating-details-header { 
    padding: 24px; 
    background: var(--color-primary); 
    color: #fff; 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
}

.floating-details-header .title { 
    font-size: 1.3rem; 
    font-weight: 800; 
}

.floating-details-content { 
    padding: 24px; 
    overflow-y: auto; 
    flex: 1; 
}

.details-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    margin-bottom: 24px; 
    padding: 20px; 
    background: #f8fafc; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0;
}

.detail-item { 
    display: flex; 
    flex-direction: column; 
    gap: 4px;
}

.detail-label { 
    font-size: 0.7rem; 
    color: #64748b; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}

.detail-value { 
    font-size: 1rem; 
    color: #1e293b; 
    font-weight: 600; 
}

.details-section { 
    margin-top: 24px; 
}

.details-section h6 { 
    font-weight: 800; 
    margin-bottom: 16px; 
    color: #1e293b; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.95rem;
}

.details-section h6 i {
    color: var(--color-primary);
}

.details-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.details-list li { 
    padding: 12px 16px; 
    border-radius: 12px; 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 2px;
    transition: all 0.2s ease;
}

.details-list li:hover {
    border-color: var(--color-primary);
    background: rgba(9, 67, 241, 0.02);
}

.floating-details-close { 
    border: none; 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s; 
    cursor: pointer;
}

.floating-details-close:hover { 
    background: rgba(255,255,255,0.3); 
    transform: rotate(90deg);
}

/* Helper classes for grid layout */
.responsive-table td.td-thumbnail { order: 1; }
.responsive-table td.td-name { order: 2; }
.responsive-table td.td-category { display: none !important; }
.responsive-table td.td-brand { display: none !important; }
.responsive-table td.td-barcode { display: none !important; }
.responsive-table td.td-price { order: 3; }
.responsive-table td.td-status { order: 4; }
.responsive-table td.td-updated { order: 5; }


/* ========================================
   HORIZONTAL DRAGGABLE ADMIN MENU (LEGACY)
   ======================================== */
.admin-horizontal-menu {
    display: none; /* Hidden in favor of vertical menu */
}

.admin-menu-container {
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    cursor: grab;
    user-select: none;
}

.admin-menu-container:active {
    cursor: grabbing;
}

.admin-menu-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.admin-menu-item {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none !important;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-menu-item i {
    font-size: 1.1rem;
}

.admin-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-menu-item.active {
    background-color: white;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-menu-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.admin-menu-brand span {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

/* Adjustments for main content when sidebar is removed */
.admin-layout-adjust {
    padding-top: 1.5rem;
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .admin-menu-brand span {
        display: none;
    }
    .admin-menu-brand {
        margin-right: 0.5rem;
        padding-right: 0.5rem;
    }
}
