/* PulseCRM - Modern CRM Styling */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--secondary);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width 0.3s;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo i {
  color: var(--primary);
  font-size: 24px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--gray-300);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

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

.user-avatar.large {
  width: 80px;
  height: 80px;
  font-size: 24px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: white;
}

.user-role {
  font-size: 12px;
  color: var(--gray-400);
  text-transform: capitalize;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

/* Header */
.top-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
}

.sidebar-toggle:hover {
  background: var(--gray-100);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  padding: 8px 16px;
  border-radius: 20px;
  min-width: 300px;
}

.search-bar i {
  color: var(--gray-400);
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--gray-700);
}

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

.header-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  position: relative;
}

.header-btn:hover {
  background: var(--gray-100);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

/* Page Content */
.page-content {
  padding: 24px;
  flex: 1;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.page-title p {
  color: var(--gray-500);
  margin-top: 4px;
}

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

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.blue { background: #eef2ff; color: var(--primary); }
.stat-icon.green { background: #ecfdf5; color: var(--success); }
.stat-icon.orange { background: #fffbeb; color: var(--warning); }
.stat-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.stat-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-info p {
  font-size: 13px;
  color: var(--gray-500);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
}

.card-body {
  padding: 20px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  vertical-align: middle;
}

.table th {
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 12px 18px;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

.table td a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.table td a:hover {
  text-decoration: underline;
}

.table tbody tr {
  transition: background 0.15s ease;
}

.table tbody tr:hover {
  background: var(--primary-light);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

.btn-outline {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-50);
}

.btn-danger {
  background: white;
  color: var(--danger);
  border: 1px solid var(--gray-200);
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: var(--danger);
  color: #b91c1c;
}

.btn-danger.btn-solid {
  background: var(--danger);
  color: white;
  border: none;
}

.btn-danger.btn-solid:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.btn-icon.btn-icon-danger:hover {
  background: #fef2f2;
  border-color: var(--danger);
  color: var(--danger);
}

.btn-icon.btn-icon-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-prospecting { background: #fef3c7; color: #92400e; }
.badge-qualification { background: #dbeafe; color: #1e40af; }
.badge-proposal { background: #e0e7ff; color: #3730a3; }
.badge-negotiation { background: #fce7f3; color: #9d174d; }
.badge-closed_won { background: #d1fae5; color: #065f46; }
.badge-closed_lost { background: #fee2e2; color: #991b1b; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.badge-lg { padding: 6px 14px; font-size: 13px; }

/* Task type badges */
.badge-type-call { background: #dbeafe; color: #1d4ed8; }
.badge-type-email { background: #ede9fe; color: #6d28d9; }
.badge-type-meeting { background: #d1fae5; color: #047857; }
.badge-type-follow_up { background: #fef3c7; color: #b45309; }
.badge-type-demo { background: #fce7f3; color: #be185d; }

/* Task status check button */
.btn-check {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-300);
  transition: all 0.2s;
  padding: 2px;
  line-height: 1;
}

.btn-check:hover {
  color: var(--success);
  transform: scale(1.15);
}

.btn-check.checked {
  color: var(--success);
}

.row-completed td {
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: var(--gray-300);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-700);
  transition: all 0.2s;
  background: white;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select:hover {
  border-color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.input-icon input {
  padding-left: 40px;
}

.filter-form .filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-form .form-group {
  margin-bottom: 0;
  min-width: 200px;
}

.filter-form .form-group select,
.filter-form .form-group input {
  height: 42px;
  border-radius: 8px;
  font-size: 13px;
}

.filter-form .btn {
  height: 42px;
  white-space: nowrap;
}

/* Auth Pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
  width: 100%;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-card {
  background: white;
  padding: 40px;
}

.auth-info {
  background: var(--secondary);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-info h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.auth-info p {
  color: var(--gray-400);
  margin-bottom: 24px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-300);
}

.feature i {
  color: var(--primary);
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header .logo {
  color: var(--gray-900);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--gray-500);
  font-size: 14px;
}

.auth-form {
  margin-bottom: 24px;
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer p {
  margin-top: 12px;
}

/* Captcha */
.captcha-group {
  margin-top: 16px;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.captcha-image {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 4px;
  background: var(--gray-50);
}

.captcha-image svg {
  display: block;
  max-width: 200px;
  height: auto;
}

.btn-captcha-refresh {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.2s;
}

.btn-captcha-refresh:hover {
  background: var(--gray-200);
}

.captcha-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Notes */
.note-form {
  margin-bottom: 20px;
}

.note-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  resize: vertical;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-item {
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}

.note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.note-author {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-700);
}

.note-date {
  font-size: 12px;
  color: var(--gray-400);
}

.note-content {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s;
}

.quick-action-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.quick-action-btn i {
  font-size: 24px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.info-item label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}

.info-item.full-width {
  grid-column: 1 / -1;
}

/* Misc */
.empty-state {
  text-align: center;
  color: var(--gray-400);
  padding: 24px;
  font-size: 14px;
}

.search-results-info {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-600);
}

.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-form select {
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 12px;
  background: white;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  transition: all 0.15s;
}

.inline-form select:hover {
  border-color: var(--gray-400);
}

.inline-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.mono {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 12px;
  word-break: break-all;
}

.text-muted {
  color: var(--gray-500);
  font-size: 12px;
  margin-top: 4px;
}

.stage-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.stage-form select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
}

.deal-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.deal-mini:last-child {
  border-bottom: none;
}

.test-result {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.result-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 8px;
}

.result-data {
  background: var(--gray-900);
  color: #10b981;
  padding: 12px;
  border-radius: var(--radius);
  margin-top: 8px;
  overflow-x: auto;
  font-size: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.avatar-form {
  display: inline;
}

.avatar-form input[type="file"] {
  display: none;
}

/* Error Page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
}

.error-content {
  text-align: center;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--primary);
}

.error-message {
  font-size: 18px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-info {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Team Page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.team-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.team-card-banner {
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, #a855f7 100%);
}

.team-card-avatar {
  display: flex;
  justify-content: center;
  margin-top: -32px;
  position: relative;
  z-index: 2;
}

.team-card-avatar .user-avatar.large {
  width: 64px;
  height: 64px;
  font-size: 20px;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.team-card-info {
  text-align: center;
  padding: 12px 20px 0;
}

.team-card-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.team-card-info h3 a {
  color: var(--gray-900);
  text-decoration: none;
}

.team-card-info h3 a:hover {
  color: var(--primary);
}

.team-card-details {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}

.team-detail-item i {
  width: 16px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
}

.team-detail-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-role-admin { background: #fef3c7; color: #92400e; }
.badge-role-manager { background: #dbeafe; color: #1e40af; }
.badge-role-sales_rep { background: #ede9fe; color: #6d28d9; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.status-dot.inactive {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Notifications Page */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background 0.15s;
}

.notification-item:hover {
  background: var(--bg-secondary);
}

.notification-item.unread {
  border-left: 3px solid var(--primary);
  background: #f0f7ff;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.notification-content {
  flex: 1;
}

.notification-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.notification-actions {
  display: flex;
  gap: 0.5rem;
}

/* Task states */
.row-completed {
  opacity: 0.6;
  text-decoration: line-through;
}

.btn-check {
  background: none;
  border: 2px solid var(--border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-check:hover {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

/* Settings Page */
.settings-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.settings-section h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* API Keys Page */
.key-card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.key-card .key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.key-card .key-value {
  font-family: 'Courier New', monospace;
  background: var(--bg-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  word-break: break-all;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-inactive {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
