/* Gingongo IT e Serviços - Estilos Personalizados */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --whatsapp-color: #25D366;
}

/* ========== WhatsApp Flutuante ========== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    margin-top: 3px;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Tooltip do WhatsApp */
.whatsapp-float::before {
    content: "Fale Connosco";
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    pointer-events: none;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

/* ========== Barra de Contato Topo ========== */
.top-contact-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-contact-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-contact-bar a:hover {
    opacity: 0.8;
}

.top-contact-bar i {
    margin-right: 5px;
}

/* ========== Banner de Cookies ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease;
    border-top: 3px solid #667eea;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none !important;
}

.cookie-banner p {
    color: #ecf0f1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner a {
    color: #3498db;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner a:hover {
    color: #5dade2;
}

.cookie-banner .btn {
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cookie-banner .btn-success {
    background: #27ae60;
    border: none;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.cookie-banner .btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.cookie-banner .btn-outline-light {
    border: 2px solid #ecf0f1;
    color: #ecf0f1;
}

.cookie-banner .btn-outline-light:hover {
    background: #ecf0f1;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* ========== Estatísticas Hero ========== */
.stats-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========== Footer Links ========== */
.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========== Botões Widgets Flutuantes ========== */

/* Scroll to Top - APARECE AO ROLAR */
.scroll-to-top {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.scroll-to-top.show {
    display: flex !important;
}

.scroll-to-top:hover {
    background: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Chat Widget - SEMPRE VISÍVEL */
.chat-widget-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.chat-widget-btn:hover {
    background: #0b5ed7;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* ========== Chat Widget ========== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse-chat 2s infinite;
}

.chat-button::before {
    content: "Suporte";
    position: absolute;
    left: 70px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    pointer-events: none;
}

.chat-button:hover::before {
    opacity: 1;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.chat-button i {
    font-size: 1.8rem;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes pulse-chat {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

.chat-window {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1002;
    animation: slideInUp 0.3s ease;
}

@media (max-width: 768px) {
    .chat-window {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 100px;
        height: 450px;
    }
}

.chat-window.show {
    display: flex;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.chat-close:hover {
    background: rgba(255,255,255,0.2);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    max-height: 400px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #e9ecef;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.chat-message {
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    text-align: right;
}

.chat-message.admin {
    text-align: left;
}

.chat-bubble {
    display: inline-block;
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 15px;
}

.chat-bubble.admin {
    background: white;
    color: #333;
    border: 1px solid #dee2e6;
    border-radius: 15px 15px 15px 0;
}

.chat-time {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 3px;
    display: block;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 15px 15px;
}

.chat-input-group {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

.chat-typing {
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    display: none;
    align-items: center;
    gap: 8px;
}

.chat-typing.show {
    display: flex;
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Geral */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Cards de Produto */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Cards de Categoria */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(13,110,253,0.2);
}

/* Botões */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(13,110,253,0.3);
}

/* Carrinho */
.cart-count {
    font-size: 0.7rem;
}

/* Tabela */
.table-hover tbody tr:hover {
    background-color: rgba(13,110,253,0.05);
}

/* Admin Sidebar */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #343a40;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Cards de Estatísticas */
.stats-card {
    border-left: 4px solid var(--primary-color);
}

.stats-card.success {
    border-left-color: var(--success-color);
}

.stats-card.warning {
    border-left-color: var(--warning-color);
}

.stats-card.danger {
    border-left-color: var(--danger-color);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Formulários */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

/* Imagens de Produto */
.product-image-main {
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.product-image-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-image-thumb:hover,
.product-image-thumb.active {
    border-color: var(--primary-color);
}

/* Filtros */
.filter-sidebar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.filter-sidebar .form-label {
    font-weight: 600;
    color: #495057;
}

/* Checkout */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.checkout-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-bottom: 3px solid #e0e0e0;
    color: #6c757d;
    font-weight: 500;
}

.checkout-step.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.checkout-step.completed {
    border-bottom-color: var(--success-color);
    color: var(--success-color);
}

/* Resumo do Pedido */
.order-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 20px;
}

/* Footer */
footer a:hover {
    color: var(--primary-color) !important;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .checkout-steps {
        flex-direction: column;
    }
    
    .checkout-step {
        border-bottom: none;
        border-left: 3px solid #e0e0e0;
        text-align: left;
    }
    
    .checkout-step.active {
        border-left-color: var(--primary-color);
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Status de Pedido */
.order-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background-color: #cfe2ff;
    color: #084298;
}

.order-status.shipped {
    background-color: #d1e7dd;
    color: #0f5132;
}

.order-status.delivered {
    background-color: #d1e7dd;
    color: #0a3622;
}

.order-status.cancelled {
    background-color: #f8d7da;
    color: #842029;
}

/* Tooltip personalizado */
.tooltip-inner {
    background-color: var(--dark-color);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark-color);
}

/* Print styles para recibos */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
}

