* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 150px;
}

.stat-card.pending {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-card .number {
    font-size: 2em;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

nav a {
    padding: 10px 20px;
    background: white;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a.active, nav a:hover {
    background: #3498db;
    color: white;
}

.pedido-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.pedido-card.pendiente {
    border-left-color: #e74c3c;
}

.pedido-card.procesado {
    border-left-color: #f39c12;
}

.pedido-card.completado {
    border-left-color: #27ae60;
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.estado-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.estado-badge.pendiente {
    background: #e74c3c;
    color: white;
}

.estado-badge.procesado {
    background: #f39c12;
    color: white;
}

.estado-badge.completado {
    background: #27ae60;
    color: white;
}

.pedido-info p {
    margin-bottom: 5px;
}

.pedido-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.pedido-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.pedido-actions button:hover {
    opacity: 0.8;
}

.endpoint-card {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.endpoint-card button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: #7f8c8d;
}

/* Estilos para detalles del pedido */
.pedido-detalle {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.info-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item strong {
    color: #555;
    font-size: 0.9em;
}

.info-item span {
    font-size: 1.1em;
    color: #333;
}

.total-amount {
    font-size: 1.5em !important;
    font-weight: bold;
    color: #27ae60 !important;
}

.productos-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.producto-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.producto-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.producto-detalles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.producto-detalles span {
    font-size: 0.9em;
    color: #666;
}

.producto-preferencias {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.preferencia-item {
    margin-bottom: 5px;
    font-size: 0.85em;
}

.preferencia-tipo {
    color: #3498db;
    font-weight: bold;
}

.preferencia-opciones {
    color: #666;
    margin-left: 5px;
}

.json-container {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

.json-container pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.acciones-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-action.procesar {
    background: #f39c12;
    color: white;
}

.btn-action.procesar:hover {
    background: #e67e22;
}

.btn-action.completar {
    background: #27ae60;
    color: white;
}

.btn-action.completar:hover {
    background: #229954;
}

.btn-action.imprimir {
    background: #9b59b6;
    color: white;
}

.btn-action.imprimir:hover {
    background: #8e44ad;
}