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

body {
  font-family: 'Inter', sans-serif;
  background: #f0f2f5;
  color: #333333;
}


.dashboardbutton {
    
}
a,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
  color: #00796b;
  background: none !important;
  outline: none;
}

button,
button:hover,
button:active,
button:focus {
  background: #00796b;
  color: #ffffff;
  border: none;
  outline: none;
}

/* Landing Page */
.landing-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  background: linear-gradient(120deg, #e0f7fa, #ffffff);
}

.landing-container h1 {
  font-size: 3.0rem;
  color: #00796b;
}

.landing-subtitle {
  font-size: 1.1rem;
  color: #555555;
  max-width: 500px;
}

.btn-primary {
  padding: 12px 24px;
  background-color: #00796b;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
  font-size: 1.5rem;
}

.arrow-img{
  height:35px;
  
}

.btn-primary:hover {
  background-color: #004d40;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  padding: 16px 32px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.topbar h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  color: #00796b;
}

/* Layout */
.layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 280px;
  background: #ffffff;
  box-shadow: 2px 0 6px rgba(0,0,0,0.08);
  padding: 24px;
  transform: translateX(0);
  transition: transform 0.3s;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sidebar nav a {
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s;
  font-weight: 500;
  color: #00796b;
  background: none;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background-color: #e0f7fa;
}

/* Add Form */
.add-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-form input,
.add-form select,
.add-form button {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  font-size: 0.9rem;
}

.add-form button {
  background: #00796b;
  color: #ffffff;
  font-weight: 500;
  transition: background 0.3s;
}

.add-form button:hover {
  background: #004d40;
}

/* Main */
.main {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Dashboard Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-left: 4px solid #00796b;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}


.card svg {
  width: 36px;
  height: 36px;
  color: #00796b;
  flex-shrink: 0;
}

.card p {
  font-size: 0.85rem;
  color: #555555;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333333;
}

/* Filters */
.filters {
  display: flex;
  gap: 16px;
}

.filters input,
.filters select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  flex: 1;
}

/* Table */
.table-container {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
}

thead {
  background: #e0f7fa;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #f1f7f7;
}

/* Status & Risk Badges */
.stock-status,
.risk-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stock-status.in-stock {
  background: #d0f0ea;
  color: #00796b;
}

.stock-status.out-of-stock {
  background: #fdecea;
  color: #c62828;
}

.risk-badge.risk-low {
  background: #d0f0ea;
  color: #00796b;
}

.risk-badge.risk-medium {
  background: #fff4e0;
  color: #ff9800;
}

.risk-badge.risk-high {
  background: #fdecea;
  color: #c62828;
}

/* Delete Button */
.delete-btn {
  background: #e53935;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: background 0.3s;
}

.delete-btn:hover {
  background: #ab000d;
}

/* Empty State */
.empty {
  padding: 32px;
  text-align: center;
  color: #999999;
}

/* Responsive */
@media(max-width:900px){
  .layout { flex-direction: column; }
  .sidebar { width: 100%; transform: translateY(0); height: auto; position: relative; top:0; }
  .topbar h1 { font-size: 1rem; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
