:root {
    --jbl-red: #cf3a3a;
    --jbl-dark: #ffffff;
    --jbl-light: #000000;
    --jbl-gray: #f4f4f4;
    --jbl-white: #ffffff;
    --jbl-btn-hover: #9e2121;
    --jbl-red-dark: #9e2121;
    --jbl-marom: #411d1d;
    --jbl-warning: #ffc107;
    --jbl-toast-success: #4CAF50;
    --jbl-sidbar-hover: rgba(220, 53, 69, 0.3);
    --jbl-dark-transparent: rgba(242, 242, 242, 0.95);
    --jbl-sidebar-width: 80px;
}
body {
    background: linear-gradient(135deg, var(--jbl-dark) 0%, var(--jbl-btn-hover) 100%);
    color: var(--jbl-light) !important;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    margin: 0;
}
   
.corpo-index {
    background-size: cover;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}
.login-container {
    background: rgba(241 , 241 , 241 , 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.login-container h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--jbl-red);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 10px;
}

.login-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--jbl-red);
    border-radius: 3px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
    color: var(--jbl-light);
}

.login-container .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--jbl-light);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.login-container .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--jbl-light);
    border-color: var(--jbl-red);
    box-shadow: 0 0 0 0.25rem rgba(255, 74, 74, 0.25);
}

.login-container .form-control::placeholder {
    color: var(--jbl-gray);
    opacity: 0.7;
}


#error-message {
    color: var(--jbl-red);
    margin-top: 1.5rem;
    font-weight: 600;
    min-height: 24px;
    transition: all 0.3s ease;
}

.brand-logo {
    width: 250px;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .login-container {
        padding: 2rem 1.5rem;
    }
    
    .login-container h2 {
        font-size: 1.8rem;
    }
}
.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: var(--jbl-white);
    background-color: var(--jbl-red-dark);
    border-color: var(--bs-btn-active-border-color);
}

body .text-muted {
    --bs-text-opacity: 1;
    color: var(--jbl-light) !important;
}
/* Sidebar Premium */
.sidebar {
    width: var(--jbl-sidebar-width);
    height: 100vh;
    background: var(--jbl-dark-transparent);
    padding: 20px 10px;
    position: fixed;
    border-right: 1px solid rgba(255, 74, 74, 0.1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.sidebar:hover {
    width: 220px;
}

.sidebar a {
    color: var(--jbl-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar a i {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar a span {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 15px;
}

.sidebar:hover a span {
    opacity: 1;
}

.sidebar a:hover {
    background: rgba(255, 74, 74, 0.2);
    color: var(--jbl-red);
    transform: translateX(5px);
}

.sidebar a.active {
    background: rgba(255, 74, 74, 0.3);
    color: var(--jbl-red);
}

.sidebar a.logout:hover {
    background: var(--jbl-sidbar-hover);
    color: var(--jbl-red);
}

/* Conteúdo Principal */
.content {
    margin-left: var(--jbl-sidebar-width);
    padding: 30px;
    transition: margin-left 0.3s ease;
}

.sidebar:hover ~ .content {
    margin-left: 220px;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 74, 74, 0.3);
}

.dashboard-header h1 {
    color: var(--jbl-light);
    font-weight: 700;
    margin: 0;
    position: relative;
}

.dashboard-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--jbl-red);
    border-radius: 3px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 74, 74, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--jbl-red);
}

/* Cards de Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--jbl-dark-transparent);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 74, 74, 0.1);
    border-color: rgba(255, 74, 74, 0.3);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--jbl-red);
    margin: 10px 0;
}

.metric-label {
    color: var(--jbl-light);
    font-size: 1rem;
    font-weight: 600;
}

/* Gráficos */
.chart-container {
    background: var(--jbl-dark-transparent);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.chart-title {
    color: var(--jbl-light);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-title i {
    color: var(--jbl-red);
}

/* Modais */
.modal-content {
    background: var(--jbl-dark-transparent) !important;
    color: var(--jbl-light) !important;
    border: 1px solid rgba(255, 74, 74, 0.2) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 74, 74, 0.2) !important;
}

.modal-title {
    color: var(--jbl-red) !important;
    font-weight: 700 !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* Tabelas */
.table {
    background: var(--jbl-dark-transparent) !important;
    color: var(--jbl-light) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.table thead th {
    background: rgba(255, 74, 74, 0.2) !important;
    color: var(--jbl-light) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--jbl-red) !important;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(255, 74, 74, 0.05) !important;
}

.badge {
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 6px;
}

/* Formulários */
.form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--jbl-marom); !important;
    color: var(--jbl-light);
    padding: 12px 15px !important;
    border-radius: 8px !important;
}
#listaClientes .cliente-nome {
    color: var(--jbl-light) !important;
}
#listaClientes .cliente-email {
    color: var(--jbl-light) !important;
}

.form-select {
    border: var(--bs-border-width) solid var(--jbl-marom); !important;
}
body .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--jbl-red) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 74, 74, 0.25) !important;
    color: var(--jbl-light);
}

body .form-label {
    color: var(--jbl-light) !important;
    font-weight: 600 !important;
}

/* Botões */
body .btn-jbl {
    background: var(--jbl-red) !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

body .btn-jbl:hover {
    background: var(--jbl-btn-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 74, 74, 0.4) !important;
}

/* Responsividade */
@media (max-width: 992px) {
    body .sidebar {
        width: 70px;
    }
    
    body .sidebar:hover {
        width: 70px;
    }
    
    body .sidebar a span {
        display: none;
    }
    
    body .content {
        margin-left: 70px;
    }
    
    body .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    body .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    body .content {
        padding: 20px 15px;
    }
    
    body .metric-card {
        padding: 20px;
    }
    
    body .chart-container {
        padding: 20px 15px;
    }
}
body .botao {
    padding: 10px;
    margin: 5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
}
body .salvar {
    background-color: var(--jbl-toast-success);
    color: white;
}
body .senha {
    background-color: var(--jbl-red);
    color: white;
}
body .admin-row {
    background-color: var(--jbl-light);
}

body .admin-row td {
    font-weight: bold; /* Texto em negrito */
    align-content: space-evenly !important;
}
body .row-class td {
    align-content: space-evenly !important;
}

body .container {
    margin-top: 30px;
    padding: 20px 60px;
    max-width: 1200px;
}

/* Header estilizado */
body .header {
    background: var(--jbl-dark-transparent);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 74, 74, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

body .header h1 {
    color: var(--jbl-red);
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

body .header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--jbl-red);
    border-radius: 3px;
}

body .header a {
    color: var(--jbl-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 6px;
}

body .header a:hover {
    color: var(--jbl-red);
    background: rgba(255, 74, 74, 0.1);
}

body .table-bordered > :not(caption) > * {
    border-color: rgba(255, 255, 255, 0.1);
}

body .badge {
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

body .badge.bg-success {
    background-color: var(--jbl-toast-success); !important;
}

body .badge.bg-warning {
    background-color: var(--jbl-warning); !important;
    color: var(--jbl-dark);
}

body .badge.bg-danger {
    background-color: var(--jbl-red); !important;
}

/* Seções */
h2 {
    color: var(--jbl-light);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--jbl-red);
    border-radius: 3px;
}
   
/* Estilos com alta especificidade para sobrescrever Bootstrap */

/* 1. BOTÕES - Sobrescrevendo .btn-primary */
body .btn.btn-primary {
    background-color: var(--jbl-red) !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 30px !important;
}
body .modal-footer {
    justify-content: center;
}

body .btn-secondary {
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 30px !important;
}

body .btn.btn-primary:hover {
    background-color: var(--jbl-btn-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 74, 74, 0.4) !important;
}

/* 2. TABELAS - Sobrescrevendo classes do Bootstrap */
body .table {
    background: var(--jbl-dark-transparent) !important;
    color: var(--jbl-light) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px) !important;
}

body .table th {
    background: rgba(255, 74, 74, 0.2) !important;
    color: var(--jbl-light) !important;
    text-align: center !important;
    font-weight: 700 !important;
    padding: 15px !important;
    border-bottom: 2px solid var(--jbl-red) !important;
}

body .table td {
    text-align: center !important;
    padding: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle !important;
    text-transform: capitalize !important;
}

body .table-bordered>:not(caption)>*>* {
    border-color: var(--jbl-dark) !important;
}

/* 3. HEADER E LAYOUT */
body .header {
    text-align: center;
    gap: 15px;
}

/* 4. RESPONSIVIDADE */
@media (max-width: 768px) {
    body .header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    body .header h1::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    body .table {
        font-size: 0.8rem !important;
    }
    
    body .table th, 
    body .table td {
        padding: 8px 5px !important;
    }
}

@media (max-width: 576px) {
    body .container {
        padding: 15px !important;
    }
    
    body .header h1 {
        font-size: 1.5rem !important;
    }
    
    body .btn-primary {
        width: 100% !important;
    }
}     

/* Sidebar estilizada para combinar com o login */
body .sidebar {
    width: 64px;
    height: 100vh;
    background: var(--jbl-dark-transparent);
    padding: 20px 10px;
    position: fixed;
    border-right: 1px solid rgba(255, 74, 74, 0.1);
    backdrop-filter: blur(5px);
    transition: width 0.3s ease;
    z-index: 1000;
}

body .sidebar:hover {
    width: 220px;
}

body .sidebar a {
    color: var(--jbl-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

body .sidebar a i {
    margin-right: 15px;
    font-size: 20px;
    min-width: 20px;
}

body .sidebar a:hover {
    background: rgba(255, 74, 74, 0.2);
    color: var(--jbl-red);
}

/* Conteúdo principal */
body .content {
    margin-left: 80px;
    padding: 30px;
    transition: margin-left 0.3s ease;
}

body .sidebar:hover ~ .content {
    margin-left: 220px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--jbl-light);
    font-weight: 700;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--jbl-red);
    border-radius: 3px;
}

/* Cards de produtos - estilo modernizado */
body .product-card {
    background: var(--jbl-dark-transparent);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: var(--jbl-light);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

body .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 74, 74, 0.2);
    border-color: rgba(255, 74, 74, 0.3);
}

body .product-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

body .product-card h5 {
    color: var(--jbl-red);
    margin-bottom: 10px;
    font-weight: 700;
    max-width: 160px;
    font-size: 15px;
}

body .product-card p {
    color: var(--jbl-light);
    font-size: 12px;
    margin-bottom: 0;
    flex-grow: 1;
}

body .product-card .btn {
    margin-top: 5px;
    background-color: var(--jbl-red);
    color: var(--jbl-white);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

body .product-card .btn:hover {
    background-color: var(--jbl-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 74, 74, 0.4);
}

/* Formulários e inputs */
body .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--jbl-light);
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
body .form-control::placeholder {
    color: var(--jbl-light) !important;
}

body .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    color: var(--jbl-light);
    border-color: var(--jbl-red);
    box-shadow: 0 0 0 0.25rem rgba(255, 74, 74, 0.25);
}

body .input-group-text {
    background: rgba(255, 74, 74, 0.2);
    border: 1px solid rgba(255, 74, 74, 0.3);
    color: var(--jbl-light);
}

/* Modal do carrinho */
#modalCarrinho {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 2000;
    overflow-y: auto;
}

body .modal-content {
    background: var(--jbl-dark-transparent);
    color: var(--jbl-light);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    border: 1px solid rgba(255, 74, 74, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

body .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: var(--jbl-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

body .close-modal:hover {
    color: var(--jbl-red);
}

/* Responsividade */
@media (max-width: 992px) {
    body .sidebar {
        width: 56px;
        padding: 15px 5px;
    }
    
    body .sidebar:hover {
        width: 56px;
    }
    
    body .sidebar a span {
        display: none;
    }
    
    body .sidebar:hover a span {
        display: inline;
    }
    
    body .content {
        margin-left: 60px;
        padding: 20px;
    }
    
    body .sidebar:hover ~ .content {
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    body .product-card {
        padding: 15px;
    }
    
}

@media (max-width: 576px) {
    body .content {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* Grid responsivo */
body .row-lista-pedidos {
    display: grid;
    gap: 15px 0;
    --bs-gutter-x: 0 !important;
}

@media (max-width: 767px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    body .h5, h5 {
        font-size: 1rem;
    }
    body .product-card p {
        font-size: 10px;
        margin-bottom: 5px;
    }
    body .product-card .btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    body .row>* {
        padding-right: 0;
        padding-left: 0;
    }
    body .product-card {
        min-width: 80px;
    }


}

@media (min-width: 668px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (min-width: 1300px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (min-width: 1450px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(7, 1fr);
    }
}
@media (min-width: 1600px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(8, 1fr);
    }
}
@media (min-width: 1750px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(9, 1fr);
    }
}
@media (min-width: 2000px) {
    body .row-lista-pedidos {
        grid-template-columns: repeat(10, 1fr);
    }
}
/* Toast notifications */
body .toast {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    border-radius: 8px;
}

body .toast-success {
    background-color: var(--jbl-toast-success) !important;
}

body .toast-error {
    background-color: var(--jbl-red) !important;
}
body .total-cart {
    margin-top: 20px !important;
    margin-bottom: 20px;
    align-self: start;
}
