/* Importação da fonte Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #007bff;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

/* Estilos para o container de login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    margin-bottom: 10px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 28px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-options {
    margin-bottom: 20px;
}

.google-login-btn {
    background-color: #4285f4;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.google-login-btn:hover {
    background-color: #3367d6;
    transform: translateY(-2px);
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.login-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.login-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    background-color: var(--white);
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}



.error-message {
    color: #e74c3c;
    margin-top: 20px;
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    visibility: visible;
    opacity: 1;
}

.login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #666;
    font-size: 14px;
}

.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Estilos para o Dashboard */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 250px;
    background-color: #000000; /* Fundo preto para o sidebar */
    color: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #333333;
}

.sidebar ul li a i {
    margin-right: 10px;
    font-size: 20px;
}

.main-content {
    flex-grow: 1;
    background-color: var(--white);
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h1 {
    margin: 0;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.profile-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.profile-role {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.profile-email {
    color: #888;
    font-size: 11px;
    margin-bottom: 5px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c82333 !important;
}

.main-content h1 {
    margin-bottom: 30px;
    color: #333;
    display: none; /* Ocultar o nome da página no topo */
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    text-align: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.card p {
    font-size: 24px;
    font-weight: 700;
    color: #555;
}

.chart-container {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.sales-list {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.sales-list h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.sales-list ul {
    list-style: none;
    padding: 0;
}

.sales-list ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sales-list ul li:last-child {
    border-bottom: none;
}

.sales-list ul li span {
    font-weight: 600;
}

/* Estilos para a página de Saldo */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.balance-card {
    background: linear-gradient(135deg, #f5faff 60%, #e0e7ff 100%);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 18px rgba(59,130,246,0.10);
    border: 1.5px solid #e0e7ff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(59,130,246,0.13);
    border-color: #3b82f6;
}

.balance-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.balance-info h3 {
    margin: 0 0 8px 0;
    color: #1d4ed8;
    font-size: 1rem;
    font-weight: 600;
}

.balance-info p {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.transactions-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(59,130,246,0.07);
    border: 1.5px solid #e0e7ff;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e7ff;
}

.transactions-header h2 {
    color: #1d4ed8;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.transaction-filters {
    display: flex;
    gap: 12px;
}

.transaction-filters select {
    padding: 8px 12px;
    border: 1.5px solid #b6c6e3;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    color: #374151;
}

.transactions-list {
    max-height: 500px;
    overflow-y: auto;
}

.transaction-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.transaction-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-title {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.transaction-details {
    color: #6b7280;
    font-size: 14px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 18px;
    color: #10b981;
}

.transaction-amount.negative {
    color: #ef4444;
}

.transaction-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-status.aprovado {
    background: #d1fae5;
    color: #065f46;
}

.transaction-status.pendente {
    background: #fef3c7;
    color: #92400e;
}

.transaction-status.cancelado {
    background: #fee2e2;
    color: #991b1b;
}

.loading-transactions {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-transactions i {
    font-size: 24px;
    margin-bottom: 12px;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        align-items: center;
    }

    .sidebar h2 {
        font-size: 18px;
    }

    .sidebar ul li a span {
        display: none;
    }

    .sidebar ul li a i {
        margin-right: 0;
    }

    .main-content {
        padding: 20px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 30px;
    }

    .login-box h2 {
        font-size: 24px;
    }

    button[type="submit"] {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .transactions-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .transaction-filters {
        flex-direction: column;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}




/* Estilos para Criar Produto */
.criar-produto-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--light-gray);
}

.steps-sidebar {
    width: 300px;
    background-color: #2c3e50;
    color: var(--white);
    padding: 30px 20px;
}

.steps-sidebar h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step.active {
    background-color: var(--primary-blue);
}

.step.completed {
    background-color: #27ae60;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.step.active .step-number,
.step.completed .step-number {
    background-color: var(--white);
    color: #2c3e50;
}

.step-title {
    font-weight: 500;
}

.step-content {
    display: none;
    padding: 40px;
    background-color: var(--white);
    flex-grow: 1;
}

.step-content.active {
    display: block;
}

.step-content h1 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.product-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-type-card {
    background-color: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.product-type-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-5px);
}

.product-type-card.selected {
    border-color: var(--primary-blue);
    background-color: #f8f9ff;
}

.product-type-card i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.product-type-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.product-type-card p {
    color: #666;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.upload-area {
    display: flex;
    flex-direction: column;
}

.upload-box {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.upload-box:hover {
    border-color: var(--primary-blue);
    background-color: #f8f9ff;
}

.upload-box.uploaded {
    border-color: #27ae60;
    background-color: #f8fff8;
}

.upload-box i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.upload-box p {
    color: #666;
    margin: 0;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-prev,
.btn-next,
.btn-finish {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background-color: #6c757d;
    color: var(--white);
}

.btn-prev:hover {
    background-color: #5a6268;
}

.btn-next,
.btn-finish {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-next:hover,
.btn-finish:hover {
    background-color: #0056b3;
}

.btn-next:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.modules-container {
    margin-top: 20px;
}

.modules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add-module {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-add-module:hover {
    background-color: #0056b3;
}

.module-item {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.module-header {
    background-color: #e9ecef;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-content {
    padding: 20px;
}

.module-content input,
.module-content textarea {
    width: 100%;
    margin-bottom: 15px;
}

.btn-remove {
    background-color: #dc3545;
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.review-checklist {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
}

.checklist-item.completed i {
    color: #28a745;
}

.summary-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.summary-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

/* Estilos para Checkout */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--light-gray);
    min-height: 100vh;
}

.checkout-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.checkout-header p {
    color: #666;
    font-size: 18px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.product-info {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
    height: fit-content;
}

.product-card {
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.product-details h2 {
    color: #333;
    margin-bottom: 10px;
}

.product-type {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.checkout-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.checkout-form h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-blue);
}

.payment-method.selected {
    border-color: var(--primary-blue);
    background-color: #f8f9ff;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.payment-icon {
    font-size: 24px;
}

.coupon-section {
    margin: 30px 0;
}

.coupon-input {
    display: flex;
    gap: 10px;
}

.coupon-input input {
    flex-grow: 1;
}

.coupon-input button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.coupon-input button:hover {
    background-color: #0056b3;
}

.order-summary {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.order-summary h3 {
    margin-bottom: 20px;
    color: #333;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-line:last-child {
    border-bottom: none;
}

.total-line {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-blue);
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 10px;
}

.discount-line {
    color: #28a745;
}

.btn-checkout {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #28a745;
    color: var(--white);
    padding: 20px 30px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.order-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
}

.order-info p {
    margin-bottom: 8px;
}

.modal-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.btn-close {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-close:hover {
    background-color: #0056b3;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: #0056b3;
}

/* Responsividade para páginas específicas */
@media (max-width: 768px) {
    .criar-produto-container {
        flex-direction: column;
    }
    
    .steps-sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }
    
    .step {
        min-width: 120px;
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .coupon-input {
        flex-direction: column;
    }
}



/* Modo Escuro */
body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-mode .sidebar {
    background-color: #2d2d2d;
}

body.dark-mode .main-content {
    background-color: #1a1a1a;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    color: #ffffff;
}

body.dark-mode .table-container {
    background-color: #2d2d2d;
}

body.dark-mode table {
    background-color: #2d2d2d;
    color: #ffffff;
}

body.dark-mode table th {
    background-color: #3d3d3d;
}

body.dark-mode input, body.dark-mode select {
    background-color: #3d3d3d;
    color: #ffffff;
    border: 1px solid #555;
}

/* Estilos para Ferramentas */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.tool-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.tool-card p {
    margin-bottom: 20px;
    color: #666;
}

.btn-tool {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-logout {
    background-color: #dc3545;
    color: white;
}

.btn-logout:hover {
    background-color: #c82333;
}

.btn-dark-mode {
    background-color: #6c757d;
    color: white;
}

.btn-dark-mode:hover {
    background-color: #5a6268;
}

.btn-clear-data {
    background-color: #ffc107;
    color: #212529;
}

.btn-clear-data:hover {
    background-color: #e0a800;
}

/* Estilos para Filtros */
.filters-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

/* Estilos para Tabelas */
.table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    margin-bottom: 15px;
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

table tr:hover {
    background-color: #f8f9fa;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.aprovada {
    background-color: #d4edda;
    color: #155724;
}

.status.pendente {
    background-color: #fff3cd;
    color: #856404;
}

.status.cancelada {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsividade */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }
    
    .tools-container {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px;
    }
}


/* ===== GESTÃO DE PRODUTOS - ESTILOS MODERNOS ===== */

/* Container principal dos produtos */
#produtos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* Card de produto moderno */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

/* Header do card */
.product-card-header {
    padding: 20px 20px 0 20px;
    position: relative;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Conteúdo principal do card */
.product-card-body {
    padding: 20px;
}

.product-info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #f3f4f6;
    transition: transform 0.2s ease;
}

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

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-id {
    font-size: 0.875rem;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
    margin: 4px 0;
}

.product-price.discounted {
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-price {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Status badges */
.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-badge.affiliate {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-badge.marketplace {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Botões de ação */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 100px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.primary {
    background: #3b82f6;
    color: white;
}

.action-btn.primary:hover {
    background: #2563eb;
}

.action-btn.success {
    background: #10b981;
    color: white;
}

.action-btn.success:hover {
    background: #059669;
}

.action-btn.warning {
    background: #f59e0b;
    color: white;
}

.action-btn.warning:hover {
    background: #d97706;
}

.action-btn.danger {
    background: #ef4444;
    color: white;
}

.action-btn.danger:hover {
    background: #dc2626;
}

.action-btn.secondary {
    background: #6b7280;
    color: white;
}

.action-btn.secondary:hover {
    background: #4b5563;
}

.action-btn.info {
    background: #06b6d4;
    color: white;
}

.action-btn.info:hover {
    background: #0891b2;
}

/* Header da página */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.products-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.new-product-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.new-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #d1d5db;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.empty-state .btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* Modal melhorado */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-content p {
    margin: 0 0 24px 0;
    color: #6b7280;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    #produtos-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
    
    .products-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .products-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .product-info-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .product-image {
        width: 100%;
        height: 200px;
        align-self: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .action-btn {
        min-width: auto;
    }
}

/* Modo escuro para produtos */
body.dark-mode #produtos-container .product-card {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

body.dark-mode .product-title {
    color: #f9fafb;
}

body.dark-mode .product-id {
    background: #4b5563;
    color: #d1d5db;
}

body.dark-mode .empty-state {
    background: #374151;
    border-color: #4b5563;
}

body.dark-mode .empty-state h3 {
    color: #f9fafb;
}

body.dark-mode .empty-state p {
    color: #d1d5db;
}

/* === Integrações - Página de Pixels === */
/* Integrações - Página de Pixels - Estilização aprimorada */
.integration-form-container {
    background: linear-gradient(135deg, #f5faff 60%, #e0e7ff 100%);
    box-shadow: 0 8px 32px rgba(59,130,246,0.10);
    border-radius: 18px;
    padding: 40px 32px 32px 32px;
    margin-bottom: 40px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    border: 1.5px solid #e0e7ff;
    position: relative;
}
.integration-form-container:before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 8px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}
.integration-form .form-group {
    margin-bottom: 22px;
}
.integration-form label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #1d4ed8;
    letter-spacing: 0.2px;
}
.integration-form input[type="text"],
.integration-form select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #b6c6e3;
    border-radius: 7px;
    font-size: 16px;
    margin-top: 4px;
    margin-bottom: 4px;
    transition: border-color 0.3s;
    background: #f8fafc;
}
.integration-form input[type="text"]:focus,
.integration-form select:focus {
    border-color: #3b82f6;
    outline: none;
}
.integration-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}
.integration-form .checkbox-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    color: #374151;
}
.integration-form button[type="submit"] {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 7px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 18px;
    box-shadow: 0 2px 8px rgba(59,130,246,0.10);
}
.integration-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #2563eb, #1e40af);
    transform: translateY(-2px) scale(1.03);
}
.integrations-list-container {
    background: #f8fafc;
    box-shadow: 0 4px 24px rgba(59,130,246,0.08);
    border-radius: 18px;
    padding: 32px 32px 20px 32px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    border: 1.5px solid #e0e7ff;
    margin-top: 32px;
}
.integrations-list-container h2 {
    margin-bottom: 22px;
    color: #1d4ed8;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.integrations-list-container h2:before {
    content: '\f0c1';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #3b82f6;
    font-size: 1.2em;
}
.integration-card {
    background: linear-gradient(90deg, #e0e7ff 60%, #f5faff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(59,130,246,0.07);
    padding: 22px 24px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1.5px solid #c7d2fe;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}
.integration-card:hover {
    box-shadow: 0 8px 32px rgba(59,130,246,0.13);
    transform: translateY(-2px) scale(1.01);
    border-color: #3b82f6;
}
.integration-card > div {
    margin-bottom: 4px;
    font-size: 1.08rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.integration-card > div:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    color: #3b82f6;
    font-size: 1.1em;
}
.integration-card > div:nth-child(1):before { content: '\f084'; } /* fa-key */
.integration-card > div:nth-child(2):before { content: '\f02d'; } /* fa-tag */
.integration-card > div:nth-child(3):before { content: '\f017'; } /* fa-bolt (eventos) */
.integration-card .btn-danger {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(239,68,68,0.08);
}
.integration-card .btn-danger:hover {
    background: linear-gradient(90deg, #b91c1c, #ef4444);
    transform: translateY(-2px) scale(1.04);
}
.products-header .subtitle {
    color: #666;
    font-size: 1.08rem;
    margin-top: 8px;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
}
@media (max-width: 900px) {
    .integration-form-container, .integrations-list-container {
        max-width: 99vw;
        padding: 16px 2vw;
    }
}
@media (max-width: 600px) {
    .integration-form-container, .integrations-list-container {
        padding: 10px 1vw;
    }
    .integration-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .integration-form-container, .integrations-list-container {
        margin-top: 18px;
    }
}

/* ===== GESTÃO DE VENDAS - ESTILOS MODERNOS ===== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 32px;
}
.card {
    background: linear-gradient(135deg, #f5faff 60%, #e0e7ff 100%);
    box-shadow: 0 4px 18px rgba(59,130,246,0.10);
    border-radius: 16px;
    padding: 28px 20px 22px 20px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1.5px solid #e0e7ff;
    position: relative;
}
.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px rgba(59,130,246,0.13);
    border-color: #3b82f6;
}
.card h3 {
    margin-bottom: 12px;
    color: #1d4ed8;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card h3 i {
    font-size: 1.3em;
    color: #3b82f6;
}
.card p {
    font-size: 2.1rem;
    font-weight: 700;
    color: #059669;
    margin: 0;
    letter-spacing: 1px;
}
.card:last-child p, .card:nth-last-child(2) p {
    color: #10b981;
}
.filters-container {
    background: linear-gradient(90deg, #f8fafc 80%, #e0e7ff 100%);
    padding: 24px 24px 12px 24px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(59,130,246,0.07);
    margin-bottom: 28px;
    border: 1.5px solid #e0e7ff;
}
.filters-container h3 {
    color: #1d4ed8;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filters {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.filter-group select {
    padding: 9px 14px;
    border: 1.5px solid #b6c6e3;
    border-radius: 7px;
    background: #f8fafc;
    font-size: 15px;
}
.table-container {
    background: #f8fafc;
    padding: 28px 18px 18px 18px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(59,130,246,0.07);
    margin-bottom: 28px;
    border: 1.5px solid #e0e7ff;
}
.table-container h3 {
    color: #1d4ed8;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    background: transparent;
}
table th, table td {
    padding: 13px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}
table th {
    background: #e0e7ff;
    color: #1d4ed8;
    font-weight: 700;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
table tr:nth-child(even) {
    background: #f3f6fb;
}
table tr:hover {
    background: #e0e7ff;
}
.status {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status.aprovada {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.status.pendente {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffe066;
}
.status.cancelada {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.search-container input {
    padding: 10px 40px 10px 15px;
    border: 1.5px solid #b6c6e3;
    border-radius: 7px;
    font-size: 15px;
    background: #f8fafc;
}
.search-container i {
    color: #3b82f6;
}
@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: 1fr 1fr;
    }
    .filters {
        flex-direction: column;
        gap: 12px;
    }
}
@media (max-width: 600px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    .filters-container, .table-container {
        padding: 12px 4px;
    }
    .table-container h3, .filters-container h3 {
        font-size: 1rem;
    }
    table th, table td {
        padding: 8px 4px;
        font-size: 13px;
    }
}

