/* =============================================
   SESSION # PANEL - TEMA NEON DARK
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #08080a;
    --bg-card: #111114;
    --bg-card-hover: #18181c;
    --border: #2a2a30;
    --border-light: #3a3a42;
    --neon: #39ff14;
    --neon-glow: rgba(57, 255, 20, 0.3);
    --purple: #a64bf4;
    --purple-glow: rgba(166, 75, 244, 0.3);
    --cyan: #00f2ea;
    --gold: #ffd700;
    --red: #ff4757;
    --text: #ffffff;
    --text-muted: #888899;
    --text-dim: #555566;
    --gradient-neon: linear-gradient(135deg, #39ff14 0%, #00f2ea 100%);
    --gradient-purple: linear-gradient(135deg, #a64bf4 0%, #8b5cf6 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
.layout {
    display: flex;
    min-height: 100vh;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 25px 20px;
    font-size: 1.5rem;
    font-weight: 900;
    border-bottom: 1px solid var(--border);
    color: white;
}

.sidebar-brand span {
    color: var(--neon);
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    flex: 1;
}

.menu-section {
    padding: 10px 20px 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.sidebar-menu li a.active {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon);
    border-left-color: var(--neon);
}

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-logout {
    padding: 15px;
    border-top: 1px solid var(--border);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--red);
    border-radius: 8px;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-logout:hover {
    background: var(--red);
    color: white;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 30px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--neon);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* =============================================
   STATS CARDS
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
}

.stat-card.neon {
    border-color: var(--neon);
    box-shadow: 0 0 20px var(--neon-glow);
}

.stat-card.purple {
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--purple-glow);
}

.stat-card.cyan {
    border-color: var(--cyan);
}

.stat-card.gold {
    border-color: var(--gold);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card.neon .stat-icon {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon);
}

.stat-card.purple .stat-icon {
    background: rgba(166, 75, 244, 0.15);
    color: var(--purple);
}

.stat-card.cyan .stat-icon {
    background: rgba(0, 242, 234, 0.15);
    color: var(--cyan);
}

.stat-card.gold .stat-icon {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--neon);
}

.card-title.purple i { color: var(--purple); }
.card-title.cyan i { color: var(--cyan); }
.card-title.gold i { color: var(--gold); }

/* =============================================
   GRID LAYOUTS
   ============================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 15px;
}

.form-group label,
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px var(--neon-glow);
}

.form-control::placeholder {
    color: var(--text-dim);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.select-mini {
    padding: 6px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.75rem;
    cursor: pointer;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-neon {
    background: var(--gradient-neon);
    color: #000;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--neon-glow);
}

.btn-purple {
    background: var(--gradient-purple);
    color: white;
}

.btn-purple:hover {
    box-shadow: 0 5px 20px var(--purple-glow);
}

.btn-cyan {
    background: var(--cyan);
    color: #000;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--neon);
    color: var(--neon);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon:hover {
    border-color: var(--neon);
    color: var(--neon);
}

.btn-icon.danger:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-icon.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

/* =============================================
   ITEMS LIST
   ============================================= */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.2s;
}

.item-card:hover {
    border-color: var(--border-light);
}

.item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-meta i {
    margin-right: 5px;
}

.item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.item-list {
    display: flex;
    flex-direction: column;
}

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.item-row:last-child {
    border-bottom: none;
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-neon {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon);
}

.badge-red {
    background: rgba(255, 71, 87, 0.15);
    color: var(--red);
}

.badge-success {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon);
}

.badge-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--red);
}

.badge-warning {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

/* =============================================
   SPONSORS GRID
   ============================================= */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sponsor-item {
    position: relative;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.sponsor-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.sponsor-delete {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    opacity: 0;
    transition: 0.2s;
}

.sponsor-item:hover .sponsor-delete {
    opacity: 1;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* =============================================
   TOAST
   ============================================= */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--neon);
    color: var(--neon);
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.toast.error {
    border-color: var(--red);
    color: var(--red);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =============================================
   MOBILE HEADER
   ============================================= */
.mobile-header {
    display: none;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.login-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.login-logo span {
    color: var(--neon);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.login-box .form-group {
    text-align: left;
}

.login-box .btn {
    margin-top: 10px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px 15px;
        padding-top: 80px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .item-card {
        flex-direction: column;
        text-align: center;
    }
    
    .item-img {
        width: 100%;
        height: 150px;
    }
    
    .item-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99;
        font-size: 1.2rem;
        font-weight: 900;
    }
    
    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }
}

/* =============================================
   IMAGE RECOMMENDATION
   ============================================= */
.img-recommendation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 15px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.5;
}

.img-recommendation i {
    color: var(--neon);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.img-recommendation strong {
    color: var(--neon);
}

/* =============================================
   PRODUCTO - EVENTO ASOCIADO
   ============================================= */
.product-evento {
    font-size: 0.7rem;
    color: var(--neon);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-evento.sin-evento {
    color: #ff8c00;
}

.product-evento i {
    font-size: 0.65rem;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-neon { color: var(--neon); }
.text-purple { color: var(--purple); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
