<?php
session_start();
if (!isset($_SESSION['warehouse'])) {
  header("Location: login_warehouse.php");
  exit;
}
?>

<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Dashboard Warehouse</title>
  <style>
    body { font-family: Arial; background: #f5f5f5; padding: 30px; }
    .container { max-width: 600px; margin: auto; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
    h2 { text-align: center; color: #d84315; margin-bottom: 30px; }
    .menu { display: flex; flex-direction: column; gap: 15px; }
    .menu a {
      padding: 15px; background: #f44336; color: white; text-decoration: none;
      border-radius: 6px; text-align: center; font-size: 16px; transition: background 0.3s;
    }
    .menu a:hover { background: #d32f2f; }
    .logout-btn {
      margin-top: 40px; display: block; text-align: center;
      background: #9e9e9e; color: white; padding: 10px 20px;
      border-radius: 6px; text-decoration: none;
    }
  </style>
</head>
<body>
<div class="container">
  <h2>📦 Dashboard Warehouse</h2>
  <div class="menu">
    <a href="lihat_stok.php">📋 Lihat Stok</a>
	<a href="tambah_produk_warehouse.php" class="btn">➕ Tambah Produk</a>
    <a href="tambah_stok.php">➕ Tambah Stok</a>
    <a href="kurangi_stok.php">➖ Kurangi Stok</a>
    <a href="edit_stok.php">✏️ Edit Stok</a>
    <a href="riwayat_stok.php">📜 Riwayat Stok</a>
  </div>
  <a href="logout_warehouse.php" class="logout-btn">🔒 Logout</a>
</div>
</body>
</html>