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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f6f9;
  color: #1a1a2e;
  font-size: 14px;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #0d1b2a;
  color: #fff;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { font-size: 16px; font-weight: 600; color: #fff; }
.nav-back { color: #a8c7fa; text-decoration: none; font-size: 14px; }
.nav-back:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-email { font-size: 13px; color: #8899aa; }

/* Container */
.container { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }

/* Page header */
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-header h2 { font-size: 20px; font-weight: 600; }

/* Badge */
.badge {
  background: #e2eaff;
  color: #3355cc;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

/* Filters */
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #d0d7e3;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.search-input:focus { outline: none; border-color: #3355cc; }
.select-input {
  padding: 8px 12px;
  border: 1px solid #d0d7e3;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary { background: #3355cc; color: #fff; }
.btn-primary:hover { background: #2244bb; }
.btn-outline { background: transparent; border: 1px solid #d0d7e3; color: #444; }
.btn-outline:hover { background: #f0f4ff; border-color: #aab; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* Table */
.reports-count { font-size: 13px; color: #666; margin-bottom: 10px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.table thead { background: #f0f4ff; }
.table th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #556; }
.table td { padding: 10px 14px; border-top: 1px solid #eef0f5; vertical-align: middle; }
.table tbody tr:hover { background: #f8faff; }
.td-date { white-space: nowrap; color: #556; font-size: 13px; }
.td-symptom { font-weight: 500; }
.td-ship { color: #778; font-size: 13px; }
.lang-badge {
  background: #eef3ff;
  color: #3355cc;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Empty state */
.empty-state { text-align: center; padding: 48px; color: #778; font-size: 15px; }

/* Cards */
.card { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); padding: 20px 24px; margin-bottom: 20px; }
.card-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #3355cc; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #eef0f5; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.info-full { grid-column: 1 / -1; }
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #889; }
.text-block { white-space: pre-wrap; line-height: 1.6; }

/* Transcript */
.transcript { display: flex; flex-direction: column; gap: 10px; max-height: 600px; overflow-y: auto; padding-right: 4px; }
.msg { padding: 10px 14px; border-radius: 8px; }
.msg strong { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 4px; }
.msg p { margin: 0; line-height: 1.6; }
.msg-assistant { background: #eef3ff; border-left: 3px solid #3355cc; }
.msg-assistant strong { color: #3355cc; }
.msg-user { background: #f4f9f4; border-left: 3px solid #2a8a4a; }
.msg-user strong { color: #2a8a4a; }
.msg-other { background: #f8f8f8; color: #778; font-size: 13px; }

/* Alerts */
.alert { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fff0f0; color: #cc2233; border: 1px solid #fcc; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #0d1b2a; }
.login-box { background: #fff; border-radius: 12px; padding: 40px; width: 100%; max-width: 380px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo h1 { font-size: 28px; font-weight: 700; color: #0d1b2a; }
.login-logo p { font-size: 14px; color: #778; margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334; }
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d7e3;
  border-radius: 6px;
  font-size: 14px;
}
.form-group input:focus { outline: none; border-color: #3355cc; box-shadow: 0 0 0 3px rgba(51,85,204,0.1); }
