/* ==========================================================================
   FE URBANA - ADMIN BACKOFFICE DASHBOARD STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #060608;
    --bg-sidebar: #0b0b0f;
    --bg-card: rgba(18, 18, 24, 0.85);
    --bg-glass: rgba(12, 12, 16, 0.75);
    
    --color-gold: #d4af37;
    --color-gold-light: #f7e7a9;
    --color-gold-dark: #8a6c12;
    --color-gold-glow: rgba(212, 175, 55, 0.35);
    
    --color-text-main: #f4f4f5;
    --color-text-muted: #9ba1a6;
    --color-white: #ffffff;
    
    --border-glass: 1px solid rgba(212, 175, 55, 0.22);
    --border-glass-light: 1px solid rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Syne', 'Playfair Display', sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.text-gold {
    color: var(--color-gold);
    background: linear-gradient(135deg, #f7e7a9 0%, #d4af37 50%, #8a6c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(20, 16, 22, 0.9) 0%, rgba(6, 6, 8, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 9999;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #0f0f14;
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.login-header h2 { font-size: 1.8rem; color: var(--color-white); margin-bottom: 0.5rem; }
.login-header p { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 2rem; }
.login-footer { margin-top: 2rem; font-size: 0.8rem; color: var(--color-text-muted); border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1rem; }

.input-pass-wrapper { position: relative; width: 100%; }

.input-pass-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-glass-light);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.toggle-pass-eye {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 270px;
    background: var(--bg-sidebar);
    border-right: var(--border-glass-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
}

.sidebar-header { padding: 1.75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sidebar-logo { font-size: 1.1rem; color: var(--color-white); }
.version-badge { background: rgba(212, 175, 55, 0.15); color: var(--color-gold); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: var(--radius-full); border: var(--border-glass); }

.sidebar-nav { padding: 1.5rem 1rem; flex-grow: 1; }
.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.nav-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--color-gold-light);
    font-weight: 600;
}

.nav-btn.active { border-left: 3px solid var(--color-gold); }

.badge-count { margin-left: auto; background: #e11d48; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: var(--radius-full); }

.sidebar-footer { padding: 1.25rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: space-between; background: #07070a; }

.admin-user-info { display: flex; align-items: center; gap: 0.75rem; }
.admin-user-info strong { display: block; font-size: 0.85rem; color: var(--color-white); }
.admin-user-info small { font-size: 0.75rem; color: var(--color-text-muted); }

.logout-btn { background: rgba(255, 255, 255, 0.05); border: none; color: var(--color-text-muted); width: 34px; height: 34px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.logout-btn:hover { background: #e11d48; color: #fff; }

.admin-main { margin-left: 270px; flex-grow: 1; padding: 2rem 2.5rem; max-width: 1400px; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.page-title { font-size: 2rem; color: var(--color-white); }
.top-bar-actions { display: flex; gap: 1rem; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.glass-card {
    background: var(--bg-card);
    border: var(--border-glass-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.kpi-card { display: flex; align-items: center; gap: 1.25rem; }
.kpi-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

.gold-bg { background: rgba(212, 175, 55, 0.18); color: var(--color-gold); }
.blue-bg { background: rgba(59, 130, 246, 0.18); color: #3b82f6; }
.green-bg { background: rgba(16, 185, 129, 0.18); color: #10b981; }
.purple-bg { background: rgba(168, 85, 247, 0.18); color: #a855f7; }

.kpi-label { font-size: 0.85rem; color: var(--color-text-muted); }
.kpi-value { font-size: 1.8rem; color: var(--color-white); font-weight: 700; }
.kpi-small { font-size: 1.15rem; }

.section-box { padding: 1.75rem; }
.box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.box-header h3 { font-size: 1.25rem; color: var(--color-white); }
.box-sub { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.2rem; }

.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { background: rgba(0,0,0,0.4); color: var(--color-text-muted); font-weight: 600; text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.data-table td { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--color-text-main); vertical-align: middle; }

.status-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); }
.status-Pendiente { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.status-Pagado { background: rgba(16, 185, 129, 0.18); color: #10b981; }
.status-Enviado { background: rgba(59, 130, 246, 0.18); color: #3b82f6; }
.status-Completado { background: rgba(168, 85, 247, 0.18); color: #a855f7; }

.products-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.admin-product-card {
    background: rgba(0, 0, 0, 0.3);
    border: var(--border-glass-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
}

.admin-prod-img { width: 80px; height: 80px; border-radius: var(--radius-sm); object-fit: cover; background: #14141a; }
.admin-prod-details { flex-grow: 1; }
.admin-prod-title { font-size: 1rem; color: var(--color-white); font-weight: 600; margin-bottom: 0.25rem; }
.admin-prod-price { font-size: 1.15rem; color: var(--color-gold); font-weight: 700; margin-bottom: 0.5rem; }
.admin-prod-actions { display: flex; gap: 0.5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; }
.btn-gold { background: linear-gradient(135deg, #f7e7a9 0%, #d4af37 60%, #8a6c12 100%); color: #000; }
.btn-outline-light { background: rgba(255, 255, 255, 0.05); border: var(--border-glass-light); color: var(--color-white); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn-glow { box-shadow: 0 0 20px rgba(212, 175, 55, 0.35); }

.form-group label { display: block; font-size: 0.85rem; color: var(--color-text-main); margin-bottom: 0.4rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(255, 255, 255, 0.05); border: var(--border-glass-light); border-radius: var(--radius-sm); padding: 0.65rem 0.9rem; color: var(--color-white); font-size: 0.9rem; font-family: inherit; outline: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.full-width { grid-column: span 2; }
.modal-actions-right { display: flex; justify-content: flex-end; gap: 0.75rem; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: var(--transition-fast); }
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card { width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; background: #101016; border: var(--border-glass); border-radius: var(--radius-lg); position: relative; padding: 2.25rem; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9); }
.close-modal-btn { position: absolute; top: 1.25rem; right: 1.25rem; background: rgba(255, 255, 255, 0.1); border: none; color: var(--color-white); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.toast-notification { position: fixed; bottom: 2rem; right: 2rem; background: #14141a; border: var(--border-glass); color: var(--color-white); padding: 0.85rem 1.5rem; border-radius: var(--radius-full); display: flex; align-items: center; gap: 0.75rem; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8); z-index: 1001; opacity: 0; transform: translateY(30px); transition: var(--transition-fast); }
.toast-notification.active { opacity: 1; transform: translateY(0); }
