/* ============================================
   MAIN STYLESHEET - SevenLux
   ============================================ */

/* Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.text-gold {
    color: #C6A43F;
}

.text-muted {
    color: #888 !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
    background: #C6A43F;
    color: #0a0a1a;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    border: none;
    font-weight: 600;
}

.btn-gold:hover {
    background: #d4b96a;
    transform: translateY(-3px);
    color: #0a0a1a;
}

.btn-outline-gold {
    border: 1px solid #C6A43F;
    color: #C6A43F;
    background: transparent;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline-gold:hover {
    background: #C6A43F;
    color: #0a0a1a;
}

/* ============================================
   CARDS (Frontend)
   ============================================ */
.servico-card,
.produto-card,
.blog-card {
    background: #1e1e2e;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.servico-card:hover,
.produto-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.servico-card:nth-child(1) { animation-delay: 0.1s; }
.servico-card:nth-child(2) { animation-delay: 0.2s; }
.servico-card:nth-child(3) { animation-delay: 0.3s; }

.produto-card img,
.blog-card img {
    border-radius: 10px;
}

.produto-card .btn-outline-gold,
.produto-card .btn-gold {
    font-size: 0.8rem;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.produto-card .btn-outline-gold:hover {
    background: #C6A43F;
    color: #0a0a1a;
    border-color: #C6A43F;
}

.produto-card .btn-gold:hover {
    background: #b8922e;
    transform: translateY(-1px);
}

.produto-card .d-flex {
    gap: 8px;
}

/* ============================================
   FORMS (Frontend)
   ============================================ */
.form-control {
    background: #2a2a35;
    border: 1px solid #3a3a4a;
    color: white;
    border-radius: 10px;
    padding: 12px 15px;
}

.form-control:focus {
    background: #2a2a35;
    color: white;
    border-color: #C6A43F;
    box-shadow: 0 0 0 0.2rem rgba(198, 164, 63, 0.25);
}

/* ============================================
   NUMERIC KEYPAD & DIGIT DISPLAY
   ============================================ */
.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.numpad-btn {
    background: #1e1e2e;
    border: 2px solid #C6A43F;
    color: #C6A43F;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.1s ease;
    text-align: center;
}

.numpad-btn:active {
    transform: scale(0.94);
    background: #C6A43F;
    color: #0a0a1a;
}

.numpad-reset,
.numpad-back {
    background: #2a2a35;
    border-color: #666;
    color: #ccc;
    font-size: 1.2rem;
}

.code-display {
    background: #0a0a1a;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    letter-spacing: 12px;
    text-align: center;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #C6A43F;
    margin-bottom: 20px;
    word-break: break-all;
}

/* ============================================
   FOOTER (Rodapé)
   ============================================ */
.rodape {
    background: #0a0a1a;
    border-top: 2px solid rgba(198, 164, 63, 0.3);
    margin-top: 50px;
    padding: 30px 0 !important;
    position: relative;
    z-index: 1;
}

.rodape .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.rodape .text-gold {
    color: #C6A43F !important;
    text-decoration: none;
}

.rodape .text-gold:hover {
    text-decoration: underline;
}

.rodape a {
    color: #C6A43F;
    text-decoration: none;
}

.rodape a:hover {
    text-decoration: underline;
}

/* Fix footer to bottom */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container,
.container-fluid,
.py-5.container:first-of-type {
    flex: 1 0 auto;
}

.rodape {
    flex-shrink: 0;
    margin-top: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding-top: 40px;
    min-height: 65vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn-gold {
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding-top: 30px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
}

/* ============================================
   ADMIN PANEL
   ============================================ */
body.admin-container {
    background: #f0f2f5 !important;
    color: #1a1a2e !important;
}

/* Admin navbar */
.admin-container .navbar-dark.bg-dark {
    background: #1a1a2e !important;
}

.admin-container .navbar-brand {
    color: #C6A43F !important;
}

.admin-container .navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Admin cards */
.admin-container .card {
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.admin-container .card-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e0e0e0 !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
}

.admin-container .card-body {
    background: white !important;
    color: #1a1a2e !important;
    padding: 16px !important;
}

/* Admin headings */
.admin-container h1,
.admin-container h2,
.admin-container h3,
.admin-container h4,
.admin-container h5 {
    color: #1a1a2e !important;
}

.admin-container h2 {
    border-bottom: 2px solid #C6A43F;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* Cabeçalho reutilizável: dá prioridade ao título e mantém as ações visíveis. */
.admin-container .admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-container .admin-page-header h2 {
    margin-bottom: 0.25rem;
}

.admin-container .admin-page-header-description {
    margin: 0;
    color: #6c757d !important;
}

.admin-container .admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.admin-container .admin-page-actions .btn {
    white-space: nowrap;
}

/* ============================================
   ADMIN TEXT - EXCLUIR O SIDEBAR DESTA REGRA
   ============================================ */
/* 🔥 CORRIGIDO: Agora apenas elementos DENTRO do conteúdo principal */
.admin-container .main-content p,
.admin-container .main-content span,
.admin-container .main-content div:not(.card-header):not(.alert) {
    color: #333 !important;
}

.admin-container .text-muted {
    color: #6c757d !important;
}

.admin-container .text-gold {
    color: #C6A43F !important;
}

/* Admin forms */
.admin-container .form-control {
    background: white !important;
    border: 1px solid #ced4da !important;
    color: #1a1a2e !important;
}

.admin-container .form-control:focus {
    border-color: #C6A43F !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 164, 63, 0.25) !important;
}

.admin-container label {
    color: #1a1a2e !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

/* Admin buttons */
.admin-container .btn-gold {
    background: #C6A43F !important;
    border: none !important;
    color: #1a1a2e !important;
}

.admin-container .btn-gold:hover {
    background: #b8922e !important;
    color: #0a0a1a !important;
}

.admin-container .btn-primary {
    background: #C6A43F !important;
    border: none !important;
    color: #1a1a2e !important;
}

.admin-container .btn-primary:hover {
    background: #b8922e !important;
}

.admin-container .btn-warning {
    background: #ffc107 !important;
    color: #1a1a2e !important;
    border: none !important;
}

.admin-container .btn-danger {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
}

.admin-container .btn-secondary {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
}

.admin-container .btn-outline-gold {
    border: 1px solid #C6A43F !important;
    color: #C6A43F !important;
    background: transparent !important;
}

.admin-container .btn-outline-gold:hover {
    background: #C6A43F !important;
    color: #1a1a2e !important;
}

/* Admin tables */
.admin-container .table {
    background: white !important;
    color: #1a1a2e !important;
}

.admin-container .table th {
    background: #f8f9fa !important;
    color: #1a1a2e !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: 700 !important;
}

.admin-container .table td {
    color: #1a1a2e !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.admin-container .table-striped tbody tr:nth-of-type(odd) {
    background: #f9f9f9 !important;
}

.admin-container .table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-container .table {
    min-width: 480px;
    margin-bottom: 0;
}

.admin-container .table th,
.admin-container .table td {
    padding: 8px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.admin-container .table-hover tbody tr:hover > * {
    background-color: #f1f3f5 !important;
    color: #1a1a2e !important;
}

.admin-container .dashboard-container .module-card .card-body {
    padding: 14px 10px !important;
}

.admin-container .dashboard-container .module-card {
    border-color: rgba(26, 26, 46, 0.12) !important;
    box-shadow: 0 1px 4px rgba(26, 26, 46, 0.06) !important;
}

@media (hover: hover) and (pointer: fine) {
    .admin-container .dashboard-container .module-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 18px rgba(26, 26, 46, 0.1) !important;
    }
}

.admin-container .table td:last-child {
    white-space: normal;
}

.admin-container .btn-group-sm .btn {
    padding: 4px 8px;
    font-size: 0.7rem;
}

/* Admin alerts */
.admin-container .alert-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.admin-container .alert-danger {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.admin-container .alert-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

.admin-container .alert-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    color: #ffc107 !important;
    border-radius: 12px !important;
}

/* Admin badges */
.admin-container .badge {
    background: #C6A43F !important;
    color: #1a1a2e !important;
}

/* Estados de Encomendas: contraste partilhado na lista e no detalhe. */
.admin-container .badge[class*="encomendas-estado-"] {
    color: #fff !important;
}

/* Estados comerciais: preservam significado e contraste nos cartões claros. */
.admin-container .badge.modulo-estado-ativo,
.admin-container .badge.pedido-estado-aprovado {
    background: #d1e7dd !important;
    color: #0f5132 !important;
    border: 1px solid #75b798;
}

.admin-container .badge.modulo-estado-pendente,
.admin-container .badge.pedido-estado-pendente {
    background: #fff3cd !important;
    color: #664d03 !important;
    border: 1px solid #d6b84f;
}

.admin-container .badge.modulo-estado-incluido {
    background: #cfe2ff !important;
    color: #084298 !important;
    border: 1px solid #86b7fe;
}

.admin-container .badge.modulo-estado-inativo,
.admin-container .badge.pedido-estado-cancelado {
    background: #e2e3e5 !important;
    color: #41464b !important;
    border: 1px solid #b8bcc1;
}

.admin-container .badge.pedido-estado-rejeitado {
    background: #f8d7da !important;
    color: #842029 !important;
    border: 1px solid #e49aa2;
}

.admin-container .modulo-ativo-feedback {
    color: #0f5132 !important;
    font-weight: 600;
}

.admin-container .modulo-pedido-pendente {
    color: #664d03 !important;
    font-weight: 600;
}

/* Admin links (apenas dentro do conteúdo principal) */
.admin-container .main-content a:not(.btn):not(.nav-link) {
    color: #C6A43F !important;
    text-decoration: none;
}

.admin-container .main-content a:not(.btn):not(.nav-link):hover {
    text-decoration: underline !important;
}

/* ============================================
   SIDEBAR - NENHUM ESTILO AQUI (tudo no admin_menu.php)
   ============================================ */

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.vitrine-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transform: translateX(420px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    overflow: hidden;
}

.vitrine-toast.show {
    transform: translateX(0);
}

.toast-content {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.toast-success .toast-content {
    background: #d4edda;
    color: #155724;
}

.toast-error .toast-content {
    background: #f8d7da;
    color: #721c24;
}

.toast-warning .toast-content {
    background: #fff3cd;
    color: #856404;
}

.toast-info .toast-content {
    background: #d1ecf1;
    color: #0c5460;
}

.toast-content i {
    font-size: 1.4rem;
}

.toast-progress {
    height: 4px;
    background: #C6A43F;
    width: 100%;
    animation: progressBar 4s linear forwards;
}

@keyframes progressBar {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* ============================================
   REDES SOCIAIS
   ============================================ */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons .social-icon {
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icons .social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icons .social-icon i {
    font-size: inherit;
}

/* Cores específicas para hover */
.social-icons .social-icon[title="Facebook"]:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
}
.social-icons .social-icon[title="Instagram"]:hover {
    background: #E4405F !important;
    border-color: #E4405F !important;
}
.social-icons .social-icon[title="X (Twitter)"]:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}
.social-icons .social-icon[title="LinkedIn"]:hover {
    background: #0A66C2 !important;
    border-color: #0A66C2 !important;
}
.social-icons .social-icon[title="YouTube"]:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
}
.social-icons .social-icon[title="TikTok"]:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}
.social-icons .social-icon[title="WhatsApp"]:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
}
.social-icons .social-icon[title="Pinterest"]:hover {
    background: #E60023 !important;
    border-color: #E60023 !important;
}
.social-icons .social-icon[title="Telegram"]:hover {
    background: #26A5E4 !important;
    border-color: #26A5E4 !important;
}
.social-icons .social-icon[title="Spotify"]:hover {
    background: #1DB954 !important;
    border-color: #1DB954 !important;
}
.social-icons .social-icon[title="GitHub"]:hover {
    background: #333333 !important;
    border-color: #333333 !important;
}
.social-icons .social-icon[title="Discord"]:hover {
    background: #5865F2 !important;
    border-color: #5865F2 !important;
}
.social-icons .social-icon[title="Threads"]:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}

.social-icons .social-icon i {
    color: inherit;
}

/* ============================================
   RESPONSIVENESS
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

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

    .admin-container .table-responsive {
        overflow-x: auto;
    }
    
    .admin-container .table th,
    .admin-container .table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .admin-container .admin-page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .admin-container .admin-page-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .numpad-grid {
        gap: 8px;
        max-width: 240px;
    }
    .numpad-btn {
        padding: 12px;
        font-size: 1.3rem;
    }
    .code-display {
        font-size: 1.4rem;
        letter-spacing: 6px;
    }
    
    .admin-container .table th,
    .admin-container .table td {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .admin-container .table td .btn-group-sm .btn {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .admin-container .d-none.d-sm-inline {
        display: none !important;
    }
    
    .module-card .card-body {
        padding: 10px 6px !important;
    }
    
    .module-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.85rem !important;
    }
    
    .module-count {
        font-size: 1.1rem !important;
    }
    
    .module-label {
        font-size: 0.55rem !important;
    }
    
    .modules-grid .col-6 {
        padding: 6px;
    }
    
    .config-section {
        padding: 12px 10px !important;
    }
    
    .config-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .config-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-control {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }
    
    .form-label {
        font-size: 0.75rem !important;
    }
    
    .config-section .row.g-2 > div {
        padding: 4px;
    }
    
    .config-section .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: 4px !important;
    }
    
    .config-section .d-flex.gap-2 .form-control {
        flex: 1;
        min-width: 60px;
    }
}

/* ============================================
   OVERLAY PARA MOBILE MENU
   ============================================ */
.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.admin-overlay.active {
    display: block;
}

/* Garantir fundo escuro no frontend */
body:not(.admin-container) {
    background: #0a0a1a;
    color: #e0e0e0;
}



/* Adicionar ao seven-lux.css ou app.css */

/* Produtos em Destaque */
.produto-destaque-card {
    background: linear-gradient(145deg, #1a1a2e, #12122a);
    border: 1px solid rgba(198, 164, 63, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.produto-destaque-card:hover {
    transform: translateY(-8px);
    border-color: rgba(198, 164, 63, 0.4);
    box-shadow: 0 20px 40px rgba(198, 164, 63, 0.15);
}

.produto-destaque-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.produto-destaque-card .card-img-wrapper img {
    transition: transform 0.5s ease;
}

.produto-destaque-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Catálogo de produtos */
.table-catalogo {
    border-radius: 12px;
    overflow: hidden;
}

.table-catalogo thead th {
    background: #1a1a2e;
    color: #C6A43F;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(198, 164, 63, 0.1);
}

.table-catalogo tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
    cursor: default;
}

.table-catalogo tbody tr:hover {
    background: rgba(198, 164, 63, 0.05);
}

.text-gold { color: #C6A43F; }
.btn-outline-gold {
    color: #C6A43F;
    border-color: #C6A43F;
}
.btn-outline-gold:hover {
    background: #C6A43F;
    color: #0a0a1a;
}
.btn-gold {
    background: #C6A43F;
    color: #0a0a1a;
    border: none;
}
.btn-gold:hover {
    background: #d4b96a;
    color: #0a0a1a;
}

/* Mensagem do Luxor mini */
.luxor-message-mini {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(198, 164, 63, 0.08);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(198, 164, 63, 0.15);
}

.luxor-message-mini i {
    font-size: 1.2rem;
    color: #C6A43F;
}

/* Responsivo */
@media (max-width: 768px) {
    .vitrina-destaques .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .vitrina-destaques .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .table-catalogo td, 
    .table-catalogo th {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    .table-catalogo .btn-group .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}


/* ============================================
   COMPENSAR HEADER FIXO (FRONTEND) para dar espaço abaixo do nav
   ============================================ */
body:not(.admin-container) {
    padding-top: 85px;
}

@media (max-width: 768px) {
    body:not(.admin-container) {
        padding-top: 75px;
    }
}

@media (max-width: 480px) {
    body:not(.admin-container) {
        padding-top: 70px;
    }
}
