/* Dashboard Page Styles */
/* Navigation styles are now in styles.css - using .modern-nav */

body {
  background: #f8f9fa;
  padding: 0;
}

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

.dashboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dash-tab {
  flex: 1;
  padding: 15px;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}

.dash-tab.active {
  background: #667eea;
  color: white;
}

.tab-content {
  display: none;
}

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

/* Profile Requirements Banner */
.profile-requirements-banner {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  border-radius: 12px;
  margin-bottom: 24px;
}

.requirements-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.requirement-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.required-badge {
  background: #fee2e2;
  color: #991b1b;
}

.auto-apply-badge {
  background: #dbeafe;
  color: #1e40af;
}

.requirements-section p {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.required-asterisk {
  color: #dc2626;
  font-weight: 700;
  font-size: 16px;
}

.auto-apply-indicator {
  color: #2563eb;
  font-size: 14px;
  margin-left: 4px;
  cursor: help;
}

label .auto-apply-indicator {
  vertical-align: middle;
}

/* Required asterisk styling */
.required-asterisk {
  color: #dc2626;
  font-weight: 700;
}

/* Compact Tab Header */
.tab-header-compact {
  background: white;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tab-title-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-title-info h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.tab-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-left: 4px;
}

.tab-search-inline {
  flex: 1;
  max-width: 400px;
}

.search-input-compact {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.search-input-compact:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
  .tab-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tab-search-inline {
    width: 100%;
    max-width: none;
  }
  
  .btn-primary-compact {
    width: 100%;
    justify-content: center;
  }
}

.tab-header {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.tab-header-content > div {
  flex: 0 1 auto;
}

.tab-header-content > button {
  flex-shrink: 0;
  align-self: flex-start;
}

.tab-header h2 {
  color: #333;
  margin-bottom: 10px;
  margin-top: 0;
}

.tab-header p {
  color: #666;
  margin: 0;
}

@media (max-width: 768px) {
  .tab-header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tab-header-content button {
    width: 100%;
  }
}

.jobs-list,
.alerts-list {
  display: grid;
  gap: 15px;
}

/* Job Item Styling - Unified with Search Page */
.job-item {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.job-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #0066cc;
}

.job-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
  gap: 15px;
}

.job-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  flex: 1;
}

.job-item-company {
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
}

.job-item-location {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 8px;
}

.job-item-salary {
  font-size: 0.9rem;
  color: #28a745;
  font-weight: 600;
  margin-bottom: 8px;
}

.job-item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

/* Unified Button Styling - Match Search Page */
.btn-small {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-view {
  background: #0066cc;
  color: white;
}

.btn-view:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-remove {
  background: #dc3545;
  color: white;
}

.btn-remove:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-status {
  background: #ffc107;
  color: #1a1a1a;
}

.btn-status:hover {
  background: #ffb300;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

.status-applied {
  background: #e3f2fd;
  color: #1976d2;
}

.status-interview {
  background: #fff3e0;
  color: #f57c00;
}

.status-offer {
  background: #e8f5e9;
  color: #388e3c;
}

.status-rejected {
  background: #ffebee;
  color: #d32f2f;
}

.alert-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-info h3 {
  color: #333;
  margin-bottom: 8px;
}

.alert-info p {
  color: #666;
  font-size: 0.9rem;
}

.empty-state {
  background: white;
  padding: 60px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.empty-state p {
  color: #666;
  margin-bottom: 20px;
}

.empty-state a {
  display: inline-block;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.empty-state a:hover {
  background: #5568d3;
}

@media (max-width: 768px) {
  .dashboard-tabs {
    flex-direction: column;
  }

  .job-item-header {
    flex-direction: column;
  }

  .alert-item {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

.profile-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-form {
  max-width: 800px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.form-section input[type="text"],
.form-section input[type="number"],
.form-section input[type="url"],
.form-section textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-section input[type="text"]:focus,
.form-section input[type="number"]:focus,
.form-section input[type="url"]:focus,
.form-section textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-section textarea {
  resize: vertical;
  line-height: 1.6;
}

.form-section small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.9rem;
}

.section-description {
  color: #666;
  font-size: 0.95rem;
  margin: -5px 0 15px 0;
  line-height: 1.5;
}

/* Link input group */
.link-input-group {
  margin-bottom: 16px;
}

.link-input-group:last-child {
  margin-bottom: 0;
}

.link-input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.link-input-group input {
  width: 100%;
}

/* Experience input wrapper */
.experience-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 200px;
}

.experience-input-wrapper input {
  flex: 1;
  min-width: 0;
}

.experience-label {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}



/* LinkedIn connections */
.linkedin-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 12px;
}

.linkedin-status p {
  margin: 0;
  color: #666;
  font-weight: 500;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #0077b5;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-linkedin:hover {
  background: #006399;
  transform: translateY(-1px);
}

.connections-count {
  padding: 10px 12px;
  background: #e8f5e9;
  border-radius: 6px;
  color: #2e7d32;
  margin-top: 12px;
  font-size: 0.95rem;
}

.manual-connections-toggle {
  margin-top: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}

.manual-connections-toggle summary {
  cursor: pointer;
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
}

.manual-connections-toggle summary::-webkit-details-marker {
  display: none;
}

.manual-connections-toggle summary::before {
  content: '▶';
  margin-right: 8px;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.manual-connections-toggle[open] summary::before {
  transform: rotate(90deg);
}

.manual-connections-toggle textarea {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

/* Form actions */
.form-actions {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
}

.btn-save-profile {
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 600;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-save-profile:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-save-profile:active {
  transform: translateY(0);
}

.profile-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
}

.file-upload-area:hover {
  border-color: #667eea;
  background: #f9f9ff;
}

.file-upload-area input[type="file"] {
  display: none;
}

.file-upload-label {
  cursor: pointer;
  display: block;
}

.file-upload-label span {
  display: block;
}

#fileName {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.file-info {
  font-size: 0.9rem;
  color: #666;
}

.btn-primary {
  padding: 14px 30px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #5568d3;
}

.profile-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.profile-message.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.profile-message.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

.match-banner {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  text-align: center;
}

.match-banner h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.match-banner p {
  font-size: 1rem;
  opacity: 0.95;
}


.linkedin-status {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.linkedin-status.connected {
  background: #d4edda;
  border-color: #28a745;
}

.btn-linkedin {
  padding: 10px 20px;
  background: #0077b5;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-linkedin:hover {
  background: #006399;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.btn-linkedin-sync {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-linkedin-sync:hover {
  background: #218838;
}

.btn-linkedin-disconnect {
  padding: 8px 16px;
  background: white;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-linkedin-disconnect:hover {
  background: #dc3545;
  color: white;
}

/* Search Bar Styles */
.search-bar-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 15px;
  align-items: center;
}

.dashboard-search {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.dashboard-search:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.results-count {
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.job-item.hidden {
  display: none;
}

@media (max-width: 768px) {
  .search-bar-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .results-count {
    text-align: center;
  }
}

/* Profile Layout */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

.profile-main {
  min-width: 0;
}

.profile-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Subscription Section */
.subscription-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subscription-section h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.subscription-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.subscription-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.plan-badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.free {
  background: #e9ecef;
  color: #6c757d;
}

.plan-badge.test {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: white;
}

.plan-badge.pro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.plan-badge.premium {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.plan-details h4 {
  color: #333;
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.plan-details p {
  color: #666;
  margin: 5px 0;
}

.plan-status {
  display: inline-block;
  padding: 4px 12px;
  background: #d4edda;
  color: #155724;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.subscription-features {
  margin-bottom: 20px;
}

.subscription-features h5 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1rem;
}

.subscription-features ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.subscription-features li {
  color: #666;
  padding: 8px 0;
  font-size: 0.9rem;
}

.subscription-features li::before {
  content: '✓ ';
  color: #28a745;
  font-weight: bold;
  margin-right: 5px;
}

.subscription-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-upgrade {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
  padding: 12px 24px;
  background: white;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel:hover {
  background: #dc3545;
  color: white;
}

@media (max-width: 768px) {
  .subscription-info {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .subscription-features ul {
    grid-template-columns: 1fr;
  }
  
  .subscription-actions {
    flex-direction: column;
  }
  
  .btn-upgrade,
  .btn-cancel {
    width: 100%;
    text-align: center;
  }
}

/* Form Row for Side-by-Side Fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group input:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
  color: #6c757d;
}

.form-group small {
  margin-top: 5px;
  color: #6c757d;
  font-size: 0.85rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  
  .profile-sidebar {
    position: static;
    order: -1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .subscription-card {
    padding: 20px;
  }
  
  .subscription-info {
    flex-direction: column;
  }
}

/* Job Alerts Styles */
.alerts-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.alert-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.alert-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.alert-card.inactive {
  opacity: 0.6;
  background: #f9f9f9;
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.alert-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px 0;
}

.alert-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.alert-status.active {
  background: #e8f5e9;
  color: #2e7d32;
}

.alert-status.inactive {
  background: #ffebee;
  color: #c62828;
}

.alert-details {
  display: grid;
  gap: 10px;
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.alert-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95em;
  color: #555;
}

.alert-detail strong {
  color: #333;
  min-width: 120px;
}

.alert-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.alert-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.2s ease;
}

.alert-btn-toggle {
  background: #4CAF50;
  color: white;
}

.alert-btn-toggle.inactive {
  background: #ff9800;
}

.alert-btn-toggle:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.alert-btn-edit {
  background: #2196F3;
  color: white;
}

.alert-btn-edit:hover {
  background: #1976D2;
}

.alert-btn-delete {
  background: #f44336;
  color: white;
}

.alert-btn-delete:hover {
  background: #d32f2f;
}

.alert-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.alert-empty-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.alert-empty h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.alert-empty p {
  margin: 0 0 20px 0;
  color: #666;
}

/* Alert Modal */
.alert-modal-content {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.85em;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.btn-primary {
  background: #4CAF50;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  padding: 10px 24px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

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

.tab-header button {
  margin-left: auto;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .alert-actions {
    flex-direction: column;
  }
  
  .alert-btn {
    width: 100%;
  }
}

/* Auto-Apply Styles */
.auto-apply-status-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.status-header h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #4CAF50;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-info {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.status-info.active {
  background: #e8f5e9;
  border-left: 4px solid #4CAF50;
}

.status-info.inactive {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
}

/* Auto-Apply Stats */
.auto-apply-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
  font-size: 2.5em;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 2em;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.stat-label {
  font-size: 0.9em;
  color: #666;
  margin-top: 4px;
}

/* Criteria Card */
.auto-apply-criteria-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auto-apply-criteria-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
  color: #333;
}

.card-description {
  color: #666;
  margin-bottom: 24px;
}

.range-value {
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
  color: #4CAF50;
  margin: 8px 0;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4CAF50;
  cursor: pointer;
  border: none;
}

/* History Card */
.auto-apply-history-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auto-apply-history-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.2em;
  color: #333;
}

.history-item {
  padding: 16px;
  border-left: 4px solid #4CAF50;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 12px;
}

.history-item.failed {
  border-left-color: #f44336;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.history-item-title {
  font-weight: 600;
  color: #333;
}

.history-item-time {
  font-size: 0.85em;
  color: #666;
}

.history-item-company {
  color: #666;
  font-size: 0.9em;
}

/* Upgrade Prompt */
.upgrade-prompt {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-bottom: 24px;
}

.upgrade-icon {
  font-size: 4em;
  margin-bottom: 16px;
}

.upgrade-prompt h3 {
  margin: 0 0 12px 0;
  font-size: 1.8em;
}

.upgrade-prompt p {
  font-size: 1.1em;
  margin-bottom: 24px;
  opacity: 0.95;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.feature-list li {
  padding: 8px 0;
  font-size: 1.05em;
}

.btn-upgrade {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.text-muted {
  color: #999;
  font-style: italic;
}

@media (max-width: 768px) {
  .auto-apply-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .upgrade-prompt {
    padding: 24px;
  }
}

/* Auto-Apply Badge in Applied Jobs */
.auto-apply-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}

.job-item.auto-applied {
  border-left: 4px solid #667eea;
}

.job-item.auto-applied:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Analytics Card */
.auto-apply-analytics-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.analytics-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.analytics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.analytics-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.analytics-value {
  font-size: 2.5em;
  font-weight: 700;
  color: #333;
  line-height: 1;
  margin-bottom: 8px;
}

.analytics-label {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.analytics-chart {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.analytics-chart h4 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Highlighted Features in Subscription Card */
.feature-highlight {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  padding: 8px 12px !important;
  border-radius: 6px;
  margin: 4px 0 !important;
  font-weight: 600 !important;
  color: #1e40af !important;
  border-left: 3px solid #2563eb !important;
}


/* ============================================
   BROWSER EXTENSION PROMO CARD
   ============================================ */

/* Compact Extension Promo Card */
.extension-promo-card-compact {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.extension-promo-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px solid #667eea;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.promo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.promo-title-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-icon {
  font-size: 2rem;
}

.promo-header h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0;
}

.badge-new {
  padding: 4px 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: pulse-glow 2s infinite;
}

.btn-dismiss-promo {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: all 0.2s;
}

.btn-dismiss-promo:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.promo-description {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
}

.extension-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
}

.benefit-icon {
  font-size: 1.1rem;
}

.extension-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.btn-download-chrome,
.btn-download-firefox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border: 2px solid #667eea;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-download-chrome:hover,
.btn-download-firefox:hover {
  background: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.btn-download-chrome:hover .btn-title,
.btn-download-chrome:hover .btn-subtitle,
.btn-download-firefox:hover .btn-title,
.btn-download-firefox:hover .btn-subtitle {
  color: white;
}

.browser-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
  text-align: left;
}

.btn-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 1rem;
  margin-bottom: 2px;
}

.btn-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

.extension-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.link-test,
.link-guide {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.link-test:hover,
.link-guide:hover {
  color: #764ba2;
  text-decoration: underline;
}

.separator {
  color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
  .extension-promo-card {
    padding: 20px;
  }
  
  .promo-title-section {
    flex-wrap: wrap;
  }
  
  .extension-benefits {
    grid-template-columns: 1fr;
  }
  
  .extension-buttons {
    grid-template-columns: 1fr;
  }
}

/* Extension Download Card in Auto-Apply Tab */
.extension-download-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 30px;
  color: white;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.extension-card-header {
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.extension-title-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.extension-icon {
  font-size: 48px;
  line-height: 1;
}

.extension-title-section h3 {
  margin: 0 0 5px 0;
  font-size: 24px;
  font-weight: 600;
}

.extension-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.extension-card-body {
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 0 0 12px 12px;
}

.extension-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.benefit-item-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.benefit-item-compact .benefit-icon {
  font-size: 16px;
}

.extension-download-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-download-ext {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: white;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-download-ext:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-download-ext .browser-icon {
  font-size: 32px;
  line-height: 1;
}

.btn-download-ext .btn-text {
  text-align: left;
}

.btn-download-ext .btn-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.btn-download-ext .btn-subtitle {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

.extension-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.link-secondary {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.link-secondary:hover {
  opacity: 1;
  text-decoration: underline;
}

.extension-links .separator {
  opacity: 0.5;
}

/* In-App Banner for Extension */
/* Compact Extension Notification */
.extension-notification-compact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  animation: slideDown 0.3s ease-out;
}

.extension-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.notification-icon {
  font-size: 18px;
}

.notification-text {
  font-size: 13px;
  line-height: 1.4;
}

.notification-text strong {
  font-weight: 600;
}

.notification-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-notification-primary {
  padding: 6px 14px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-notification-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-notification-dismiss {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-notification-dismiss:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .extension-notification-compact {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }
  
  .notification-actions {
    width: 100%;
    justify-content: center;
  }
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.banner-icon {
  font-size: 24px;
}

.banner-text h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 700;
}

.banner-text p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.95;
  line-height: 1.4;
}

.banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.btn-banner-primary {
  padding: 10px 20px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-banner-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-banner-secondary {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-banner-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-banner-dismiss {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.btn-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
  transform: scale(1.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

@media (max-width: 768px) {
  .extension-download-card {
    padding: 0;
  }
  
  .extension-card-header {
    padding: 20px;
  }
  
  .extension-card-body {
    padding: 20px;
  }
  
  .extension-benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .extension-download-buttons {
    flex-direction: column;
  }
  
  .btn-download-ext {
    min-width: 100%;
  }
  
  .extension-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .banner-content {
    flex-direction: column;
  }
  
  .banner-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-banner-primary {
    width: 100%;
  }
}


/* Compact Extension Card Styles */
.promo-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.promo-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-icon-compact {
  font-size: 24px;
  line-height: 1;
}

.promo-title-row h3 {
  font-size: 1.25rem;
  margin: 0;
  color: #1f2937;
}

.badge-pro {
  padding: 4px 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.promo-tagline {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.benefits-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.benefit-compact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: #374151;
}

.benefit-icon-compact {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.extension-cta-section {
  margin-bottom: 12px;
}

.extension-links-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.875rem;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.extension-links-compact a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.extension-links-compact a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.extension-links-compact .separator {
  color: #d1d5db;
}

/* Upgrade CTA Button */
.btn-upgrade-extension {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-upgrade-extension:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-upgrade-extension .icon {
  font-size: 1.2rem;
}

/* Download Buttons Compact */
.download-buttons-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.btn-download-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border: 2px solid #667eea;
  border-radius: 8px;
  text-decoration: none;
  color: #667eea;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-download-compact:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-download-compact .browser-icon-compact {
  font-size: 1.5rem;
}

.btn-download-compact .btn-text-compact {
  text-align: left;
  flex: 1;
}

.btn-download-compact .btn-title-compact {
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-download-compact .btn-subtitle-compact {
  font-size: 0.75rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .benefits-grid-compact {
    grid-template-columns: 1fr;
  }
  
  .download-buttons-compact {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   AUTO-APPLY CONSENT MODAL
   ============================================ */

.consent-modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.consent-header {
  text-align: center;
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.consent-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: pulse 2s infinite;
}

.consent-header h2 {
  margin: 0 0 8px 0;
  color: white;
  font-size: 1.75rem;
}

.consent-subtitle {
  margin: 0;
  opacity: 0.95;
  font-size: 1rem;
}

.consent-body {
  padding: 24px 32px;
}

.consent-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.consent-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.consent-section h3 {
  font-size: 1.1rem;
  color: #1f2937;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-text {
  color: #6b7280;
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.consent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.consent-list li {
  padding: 8px 0;
  color: #4b5563;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.consent-list li::before {
  content: "•";
  color: #667eea;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

.consent-steps {
  padding-left: 20px;
  margin: 0;
}

.consent-steps li {
  padding: 6px 0;
  color: #4b5563;
  line-height: 1.6;
}

/* Platform Chips */
.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.platform-chip {
  display: inline-block;
  padding: 6px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
}

/* Application Preview */
.application-preview {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.9rem;
}

.preview-value {
  color: #1f2937;
  font-size: 0.9rem;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Privacy Section */
.consent-privacy {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.consent-privacy h3 {
  color: #0369a1;
}

.consent-privacy .consent-list li::before {
  content: "✓";
  color: #10b981;
}

/* Learn More */
.consent-learn-more {
  text-align: center;
  margin-top: 20px;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.learn-more-link:hover {
  color: #5568d3;
  gap: 10px;
}

/* Footer */
.consent-footer {
  padding: 24px 32px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 20px;
}

.consent-checkbox input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-checkbox span {
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.95rem;
}

.consent-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 12px 24px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.btn-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #667eea;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-confirm:hover:not(:disabled) {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-confirm:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-icon {
  font-size: 1.1rem;
}

.close-consent {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
  z-index: 1;
}

.close-consent:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .consent-modal-content {
    max-width: 95%;
    margin: 20px auto;
  }
  
  .consent-header {
    padding: 24px 20px 20px;
  }
  
  .consent-body {
    padding: 20px;
  }
  
  .consent-footer {
    padding: 20px;
  }
  
  .consent-actions {
    flex-direction: column;
  }
  
  .btn-cancel,
  .btn-confirm {
    width: 100%;
    justify-content: center;
  }
  
  .preview-item {
    flex-direction: column;
    gap: 4px;
  }
  
  .preview-value {
    max-width: 100%;
    text-align: left;
  }
}

/* Upgrade Banner for Gated Features */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.upgrade-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.upgrade-banner-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.upgrade-banner-text {
  flex: 1;
}

.upgrade-banner-text h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.upgrade-banner-text p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.upgrade-banner .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .upgrade-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .upgrade-banner .btn-primary {
    width: 100%;
  }
}

/* Section Header with Action Button */
.section-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.section-header-with-action > div {
  flex: 1;
}

.section-header-with-action h3 {
  margin-bottom: 4px;
}

.section-header-with-action .section-description {
  margin-bottom: 0;
}

/* AI Generate Button */
.btn-ai-generate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
}

.btn-ai-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-ai-generate:active {
  transform: translateY(0);
}

.btn-ai-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ai-generate svg {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@media (max-width: 768px) {
  .section-header-with-action {
    flex-direction: column;
  }
  
  .btn-ai-generate {
    width: 100%;
    justify-content: center;
  }
}

/* AI button styling moved to unified section above */

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cover Letter Modal Enhancements */
.modal-content h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-content .btn-primary,
.modal-content .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Preview Button Styling */
.preview-btn {
  background: #6c757d;
  color: white;
}

.preview-btn:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Message Button Styling */
.message-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.message-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Cover Letter / AI Button Styling */
.cover-letter-btn,
.btn-ai {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cover-letter-btn:hover,
.btn-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.cover-letter-btn svg,
.btn-ai svg {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* AI Badge on Buttons */
.ai-badge-btn {
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Disabled Button States */
.btn-small:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-small:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive Button Styling */
@media (max-width: 768px) {
  .job-item-actions {
    flex-direction: column;
  }
  
  .btn-small {
    width: 100%;
    justify-content: center;
  }
}


/* Modern Profile Layout */
.profile-form-modern {
  max-width: 1400px;
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}

.profile-column-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-column-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}

.profile-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.profile-card-highlight {
  border: 2px solid #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.card-description {
  color: #6b7280;
  font-size: 13px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.file-upload-area-modern {
  text-align: center;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
}

.file-upload-button:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.file-info {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-column-side {
    position: static;
  }
}

/* Dark mode support */
[data-theme="dark"] .profile-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .card-title {
  color: var(--text-primary);
}

[data-theme="dark"] .card-description {
  color: var(--text-secondary);
}


/* Subscription Info Banner */
/* Clean Profile Header */
.profile-header-clean {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.profile-title-group h2 {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

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

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.tier-badge.tier-free {
  background: #6b7280;
}

.tier-badge.tier-pro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tier-badge.tier-premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.tier-badge.tier-enterprise {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f0fdf4;
  color: #15803d;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.status-badge .status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.profile-legend {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 13px;
  color: #6b7280;
}

.legend-note {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .profile-header-main {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-upgrade {
    width: 100%;
    justify-content: center;
  }
  
  .profile-legend {
    flex-direction: column;
    gap: 8px;
  }
}

.subscription-info-banner {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.subscription-banner-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.subscription-info-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.subscription-main-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.subscription-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}

.subscription-tier-badge.tier-free {
  background: #6b7280;
}

.subscription-tier-badge.tier-pro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subscription-tier-badge.tier-premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.subscription-tier-badge.tier-enterprise {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.subscription-details {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.separator {
  color: #d1d5db;
}

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

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-manage:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.subscription-usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.usage-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.usage-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.usage-value {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
  .subscription-info-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .subscription-actions {
    width: 100%;
  }
  
  .btn-upgrade,
  .btn-manage {
    flex: 1;
  }
}

/* Dark mode */
[data-theme="dark"] .profile-header-clean {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .profile-title-group h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .status-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

[data-theme="dark"] .profile-legend {
  border-top-color: var(--border-color);
  color: var(--text-secondary);
}

[data-theme="dark"] .subscription-info-banner {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .subscription-details {
  color: var(--text-secondary);
}

[data-theme="dark"] .usage-label {
  color: var(--text-secondary);
}

[data-theme="dark"] .usage-value {
  color: var(--text-primary);
}

[data-theme="dark"] .btn-manage {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .btn-manage:hover {
  background: var(--bg-tertiary);
}


/* Improved form label styling */
.profile-card label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.profile-card label i {
  color: #9ca3af;
  flex-shrink: 0;
}

.profile-card .form-group {
  margin-bottom: 16px;
}

.profile-card .form-group:last-child {
  margin-bottom: 0;
}

.profile-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9ca3af;
}

/* Better input styling */
.profile-card input[type="text"],
.profile-card input[type="email"],
.profile-card input[type="tel"],
.profile-card input[type="url"],
.profile-card input[type="number"],
.profile-card textarea,
.profile-card select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.profile-card input:focus,
.profile-card textarea:focus,
.profile-card select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.profile-card input:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}


/* Modern page header styling */
.tab-header-modern {
  margin-bottom: 24px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.page-title i {
  color: #667eea;
  flex-shrink: 0;
}

.page-description {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* Dark mode support */
[data-theme="dark"] .page-title {
  color: var(--text-primary);
}

[data-theme="dark"] .page-description {
  color: var(--text-secondary);
}


/* Make tab-header match card styling */
#profileTab .tab-header {
  padding: 20px;
  margin-bottom: 24px;
}

#profileTab .tab-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

#profileTab .tab-header p {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

/* Dark mode */
[data-theme="dark"] .tab-header-compact {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .tab-title-info h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .tab-subtitle {
  color: var(--text-secondary);
}

[data-theme="dark"] .count-badge {
  background: rgba(107, 114, 128, 0.2);
  color: var(--text-secondary);
}

[data-theme="dark"] .search-input-compact {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .tab-header h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .tab-header p {
  color: var(--text-secondary);
}


/* Input with icon styling */
.input-with-icon {
  position: relative;
  display: block;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
  z-index: 2;
  display: inline-block;
}

.input-with-icon-field {
  width: 100%;
  padding-left: 44px !important;
}

.input-with-icon:focus-within .input-icon {
  color: #667eea;
}

/* Dark mode */
[data-theme="dark"] .input-icon {
  color: #6b7280;
}

[data-theme="dark"] .input-with-icon:focus-within .input-icon {
  color: #667eea;
}


/* Hide skip link visually but keep for screen readers */
.skip-to-main {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-main:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: #667eea;
  color: white;
  border-radius: 6px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
