body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2b1055, #7597de);
    color: white;
    margin: 0;
}

h2 {
    text-align: center;
    color: #FFD700;
}

.container {
    width: 90%;
    margin: auto;
}

.card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

input, select {
    padding: 8px;
    border-radius: 8px;
    border: none;
    margin: 5px;
}

button {
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    transform: scale(1.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background: #ff00cc;
    color: white;
}

td {
    background: rgba(255,255,255,0.1);
    text-align: center;
}

.navbar {
    background: #000;
    padding: 10px;
    text-align: center;
}

.navbar a {
    color: #FFD700;
    margin: 10px;
    text-decoration: none;
    font-weight: bold;
}

/* ===== COLORES DE STOCK ===== */
.stock-ok {
    background-color: #c8f7c5;
    color: #2e7d32;
    font-weight: bold;
}

.stock-cero {
    background-color: #ffe0b2;
    color: #e65100;
    font-weight: bold;
}

/* ===== ESTADO DE PRODUCTOS ===== */
.estado-disponible {
    background-color: #c8f7c5;
    color: #2e7d32;
    font-weight: bold;
}

.estado-vendido {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}

/* ===== MEJORA VISUAL ===== */
table {
    border-collapse: collapse;
    width: 100%;
}

td, th {
    padding: 10px;
    text-align: center;
}

.card {
    margin-bottom: 20px;
}

button {
    padding: 6px 10px;
    border: none;
    background-color: #2196f3;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #1976d2;
}

.btn-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-float:hover {
    background-color: #218838;
}