* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f0f5;
}

/* ======================================== */
/* LOGIN - Fucsia y Dorado */
/* ======================================== */
.login-body {
    background: linear-gradient(135deg, #940035 0%, #6b0027 50%, #3d0015 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(148, 0, 53, 0.3);
    text-align: center;
    border: 2px solid #D4AF37;
}

.login-box h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #940035;
    font-weight: 700;
}

.login-box h1 span {
    color: #D4AF37;
}

.login-box .subtitle {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.login-box h2 {
    margin-bottom: 25px;
    color: #940035;
    font-size: 18px;
    font-weight: 300;
}

.login-box input {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 2px solid #e8e0e5;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.login-box input:focus {
    border-color: #940035;
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 0, 53, 0.15);
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #940035, #6b0027);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(148, 0, 53, 0.4);
}

/* ======================================== */
/* DASHBOARD */
/* ======================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ======================================== */
/* SIDEBAR - Fucsia */
/* ======================================== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #940035 0%, #6b0027 100%);
    color: white;
    padding: 20px 15px;
    min-height: 100vh;
    box-shadow: 3px 0 20px rgba(148, 0, 53, 0.3);
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 5px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.sidebar h2 span {
    color: #D4AF37;
}

.sidebar .slogan {
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.sidebar nav a {
    display: block;
    padding: 10px 14px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 3px 0;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.sidebar nav a:hover {
    background: rgba(212, 175, 55, 0.2);
    color: white;
    border-left-color: #D4AF37;
}

.sidebar nav a.active {
    background: rgba(212, 175, 55, 0.25);
    color: white;
    border-left-color: #D4AF37;
    font-weight: 600;
}

/* ======================================== */
/* MAIN CONTENT */
/* ======================================== */
.main-content {
    flex: 1;
    padding: 20px 25px;
    background: #f8f4f7;
}

/* ======================================== */
/* TOP BAR */
/* ======================================== */
.top-bar {
    background: white;
    padding: 12px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #f0e8ed;
}

.user-info {
    font-weight: 600;
    color: #940035;
}

.user-info .rango {
    color: #D4AF37;
    font-weight: 400;
    font-size: 13px;
}

.logout-btn {
    background: #940035;
    color: white;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #6b0027;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(148, 0, 53, 0.3);
}

/* ======================================== */
/* CARDS */
/* ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-top: 4px solid #D4AF37;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 700;
    color: #940035;
}

/* ======================================== */
/* TABLAS */
/* ======================================== */
.data-table {
    background: white;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #f0e8ed;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0e8ed;
}

th {
    background: #940035;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

tr:hover {
    background: #fdf8fa;
}

/* ======================================== */
/* FORMULARIOS */
/* ======================================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a2a3a;
    font-size: 13px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e0e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #940035;
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 0, 53, 0.1);
}

/* ======================================== */
/* BOTONES */
/* ======================================== */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #940035, #6b0027);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(148, 0, 53, 0.3);
}

.btn-danger {
    background: #c0392b;
    color: white;
}

.btn-danger:hover {
    background: #a93226;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d68910;
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37, #b8942e);
    color: white;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* ======================================== */
/* ALERTAS */
/* ======================================== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.alert.error {
    background: #fdf0f0;
    color: #940035;
    border: 1px solid #f5d0d0;
}

.alert.success {
    background: #f0f7f0;
    color: #1a7a3a;
    border: 1px solid #d0e8d0;
}

/* ======================================== */
/* PUNTO DE VENTA */
/* ======================================== */
.ventas-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

.productos-lista {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0e8ed;
}

.carrito {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f0e8ed;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0e8ed;
}

.carrito-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #D4AF37;
    font-size: 20px;
    font-weight: bold;
    color: #940035;
}

.buscador {
    margin-bottom: 20px;
}

.buscador input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e8e0e5;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.buscador input:focus {
    border-color: #940035;
    outline: none;
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
    }

    .ventas-container {
        grid-template-columns: 1fr;
    }
}