/* style.css - modernes Dashboard (vollbild) */

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

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-600: #1e4fc1;
  --accent: #06b6d4;
  --danger: #ef4444;
  --success: #16a34a;
  --border: #e6e9ee;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(20,20,40,0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Page layout */
html, body {
  height: 100%;
  width: 100%;
}

body {
  background: var(--bg);
  color: #0f172a;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Wrapper: Sidebar + Main */
.app {
  display: flex;
  min-height: 100vh;
  width: 100vw; /* volle Breite */
  gap: 24px;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, rgba(37,99,235,0.12), rgba(6,182,212,0.06));
  padding: 24px;
  border-radius: 16px;
  margin: 24px 0 24px 24px; /* nur links und oben/unten */
  box-shadow: var(--shadow);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  display: inline-block;
  box-shadow: 0 6px 18px rgba(37,99,235,0.18);
}

.brand h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-600);
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.menu a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
}

.menu a.small {
  font-weight: 500;
  color: var(--muted);
}

.menu a:hover {
  background: rgba(37,99,235,0.08);
}

.menu a.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 18px rgba(37,99,235,0.12);
}

/* Main area */
.main {
  flex: 1;
  margin: 24px 24px 24px 0; /* Abstand rechts und oben/unten */
  max-width: 100%; /* volle Breite */
  padding: 0;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.topbar .left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.searchbox {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--card);
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 520px;
  box-shadow: none;
}

.searchbox input {
  border: 0;
  outline: none;
  padding: 8px;
  background: transparent;
  width: 100%;
}

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

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

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  width: 100%;
}

.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  width: 100%;
}

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

thead th {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

tbody tr:hover td {
  background: #fbfdff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary { background: var(--primary); color: white; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 8px; font-size: 13px; border-radius: 6px; }

/* Form */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a;
}

.input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 100%;
  background: white;
}

/* Tiny helpers */
.kv { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: var(--primary-600); font-weight: 600; }

/* Status styles */
.status-interested { color: var(--success); font-weight: 700; }
.status-not-interested { color: #9b1740; font-weight: 700; }
.status-do_not_call { color: var(--danger); font-weight: 700; }
.status-in_progress { color: #d97706; font-weight: 700; }

/* Responsive */
@media (max-width:1000px){
  .sidebar { display:none; }
  .main { margin: 16px; }
  .searchbox { width: 100%; max-width: 360px; }
  .grid { grid-template-columns: repeat(6,1fr); }
  .col-8 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
}
