:root {
    --bg-main: #0B0F19; /* Dark blue/black */
    --bg-panel: rgba(17, 24, 39, 0.7); /* Glassmorphism base */
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #F3F4F6;
    --text-muted: #9CA3AF;
    --accent-brand: #3B82F6; /* Vibrant blue */
    --accent-success: #10B981; /* Emerald green */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-family: 'Outfit', sans-serif;
    --radius-lg: 16px;
    --radius-md: 10px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    /* Adicionando um leve blur de fundo estilo aurora */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

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

/* Utilitários Glassmorphism */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

/* Sidebar */
.sidebar {
    width: 260px;
    margin: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}
.logo h1 span {
    color: var(--accent-brand);
}
.badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 8px;
    vertical-align: middle;
}

.menu {
    margin-top: 40px;
    flex-grow: 1;
}

.menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.menu a:hover, .menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.menu a .icon {
    margin-right: 12px;
    font-size: 18px;
}

/* Top Bar */
.content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.top-bar h2 {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-brand);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.settings-card {
    padding: 24px;
}
.settings-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-primary);
}

.input-group {
    margin-bottom: 16px;
}
.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: border-color 0.3s;
}
.input-group input:focus {
    outline: none;
    border-color: var(--accent-brand);
}

/* Botões */
button {
    font-family: inherit;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.btn-primary {
    background: var(--accent-brand);
    color: white;
    padding: 12px 20px;
    width: 100%;
}
.btn-primary:hover { background: #2563EB; }
.btn-success {
    background: var(--accent-success);
    color: white;
    padding: 12px 20px;
    width: 100%;
    margin-top: 10px;
}
.btn-success:hover { background: #059669; }

/* Stats */
.stats-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.stat-card {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.stat-card h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}
.stat-card .big-number {
    font-size: 36px;
    font-weight: 700;
    margin-top: 10px;
    color: var(--text-primary);
}
.stat-card .online {
    color: var(--accent-success);
}

/* Tabela Premium */
.products-section {
    padding: 24px;
    flex: 1;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.search-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    width: 250px;
}

.table-responsive {
    overflow-x: auto;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
}
.premium-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}
.premium-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}
.premium-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sku-name { font-weight: 600; color: var(--text-primary); display: block;}
.sku-code { font-size: 12px; color: var(--text-muted); }
.price-value { font-family: monospace; font-size: 15px; }
.profit-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}
.profit-badge.negative {
    background: rgba(239, 68, 68, 0.15); /* Red tinted background */
    color: #EF4444; /* Tailwind red-500 */
}
select option { background-color: #0B0F19; color: #F3F4F6; }
