/* ================================================
   PADARIA - CSS PRINCIPAL
   Sistema completo e responsivo
   ================================================ */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4a373;
    --primary-dark: #bc8a5f;
    --secondary: #6b4423;
    --accent: #e9c46a;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #fefae0;
    --dark: #3d2914;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   HEADER
   ================================================ */
header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.logo-icon {
    font-size: 2.5rem;
}

.logo span {
    color: var(--accent);
}

/* Navegação */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.nav-cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    background: linear-gradient(rgba(59, 35, 20, 0.85), rgba(59, 35, 20, 0.85)),
                url('../images/hero-bg.jpg') center/cover;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ================================================
   BOTÕES
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 163, 115, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================
   CARDS DE PRODUTOS
   ================================================ */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.destaque {
    background: var(--accent);
    color: var(--dark);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success);
}

.price-old {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
}

/* ================================================
   CATEGORIAS
   ================================================ */
.categories-section {
    padding: 40px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    text-align: center;
    padding: 25px 15px;
    background: var(--gray-light);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.category-card.active {
    background: var(--primary);
    color: var(--white);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
}

/* ================================================
   CARRINHO
   ================================================ */
.cart-section {
    padding: 40px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--success);
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-light);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.quantity-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    color: var(--danger);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
    padding-top: 15px;
    border-top: 2px solid var(--gray-light);
    margin-top: 15px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 5rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

/* ================================================
   FORMULÁRIOS
   ================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ================================================
   ALERTAS
   ================================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

/* ================================================
   AUTENTICAÇÃO
   ================================================ */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
}

.auth-box h1 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 10px;
}

.auth-box > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ================================================
   ADMIN STYLES
   ================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-logo h2 {
    color: var(--accent);
    font-size: 1.4rem;
}

.admin-menu {
    list-style: none;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: var(--accent);
}

.admin-menu li a .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    background: var(--gray-light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--white);
}

.admin-header h1 {
    color: var(--secondary);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dashboard-card-icon.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.dashboard-card-icon.green {
    background: #e8f5e9;
    color: #388e3c;
}

.dashboard-card-icon.orange {
    background: #fff3e0;
    color: #f57c00;
}

.dashboard-card-icon.purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.dashboard-card-info h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.dashboard-card-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Tabelas */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-light);
}

.table-header h3 {
    color: var(--secondary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

th {
    background: var(--gray-light);
    font-weight: 600;
    color: var(--secondary);
}

tr:hover {
    background: rgba(212, 163, 115, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.status-confirmado {
    background: #cce5ff;
    color: #004085;
}

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

.status-entregue {
    background: #d1ecf1;
    color: #0c5460;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ================================================
   CHECKOUT
   ================================================ */
.checkout-section {
    padding: 40px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

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

.checkout-form h2 {
    margin-bottom: 25px;
    color: var(--secondary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.payment-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    flex: 1;
    padding: 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.payment-option.active {
    border-color: var(--primary);
    background: rgba(212, 163, 115, 0.1);
}

.payment-option input {
    display: none;
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ================================================
   PÁGINA DE PRODUTO
   ================================================ */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-detail-info h1 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 2.5rem;
    color: var(--success);
    font-weight: 700;
    margin-bottom: 20px;
}

.product-detail-description {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-selector label {
    font-weight: 600;
}

/* ================================================
   UTILITÁRIOS
   ================================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.d-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* ================================================
   RESPONSIVO
   ================================================ */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 1001;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

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

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a {
        display: block;
        padding: 15px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .payment-options {
        flex-direction: column;
    }

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

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 50px 0;
    }

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

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-icon {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .auth-box {
        padding: 25px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 100%;
        height: 150px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   ADMIN - COMPONENTES ADICIONAIS
   ================================================ */

/* Menu Divider */
.admin-menu .menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* User Info no Sidebar */
.admin-user-info {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-user-info small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.admin-user-info strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.admin-user-info .user-role {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(233, 196, 106, 0.2);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabela Container com Padding */
.table-container {
    padding: 20px;
}

.table-container table {
    margin: 0 -20px;
    width: calc(100% + 40px);
}

/* Status badges adicionais */
.status-badge.status-gerente {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-super_admin {
    background: #fce4ec;
    color: #c2185b;
}

/* Cores dinâmicas - CSS Variables */
body {
    background-color: var(--bg-color, #fefae0);
    color: var(--text-color, #3d2914);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #d4a373) 0%, var(--secondary-color, #bc8a5f) 100%);
}

.btn-primary:hover {
    box-shadow: 0 5px 20px rgba(212, 163, 115, 0.4);
}

/* Slider/Banner Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    text-align: center;
}

.hero-slider .slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-slider .slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav .dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Admin Table Actions */
.admin-content .table-container {
    overflow-x: auto;
}

/* Form Group Checkbox */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Admin Breadcrumb */
.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.admin-breadcrumb a {
    color: var(--primary-dark);
}

.admin-breadcrumb span {
    color: var(--gray);
}

/* Configurações Grid */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.config-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.config-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state .icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.empty-state p {
    margin-bottom: 20px;
}

/* Order Details */
.order-details {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
}

.order-details h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

.order-items {
    margin-top: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-light);
}

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

/* Responsivo para novas features */
@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }

    .hero-slider .slide-content h2 {
        font-size: 1.5rem;
    }

    .hero-slider .slide-content p {
        font-size: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }
}
