:root {
    /* Brand Colors - From Tennis y Mas */
    --color-black: #060606;
    --color-red: #ff3333;
    --color-red-dark: #cc0000;
    --color-white: #ffffff;
    --color-gray: #121212;
    --color-gray-light: #1e1e1e;
    --color-gray-lighter: #2a2a2a;

    --gradient-primary: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
    --gradient-dark: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray) 100%);

    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-red: 0 4px 24px rgba(255, 51, 51, 0.4);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --radius-md: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar for Desktop */
.sidebar {
    width: 280px;
    background: var(--color-gray);
    border-right: 1px solid var(--color-gray-light);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    padding-bottom: 40px;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-img {
    width: 150px;
    filter: drop-shadow(0 0 10px rgba(255, 51, 51, 0.3));
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #888;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    background: var(--color-gray-light);
    color: var(--color-white);
}

.nav-link.active {
    border-left: 4px solid var(--color-red);
    background: linear-gradient(90deg, rgba(255, 51, 51, 0.1) 0%, transparent 100%);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Header & Stats */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

.stat-card {
    background: var(--color-gray);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-light);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: var(--color-red);
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 5px 0;
}

/* Inventory Grid */
.inventory-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    background: var(--color-gray);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--color-gray-light);
}

.search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

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

.product-card {
    background: var(--color-gray);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-light);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 51, 51, 0.4);
    box-shadow: var(--shadow-glass);
}

.card-img-container {
    position: relative;
    height: 220px;
    background: #000;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-red);
    backdrop-filter: blur(5px);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    background: var(--color-gray-light);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-gray-lighter);
}

.badge.low {
    border-color: var(--color-red);
    color: var(--color-red);
}

.badge-sede {
    font-size: 0.6rem;
    opacity: 0.6;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-bottom: 100px;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--color-gray);
        justify-content: space-around;
        padding: 15px 0;
        border-top: 1px solid var(--color-gray-light);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
}

@media (min-width: 993px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav a {
    text-decoration: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.bottom-nav a.active {
    color: var(--color-red);
}

.bottom-nav i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Modal and Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--color-gray);
    padding: 30px;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--color-gray-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.form-control {
    width: 100%;
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-lighter);
    padding: 14px 20px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 2px rgba(255, 51, 51, 0.2);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.btn-primary:active {
    transform: scale(0.98);
}