/* Variáveis Globais */
:root {
    --primary-color: #4e73e5;
    --secondary-color: #3756b5;
    --text-color: #32325d;
    --bg-color: #f8f9fe;
    --sidebar-width: 250px;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
}

.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 0 25px 25px 0;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.sidebar-brand {
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 120px); /* Altura total da viewport menos o espaço do logo/brand */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Estilização da barra de rolagem para Chrome, Edge e Safari */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Esconder a barra de rolagem quando não estiver interagindo */
.sidebar-menu:not(:hover)::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Estilização da barra de rolagem para Chrome, Edge e Safari */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    opacity: 0.7;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
    opacity: 1;
}

/* Esconder a barra de rolagem quando não estiver interagindo */
.sidebar:not(:hover)::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/* Conteúdo Principal */
.content-wrapper {
    flex: 1;
    padding: 20px 25px;
    margin-left: var(--sidebar-width);
    background: var(--bg-color);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin: 0;
}

/* Cards de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #adb5bd;
}

.product-image-placeholder i {
    font-size: 3rem;
}

.product-info {
    padding: 1.25rem;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.product-info .category {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.product-info .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-info .status.active {
    background-color: #e6f7ed;
    color: #2dce89;
}

.product-info .status.inactive {
    background-color: #fde8e8;
    color: #f5365c;
}

/* Botões */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #e6f7ed;
    color: #2dce89;
    border: 1px solid #d1f2e1;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
        overflow: hidden;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Variáveis de Cores */
:root {
    --primary-light: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --info-color: #4895ef;
    --text-primary: #2b2d42;
    --text-secondary: #8d99ae;
    --bg-light: #f8f9fa;
    --bg-lighter: #ffffff;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --bg-color: #f8f9fa;
}

/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: fixed;
    height: 100vh;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sidebar-nav a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

/* Conteúdo Principal */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.content-header h1 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin: 0;
}

/* Cards de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #adb5bd;
}

.product-image-placeholder i {
    font-size: 3rem;
}

.product-info {
    padding: 1.25rem;
    flex: 1;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.product-info .category {
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.product-info .status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin: 0;
}

.status.active {
    background-color: #28a745;
    color: white;
}

.status.inactive {
    background-color: #dc3545;
    color: white;
}

.product-actions {
    padding: 1.25rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Botões */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn i {
    font-size: 1rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Formulários */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 1rem;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Card Styles */
.card {
    background: white;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    color: #32325d;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fe;
    color: #8898aa;
    font-weight: 500;
    text-align: left;
    padding: 12px 15px;
    font-size: 14px;
}

.table td {
    padding: 15px;
    border-top: 1px solid #f6f9fc;
    color: #32325d;
    font-size: 14px;
}

/* Status Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success { background: #e3fff1; color: #2dce89; }
.badge-warning { background: #fff8e6; color: #fb6340; }
.badge-info { background: #e6f9ff; color: #11cdef; }
.badge-primary { background: #e8f0fe; color: #4e73e5; }

/* Welcome Card Style */
.welcome-card {
    background: linear-gradient(135deg, #4e73e5 0%, #6384e7 100%);
    color: white;
    padding: 30px;
    border-radius: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(78, 115, 229, 0.1);
}

.welcome-card h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

.welcome-card p {
    margin: 10px 0 20px 0;
    opacity: 0.9;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #4e73e5;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* PDV Styles */
.pdv-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    padding: 1.5rem;
    height: calc(100vh - var(--header-height));
    background: #f8f9fa;
}

.produtos-container {
    background: white;
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.categorias-container {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.categorias-scroll {
    display: flex;
    gap: 0.8rem;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 1.5rem;
}

.categorias-scroll::-webkit-scrollbar {
    display: none;
}

.categoria-btn {
    background: white;
    border: 1px solid #e9ecef;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.categoria-btn:hover, .categoria-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.categoria-btn i {
    font-size: 1.1rem;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #e9ecef;
    color: #adb5bd;
}

.product-image-placeholder i {
    font-size: 3rem;
}

.product-info {
    padding: 1rem;
    flex: 1;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.product-info .category {
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
}

.product-info .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}

.product-info .status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin: 0;
}

.status.active {
    background-color: #28a745;
    color: white;
}

.status.inactive {
    background-color: #dc3545;
    color: white;
}

.product-actions {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Carrinho */
.carrinho-container {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: sticky;
    top: var(--header-height);
}

.carrinho-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrinho-header h4 {
    margin: 0;
    font-weight: 600;
}

.carrinho-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.carrinho-item {
    background: #f8f9fa;
    border-radius: 0.8rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.carrinho-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.quantity-btn {
    border: none;
    background: none;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
}

.carrinho-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.8rem;
    margin-top: 1rem;
}

/* Dashboard Cards */
.card-stats {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15);
    transition: all 0.2s ease;
}

.card-stats:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .3);
}

.card-stats .card-body {
    padding: 1.5rem;
}

.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-align: center;
    transition: all .2s ease;
}

.icon-shape i {
    font-size: 1.5rem;
    color: #fff;
}

.text-sm {
    font-size: 0.875rem;
}

.ls-1 {
    letter-spacing: 0.05rem;
}

/* Produtos Ranking */
.produto-ranking {
    padding: 1rem 0;
}

.produto-item {
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.produto-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.produto-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.produto-info i {
    font-size: 1.2rem;
}

/* Table Styles */
.table-flush td, .table-flush th {
    border-left: 0;
    border-right: 0;
}

.table td, .table th {
    white-space: nowrap;
    padding: 1rem;
}

/* List Group */
.list-group-item {
    border: none;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Alert Custom */
.alert {
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Progress Bar */
.progress {
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
    }
    
    .content {
        margin-left: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 1rem;
    }

    .carrinho-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        border-radius: 1rem 1rem 0 0;
        max-height: 80vh;
    }

    .card-stats {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 2rem;
    margin: 1.5rem;
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='rgba(255,255,255,.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.welcome-text h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Quick Actions Buttons */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn.primary {
    background: white;
    color: var(--primary-color);
}

/* Products Card */
.product-item {
    background: #fff;
    margin: 0.8rem;
    padding: 1.2rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.product-icon.gas {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.product-icon.water {
    background: rgba(13, 202, 240, 0.1);
    color: var(--info-color);
}

.product-icon.soda {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.product-details {
    flex: 1;
}

.product-details h4 {
    font-size: 0.95rem;
    margin: 0 0 0.3rem;
    font-weight: 600;
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stats-value {
    font-size: 0.85rem;
    color: #6c757d;
}

.trend-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

/* Orders Card */
.order-item {
    margin: 0.8rem;
    padding: 1.2rem;
    border-radius: 0.8rem;
}

.order-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.6rem;
}

.order-icon.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.order-icon.delivered {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.order-main h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.order-time {
    font-size: 0.85rem;
}

.order-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Stock Card */
.stock-item {
    margin: 0.8rem;
    padding: 1.2rem;
    border-radius: 0.8rem;
}

.stock-icon.critical {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stock-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stock-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Card Headers */
.card-header {
    padding: 1.2rem;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

/* Dashboard Container */
.dashboard-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Status Cards */
.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem;
}

.status-card {
    background: var(--bg-lighter);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--card-start) 0%, var(--card-end) 100%);
}

.status-card.sales {
    --card-start: var(--primary-color);
    --card-end: var(--primary-light);
}

.status-card.monthly {
    --card-start: var(--success-color);
    --card-end: var(--info-color);
}

.status-card.pending {
    --card-start: var(--warning-color);
    --card-end: var(--primary-light);
}

.status-card.delivery {
    --card-start: var(--info-color);
    --card-end: var(--success-color);
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-start) 0%, var(--card-end) 100%);
    color: white;
    margin-bottom: 1rem;
}

.status-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.status-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status-trend {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--bg-light);
    color: var(--text-secondary);
}

.status-trend.up {
    color: var(--success-color);
    background: rgba(76, 201, 240, 0.1);
}

.status-trend.down {
    color: var(--warning-color);
    background: rgba(247, 37, 133, 0.1);
}

/* Navbar */
.navbar {
    padding: 15px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar .btn-primary {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 0.5rem;
    border-radius: 10px;
}

.navbar .btn-primary:hover {
    background: var(--bg-light);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-btn.primary {
    background: white;
    color: var(--primary-color);
}

/* Products Card */
.products-list {
    padding: 1.5rem;
}

.product-item {
    background: #fff;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    background: #f8f9fa;
    transform: translateX(8px);
    border-left: 3px solid var(--primary-color);
}

.product-icon {
    width: 50px;
    height: 50px;
    border-radius: 1rem;
}

.product-details {
    flex: 1;
}

.product-details h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress {
    height: 100%;
    border-radius: 4px;
    background-image: linear-gradient(45deg, 
        rgba(255,255,255,.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,.15) 50%, 
        rgba(255,255,255,.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 1rem 1rem;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

.stats-value {
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
}

/* Orders Card */
.orders-list {
    padding: 1.5rem;
}

.order-item {
    background: #fff;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #f8f9fa;
    transform: translateX(8px);
    border-left: 3px solid var(--warning-color);
}

.order-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.order-info {
    flex: 1;
}

.order-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-main h4 {
    font-size: 1rem;
    margin: 0;
}

.order-time {
    font-size: 0.9rem;
    color: #6c757d;
}

.order-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.order-value {
    color: var(--primary-color);
    font-weight: 600;
}

.order-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    display: inline-block;
}

.order-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.order-status.delivered {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

/* Stock Card */
.stock-list {
    padding: 1.5rem;
}

.stock-item {
    background: #fff;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stock-item:hover {
    background: #f8f9fa;
    transform: translateX(8px);
}

.stock-item.critical:hover {
    border-left: 3px solid #dc3545;
}

.stock-item.warning:hover {
    border-left: 3px solid var(--warning-color);
}

.stock-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stock-info {
    flex: 1;
}

.stock-info h4 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.stock-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stock-value {
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
}

.progress.danger {
    background: #dc3545;
}

.progress.warning {
    background: var(--warning-color);
}

/* Performance Card */
.drivers-list {
    padding: 1.5rem;
}

.driver-item {
    background: #fff;
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.driver-item:hover {
    background: #f8f9fa;
    transform: translateX(8px);
    border-left: 3px solid var(--info-color);
}

.driver-avatar {
    background: rgba(var(--bs-primary-rgb), 0.1);
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-dot.online {
    background: var(--success-color);
}

.status-dot.offline {
    background: #6c757d;
}

.driver-info {
    flex: 1;
}

.driver-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.driver-main h4 {
    font-size: 1rem;
    margin: 0;
}

.driver-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffc107;
    font-weight: 600;
}

.driver-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsividade */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .status-cards {
        gap: 1rem;
    }

    .status-card {
        padding: 1.5rem;
    }
}

.btn-imprimir {
    background: #4361ee;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-imprimir:hover {
    background: #3f37c9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-imprimir i {
    font-size: 16px;
}

.pedido-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-aceitar, .btn-rejeitar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-aceitar {
    background: #2ecc71;
    color: white;
}

.btn-aceitar:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-rejeitar {
    background: #e74c3c;
    color: white;
}

.btn-rejeitar:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards */
.info-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.info-card h4 {
    margin-top: 0;
    color: #333;
}

.info-card .value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Table */
.table-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.table {
    margin-bottom: 0;
}

/* Reset e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fe;
    color: #333;
    line-height: 1.5;
}

/* Layout principal */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #4e73e5;
    padding: 20px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-brand {
    color: white;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Conteúdo principal */
.content-wrapper {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

/* Cards de pedidos */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-id {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.order-time {
    color: #666;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
}

.order-status.new {
    background: #e3f2fd;
    color: #1976d2;
}

.order-status.accepted {
    background: #e8f5e9;
    color: #2e7d32;
}

.customer-info {
    margin-bottom: 15px;
}

.customer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 1em;
}

.customer-address,
.customer-phone {
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-items {
    margin: 15px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9em;
}

.item-quantity {
    color: #1976d2;
    font-weight: 500;
    margin-right: 8px;
}

.order-subtotal,
.order-delivery-fee,
.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 5px;
}

.order-total {
    font-weight: 600;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-accept {
    background: #4caf50;
    color: white;
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-print {
    background: #2196f3;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        padding: 0;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .orders-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.p-3 {
    padding: 1rem;
}

/* Estilos para os grupos de adicionais */
.addon-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.addon-tab {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.addon-tab:hover {
    background-color: #e0e0e0;
}

.addon-tab.active {
    background-color: #4e73df;
    color: white;
}

.addon-content {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.addon-content.active {
    display: block;
}

.addon-group-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.addon-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.addon-group-info {
    margin-bottom: 15px;
}

.addon-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.addon-item-name {
    flex: 2;
}

.addon-item-price {
    flex: 1;
}

.helper-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
} 