/* NR Boomerang — Dashboard styles */

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

body {
  font-family: 'Google Sans', Roboto, -apple-system, sans-serif;
  font-size: 14px;
  color: #3c4043;
  background: #f8f9fa;
  padding: 24px;
}

/* Auth screen */

.nrb-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.nrb-auth-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.nrb-auth-card h1 {
  font-size: 22px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 12px;
}

.nrb-auth-card p {
  color: #5f6368;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.nrb-sign-in-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.nrb-sign-in-btn:hover {
  background: #f8f9fa;
}

/* Header */

.nrb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.nrb-header h1 {
  font-size: 22px;
  font-weight: 400;
  color: #202124;
}

.nrb-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nrb-user-email {
  font-size: 13px;
  color: #5f6368;
}

.nrb-sign-out-btn {
  background: none;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  color: #5f6368;
  cursor: pointer;
  font-family: inherit;
}

.nrb-sign-out-btn:hover {
  background: #f1f3f4;
}

/* Main container */

.nrb-options {
  max-width: 800px;
  margin: 0 auto;
}

/* Tabs */

.nrb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8eaed;
  margin-bottom: 20px;
}

.nrb-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
}

.nrb-tab:hover {
  color: #202124;
}

.nrb-tab.active {
  color: #202124;
  border-bottom-color: #3c4043;
}

.nrb-tab-content {
  display: none;
}

.nrb-tab-content.active {
  display: block;
}

/* Filters */

.nrb-filters {
  margin-bottom: 16px;
}

.nrb-filters select {
  padding: 6px 12px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

/* Table */

.nrb-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
}

.nrb-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f8f9fa;
  border-bottom: 1px solid #e8eaed;
}

.nrb-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f3f4;
  font-size: 13px;
}

.nrb-table tr:last-child td {
  border-bottom: none;
}

.nrb-table-empty {
  text-align: center;
  color: #80868b;
  padding: 32px 14px;
}

.nrb-table-action {
  background: none;
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #3c4043;
  font-family: inherit;
  margin-right: 4px;
}

.nrb-table-action:hover {
  background: #f1f3f4;
}

.nrb-table-action:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Settings */

.nrb-settings-section {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.nrb-settings-section h2 {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 14px;
}

.nrb-setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
}

.nrb-setting-row input[type="checkbox"] {
  cursor: pointer;
}

.nrb-setting-row input[type="time"] {
  border: 1px solid #dadce0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  font-family: inherit;
  margin-left: auto;
}

.nrb-save-btn {
  background: #3c4043;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.nrb-save-btn:hover {
  background: #202124;
}

.nrb-save-status {
  margin-left: 12px;
  font-size: 13px;
}

.nrb-save-status.success {
  color: #1a1a1a;
  font-weight: 500;
}

.nrb-save-status.error {
  font-weight: 500;
}

/* Note text */

.nrb-note {
  font-size: 12px;
  color: #80868b;
  margin-top: 4px;
  font-style: italic;
}

/* Responsive */

@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .nrb-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nrb-table th:nth-child(4),
  .nrb-table td:nth-child(4) {
    display: none;
  }

  .nrb-tab {
    padding: 10px 12px;
    font-size: 13px;
  }
}
