        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: #0f172a;
            color: #e2e8f0;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* AUTH SCREEN */
        .auth-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            gap: 4rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .auth-left {
            flex: 1;
            max-width: 480px;
        }

        .auth-right {
            flex: 1;
            max-width: 480px;
        }

        .auth-branding h1 {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(135deg, #38bdf8, #60a5fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .auth-branding p {
            font-size: 1.1rem;
            color: #94a3b8;
            margin-bottom: 2rem;
        }

        .auth-tabs {
            display: flex;
            margin-bottom: 2rem;
            border-bottom: 1px solid #334155;
        }

        .auth-tab {
            padding: 1rem 0;
            flex: 1;
            text-align: center;
            cursor: pointer;
            font-weight: 500;
            color: #94a3b8;
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
        }

        .auth-tab.active {
            color: #38bdf8;
            border-bottom-color: #38bdf8;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: #e2e8f0;
            font-size: 0.95rem;
        }

        .form-group input {
            width: 100%;
            padding: 0.875rem 1rem;
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 8px;
            color: #e2e8f0;
            font-size: 1rem;
            transition: all 0.2s ease;
        }

        .form-group input:focus {
            outline: none;
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
        }

        .btn {
            width: 100%;
            padding: 1rem;
            background: #38bdf8;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn:hover {
            background: #0ea5e9;
            transform: translateY(-1px);
        }

        /* DASHBOARD */
        .dashboard-container {
            display: none;
            min-height: 100vh;
        }

        .dashboard-container.active {
            display: flex;
        }

        .sidebar {
            width: 280px;
            background: #1e293b;
            border-right: 1px solid #334155;
            padding: 2rem 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            z-index: 100;
        }

        .sidebar-header {
            padding: 0 2rem 2rem;
            border-bottom: 1px solid #334155;
            margin-bottom: 2rem;
        }

        .sidebar-header h2 {
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, #38bdf8, #60a5fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .nav-item {
            display: flex;
            align-items: center;
            padding: 1rem 2rem;
            color: #94a3b8;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .nav-item:hover {
            color: #e2e8f0;
            background: rgba(56, 189, 248, 0.1);
        }

        .nav-item.active {
            color: #38bdf8;
            background: rgba(56, 189, 248, 0.15);
            border-right: 3px solid #38bdf8;
        }

        .main-content {
            margin-left: 280px;
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
        }

.page {
    display: none;
}

.page.active {
    display: block !important;
}

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .greeting {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .company {
            color: #94a3b8;
            font-size: 1.1rem;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .card {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 2rem;
            transition: all 0.2s ease;
        }

        .card:hover {
            border-color: #38bdf8;
            box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .sell-controls .form-row {
            grid-template-columns: auto 1fr;
            align-items: end;
        }

.product-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        .product-form-grid .full-width {
            grid-column: 1 / -1;
        }

        .product-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }

.product-card {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 1.5rem;
            transition: box-shadow 0.08s ease-out, transform 0.1s ease-out;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
        }

        .product-card:hover:not(.selected) {
            box-shadow: 0 4px 16px rgba(71, 85, 105, 0.4);
            transform: translateY(-1px);
        }

        .product-card.selected {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239,68,68,0.5), 0 8px 32px rgba(239,68,68,0.25) !important;
            background: rgba(239,68,68,0.08);
            transform: translateY(-2px);
        }

        .product-card:hover {
            box-shadow: 0 4px 16px rgba(71, 85, 105, 0.4);
            transform: translateY(-1px);
        }

        .product-card.selected {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239,68,68,0.5), 0 8px 32px rgba(239,68,68,0.25) !important;
            background: rgba(239,68,68,0.08);
            transform: translateY(-2px);
        }

        .delete-btn {
            background: #ef4444;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: background 0.2s ease;
            flex-shrink: 0;
        }

        .delete-btn:hover {
            background: #dc2626;
        }

        .product-card.low-stock {
            border-color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
        }

        .product-card.expiring-soon {
            border-color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
        }

        .search-container {
            margin-bottom: 2rem;
        }

        .search-input {
            width: 100%;
            max-width: 400px;
            padding: 0.875rem 1rem;
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 8px;
            color: #e2e8f0;
        }

        .notification-item {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 1rem;
        }

        .notification-item.warning {
            border-left: 4px solid #f59e0b;
        }

        .notification-item.danger {
            border-left: 4px solid #ef4444;
        }

        .notification-item {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            transition: box-shadow 0.2s ease, transform 0.2s ease;
        }

        .notification-item:hover {
            box-shadow: 0 4px 16px rgba(71, 85, 105, 0.4);
            transform: translateY(-1px);
        }

        .notification-item.warning {
            border-left: 4px solid #f59e0b;
        }

        .notification-item.danger {
            border-left: 4px solid #ef4444;
        }

        .notification-item.notification-lowstock {
            background: rgba(224, 242, 255, 0.1);
            border-left: 4px solid #60a5fa;
        }

        .delete-btn-notification {
            background: #ef4444;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.2s ease;
            flex-shrink: 0;
            white-space: nowrap;
        }

.delete-btn-notification:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.edit-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.edit-btn:hover {
  background: #059669;
}

        .product-card.selected {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239,68,68,0.3), 0 8px 25px rgba(239,68,68,0.15);
            background: rgba(239,68,68,0.05);
            transform: translateY(-2px);
        }

        @media (max-width: 1024px) {

            .sidebar {
                transform: translateX(-100%);
            }
            .main-content {
                margin-left: 0;
            }
            .auth-container {
                flex-direction: column;
                gap: 3rem;
            }
        }


        @media (max-width: 768px) {
            .product-form-grid {
                grid-template-columns: 1fr;
            }
            .main-content {
                padding: 1rem;
            }
        }