:root {
    --bg-page: #f8fafc; /* canvas outer bg */
    --canvas-bg: #ffffff;
    --app-bg: #f8fafc; /* inner dashboard bg */
    --card-bg: #ffffff;
    
    --text-dark: #0f172a;
    --text-muted: #64748b;
    
    --primary-blue: #2563eb;
    --light-blue: #eff6ff;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(37, 99, 235, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

/* Outer Presentation Canvas */
.presentation-canvas {
    width: 100%;
    max-width: 1400px;
    background-color: var(--canvas-bg);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

/* Presentation Header */
.presentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3.5rem 2rem;
}

.header-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.logo-box {
    width: 60px; height: 60px;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-size: 1.8rem;
}

.title-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}
.title-area p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.header-right {
    display: flex;
    gap: 1rem;
}
.feature-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.blue-bg { background-color: var(--primary-blue); }
.blue-text { color: var(--primary-blue); }
.light-blue-bg { background-color: var(--light-blue); }


/* Mockup Container */
.mockup-container {
    padding: 0 3.5rem 3.5rem;
    width: 100%;
}

/* Dashboard UI Layout */
.dashboard-ui {
    display: flex;
    width: 100%;
    height: 750px;
    background: var(--app-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.brand {
    display: flex; align-items: center; gap: 0.8rem;
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 3rem; color: var(--text-dark);
    padding: 0 0.5rem;
}
.brand-icon { font-size: 1.4rem; }

.side-menu {
    display: flex; flex-direction: column; gap: 0.5rem; flex: 1;
}
.side-menu a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex; align-items: center; gap: 0.8rem;
    font-weight: 500; font-size: 0.9rem;
    transition: 0.2s;
}
.side-menu a:hover { background: #f1f5f9; color: var(--text-dark); }
.side-menu a.active {
    background: var(--light-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

.sidebar-bottom { margin-top: auto; }
.user-profile { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; border-top: 1px solid var(--border-color);}
.user-profile img { width: 36px; height: 36px; border-radius: 50%; }
.user-info { display: flex; flex-direction: column; }
.user-info b { font-size: 0.85rem; font-weight: 600;}
.user-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Main Dashboard Area */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.search-bar {
    display: flex; align-items: center; gap: 0.8rem;
    background: #f1f5f9; padding: 0.6rem 1rem; border-radius: 8px;
    width: 350px;
}
.search-bar input { border: none; background: transparent; outline: none; font-family: inherit; font-size: 0.9rem; width: 100%;}
.search-bar .icon { color: var(--text-muted); font-size: 1rem; }

.topbar-right { display: flex; align-items: center; gap: 1rem; }
.outline-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-dark); padding: 0.6rem 1.2rem; border-radius: 8px; font-family: inherit; font-weight: 500; font-size: 0.85rem; cursor: pointer;}
.primary-btn { background: var(--primary-blue); color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-family: inherit; font-weight: 500; font-size: 0.85rem; cursor: pointer; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);}

/* Content Area */
.dashboard-content {
    padding: 2rem;
    overflow-y: auto;
}

.section-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.02em;}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem;}
.card-info { display: flex; flex-direction: column; gap: 0.3rem;}
.card-info span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500;}
.card-info h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em;}
.icon-wrap { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;}

.sparkline { display: flex; align-items: center; justify-content: space-between;}
.trend { font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 6px; display: inline-flex; align-items: center;}
.trend.up { background: #dcfce7; color: #166534; }
.trend.down { background: #f1f5f9; color: #475569; }
.spark-svg { width: 80px; height: 30px; }


/* Inventory Card */
.inventory-card { padding: 1.5rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;}
.card-header h3 { font-size: 1rem; font-weight: 600; }
.view-link { font-size: 0.85rem; color: var(--primary-blue); text-decoration: none; font-weight: 500;}

.inventory-table { width: 100%; border-collapse: collapse; }
.inventory-table th { text-align: left; padding: 1rem; font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--border-color); font-weight: 500;}
.inventory-table td { padding: 1rem; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; font-weight: 500; color: var(--text-dark);}
.inventory-table tr:last-child td { border-bottom: none; }
.text-muted { color: var(--text-muted) !important; }

.product-item { display: flex; align-items: center; gap: 1rem; }
.p-img { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;}
.product-item b { font-weight: 600; font-size: 0.95rem;}

.stock-indicator { display: flex; flex-direction: column; gap: 0.3rem; width: 100px;}
.stock-text { font-size: 0.75rem; font-weight: 600;}
.stock-text.critical { color: #ef4444; }
.stock-text.warning { color: #f59e0b; }
.stock-bar { width: 100%; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden;}
.fill { height: 100%; border-radius: 3px;}
.fill.red { background: #ef4444; }
.fill.yellow { background: #f59e0b; }

.restock-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-dark); padding: 0.4rem 0.8rem; border-radius: 6px; font-family: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer;}
.restock-btn:hover { background: #f8fafc; }
