@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2e7d32;
  --primary-hover: #1b5e20;
  --bg-body: #f4f7f6;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-sub: #757575;
  --status-ok: #4caf50;
  --status-warn: #ffc107;
  --status-danger: #f44336;
  --br-card: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --nav-height: 70px;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Prompt', sans-serif;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Layout --- */

header {
  height: var(--nav-height);
  background: var(--bg-card);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-sub);
  transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* --- Components --- */

.card {
  background: var(--bg-card);
  border-radius: var(--br-card);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.btn {
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-ok { background: rgba(76, 175, 80, 0.1); color: var(--status-ok); }
.badge-warn { background: rgba(255, 193, 7, 0.1); color: var(--status-warn); }
.badge-danger { background: rgba(244, 67, 54, 0.1); color: var(--status-danger); }

/* --- Dashboard Specific --- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.customer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.customer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #fcfdfd;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.03);
  transition: 0.2s;
}

.customer-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-bar input {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  flex: 1;
  font-size: 0.95rem;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Kanban Styles (Phase 4 Preview) */
.kanban-board {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.kanban-col {
  min-width: 300px;
  background: #ebefee;
  padding: 16px;
  border-radius: 12px;
}

.kanban-col h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-sub);
}
