:root {
  --bg-color: #f7f1e3; /* Beige KDS background */
  --header-bg: #d1ccc0;
  --card-bg: #ffffff;
  --text-primary: #2c2c54;
  --text-secondary: #706fd3;
  --border: #d1ccc0;
  
  /* Status Colors */
  --btn-cancel: #ff5252;
  --btn-ship: #33d9b2;
  --btn-detail: #706fd3;
  --btn-complete: #218c74;
  
  --row-hover: #fcfefe;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.top-bar {
  background-color: #2c2c54;
  color: white;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.top-bar-controls {
  display: flex;
  gap: 1rem;
}

.control-item {
  background: rgba(255,255,255,0.1);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.green-dot {
  width: 8px;
  height: 8px;
  background-color: #33d9b2;
  border-radius: 50%;
}

.logout-btn {
  background: #ff5252;
  border: none;
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* Dashboard Layout */
.dashboard-container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  background-color: #d1ccc0;
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: #2c2c54;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-wrapper {
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th {
  background-color: #eae6db; /* Slightly darker beige */
  text-align: left;
  padding: 0.8rem;
  font-weight: 600;
  color: #4b4b4b;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 0.8rem;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
}

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

tr:hover {
  background-color: var(--row-hover);
}

/* Buttons inside table */
.action-btn {
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 4px;
  transition: opacity 0.2s;
}

.action-btn:hover {
  opacity: 0.9;
}

.btn-cancel { background-color: var(--btn-cancel); }
.btn-ship { background-color: var(--btn-ship); } /* Green */
.btn-detail { background-color: var(--btn-detail); } /* Purple/Blue */
.btn-complete { background-color: var(--btn-complete); } /* Dark Green */

/* Badges */
.badge-platform {
  background-color: #ffda79;
  color: #8c7ae6;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.price-text {
  font-weight: bold;
  color: #2c2c54;
}

/* Login Page Override */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.login-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 350px;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 5px; color: #666; font-size: 0.9rem;}
.form-group input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.login-btn { width: 100%; padding: 10px; background: #2c2c54; color: white; border: none; border-radius: 4px; cursor: pointer; }
