/* Admin Panel - Estilos Completos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-page {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-header i {
    font-size: 40px;
    color: #e67e22;
    margin-bottom: 10px;
}

.sidebar-header h2 {
    font-size: 20px;
}

.sidebar-nav {
    margin-top: 30px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item i {
    margin-right: 15px;
    font-size: 18px;
}

.nav-item:hover, .nav-item.active {
    background: #34495e;
    color: white;
}

.badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: auto;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #34495e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info i {
    font-size: 40px;
    margin-right: 10px;
}

.user-info div strong {
    display: block;
}

.btn-logout {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 20px;
    cursor: pointer;
}

.admin-main {
    margin-left: 260px;
    padding: 40px;
    width: 100%;
}

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

.header-actions .btn {
    margin-left: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn--primary {
    background: #e67e22;
    color: white;
    border: none;
}

.btn--outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

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

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 20px;
}

.stat-content h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.stat-trend {
    font-size: 14px;
    color: #27ae60;
}

.stat-trend.up i {
    margin-right: 5px;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.section-header a {
    color: #e67e22;
    text-decoration: none;
}

.table-container {
    overflow-x: auto;
}

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

.admin-table th, .admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

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

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

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

.btn-icon {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin: 0 5px;
    font-size: 16px;
}

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

.product-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-price {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #e67e22;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 80px;
    }
    .sidebar-header h2, .nav-item span, .user-info div {
        display: none;
    }
    .admin-main {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: all 0.3s;
    }
    .admin-sidebar.active {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}