/*
 * This is a manifest file that'll be compiled into application.css.
 * 
 * Using thumb.tools exact color scheme with jobsparttimeremote.com layout
 */

/* CSS Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #220088;
  background: var(--bg-primary);
  font-size: 16px;
  min-height: 100vh;
}

/* CSS Custom Properties - EXACT thumb.tools colors */
:root {
  --savoy-blue: #4B61D1;
  --orbital-kingdom: #220088;
  --persian-pink: #F77FBE;
  --dusty-plum: #D7D0E1;
  --metropolitan-white: #EEECE7;
  --true-purple: #65318E;
  --bg-primary: #EEECE7;
  --bg-secondary: #F8F7F4;
  --text-primary: #220088;
  --text-secondary: #65318E;
  --border-color: #D7D0E1;
  --card-bg: #FFFFFF;
  --max-width: 1200px;
}

/* Layout Foundation */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header - Clean and minimal like jobsparttimeremote */
.header {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  background: rgba(238, 236, 231, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--savoy-blue);
  text-decoration: none;
}

.site-name:hover {
  color: var(--orbital-kingdom);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Dropdown Styling - Scoped to header */
.header .dropdown {
  position: relative;
  display: inline-block;
}

.header .nav-dropdown {
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.header .nav-dropdown:hover {
  background: var(--card-bg);
  border-color: var(--savoy-blue);
  color: var(--text-primary);
}

.header .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.header .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header .dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.header .dropdown-menu a:last-child {
  border-bottom: none;
}

.header .dropdown-menu a:hover {
  background: var(--bg-primary);
  color: var(--savoy-blue);
}

.header .dropdown-menu a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.header .dropdown-menu a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Navigation Links - Scoped to header */
.header .nav-link {
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--savoy-blue), var(--true-purple));
  color: white;
}

.header .nav-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75, 97, 209, 0.3);
}

/* Main Content Area */
.main-content {
  min-height: calc(100vh - 180px);
  padding: 0 0 2rem 0; /* prevent margin-collapsing gap above footer */
  background: var(--bg-primary);
}

/* Hero Section */
.hero {
  padding: 2.5rem 0 3.5rem 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  padding: 0 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  padding: 0 1rem;
}

/* Content Sections */
.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Tool Cards */
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--savoy-blue);
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tool-logo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  background: var(--dusty-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--orbital-kingdom);
  object-fit: cover;
}

.tool-logo img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.tool-info {
  flex-grow: 1;
}

.tool-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.tool-info .tool-author {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tool-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.75rem 0 0.25rem;
}

.tool-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tool-tag {
  padding: 0.4rem 0.85rem;
  background: rgba(75, 97, 209, 0.15);
  color: var(--savoy-blue);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--savoy-blue), var(--true-purple));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75, 97, 209, 0.3);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: var(--savoy-blue);
}

/* Category Navigation */
.category-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.category-nav .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 1.5rem 0;
  text-align: center;
  color: var(--text-secondary);
}

.footer p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

/* Creator Pill */
.creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.creator-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--text-primary);
}

.creator-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
    padding: 0 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    padding: 0 0.5rem;
  }
  
  .site-name {
    display: none;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-nav {
    gap: 0.5rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-form {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .search-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 1rem;
    width: 100%;
    max-width: none;
  }
  
  .search-container {
    padding: 0 0.5rem;
    max-width: none;
  }
  
  .filter-bar {
    padding: 0 0.5rem;
    max-width: none;
  }
  
  .search-button {
    border-radius: 12px;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  .search-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero {
    overflow-x: hidden;
  }
  
  .main-content {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 2.5rem 0 2rem 0;
  }
  
  .hero-title {
    font-size: 1.875rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .tool-card {
    padding: 1.25rem;
  }
  
  .search-container {
    margin-bottom: 1.5rem;
  }
  
  .pricing-toggle {
    flex-direction: column;
  }
  
  .toggle-btn {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .toggle-btn:last-child {
    border-bottom: none;
  }
}

/* Tool Show Page Styles */
.tool-breadcrumb {
  margin-bottom: 1.5rem;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.back-link:hover {
  color: var(--text-primary);
}

.tool-page {
  background: var(--bg-primary);
  padding: 1.5rem 0 0 0;
  min-height: auto;
}

.tool-page .tool-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.tool-page .tool-logo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 16px;
  background: var(--dusty-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 2rem;
  color: var(--orbital-kingdom);
}

.tool-page .tool-logo img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.tool-meta {
  flex: 1;
}

.tool-meta h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.tool-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 1rem;
  font-weight: 400;
}

.tool-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 193, 7, 0.1);
  color: #F59E0B;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  margin-right: 0.75rem;
}

.tool-page .tool-tags {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tool-page .tool-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(75, 97, 209, 0.15);
  color: var(--savoy-blue);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tool-pricing-tags {
  display: inline-flex;
  gap: 0.5rem;
}

.pricing-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.tool-page-content {
  background: var(--bg-primary);
  padding: 1.5rem 0 3rem 0;
}

.tool-content-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  margin: 0;
}

.tool-content-card h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.tool-content-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.tool-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Ensure btn-primary styling works everywhere */
.btn-primary {
  background: linear-gradient(135deg, var(--savoy-blue), var(--true-purple));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(75, 97, 209, 0.3);
  color: white;
  text-decoration: none;
}

/* Search Section - jobsparttimeremote.com style */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.search-form {
  display: flex;
  gap: 0;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.search-form:focus-within {
  border-color: var(--savoy-blue);
  box-shadow: 0 4px 25px rgba(75, 97, 209, 0.15);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.search-button {
  background: linear-gradient(135deg, var(--savoy-blue), var(--true-purple));
  color: white;
  border: none;
  border-radius: 40px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(75, 97, 209, 0.3);
}

.search-suggestion {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Filter Bar */
.filter-bar {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.filter-form {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-dropdown {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--savoy-blue);
  box-shadow: 0 0 0 3px rgba(75, 97, 209, 0.1);
}

.pricing-toggle {
  display: flex;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.toggle-btn {
  padding: 0.75rem 1rem;
  background: white;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid var(--border-color);
}

.toggle-btn:last-child {
  border-right: none;
}

.toggle-btn:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.toggle-btn.active {
  background: var(--savoy-blue);
  color: white;
}

/* Responsive adjustments for tool show page */
@media (max-width: 768px) {
  .tool-page .tool-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    align-items: center;
  }
  
  .tool-meta h1 {
    font-size: 2rem;
  }
  
  .tool-page-content {
    padding: 1.5rem;
  }
  
  .tool-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tool-page .tool-header {
    padding: 1.5rem;
  }
  
  .tool-page .tool-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.5rem;
  }
  
  .tool-meta h1 {
    font-size: 1.75rem;
  }
  
  .tool-tagline {
    font-size: 1rem;
  }
  
  .tool-page-content {
    padding: 1.25rem;
  }
  
  .tool-page-content h2 {
    font-size: 1.5rem;
  }
  
  .tool-page-content p {
    font-size: 1rem;
  }
}

/* ========================================
   ADMIN/DASHBOARD SPECIFIC STYLES
   ======================================== */

/* Admin page container to limit width */
.tools_page.admin-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Auth pages (login, password reset, etc.) */
.auth-page {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(34, 0, 136, 0.1);
}

.auth-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--orbital-kingdom);
    font-size: 1.875rem;
    font-weight: 700;
}

/* Page Header with stats */
.page-header {
    margin-bottom: 2rem;
}

/* Dashboard Stats Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(34, 0, 136, 0.1);
}

.info-card h3 {
    font-size: 2rem;
    color: var(--savoy-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Data Tables */
.data-table-container {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(34, 0, 136, 0.1);
}

.data-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-secondary);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--orbital-kingdom);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.875rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table td:nth-child(1) { /* Name */
    max-width: 150px;
    font-weight: 600;
}

.data-table td:nth-child(2) { /* Rating */
    max-width: 80px;
    text-align: center;
}

.data-table td:nth-child(3) { /* URL */
    max-width: 180px;
}

.data-table td:nth-child(4) { /* Tagline */
    max-width: 200px;
}

.data-table td:nth-child(5) { /* Description */
    max-width: 250px;
}

.data-table td:nth-child(6) { /* Tags */
    max-width: 150px;
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

.table-actions {
    white-space: nowrap;
    min-width: 140px;
    text-align: right;
}

.table-actions .btn {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

/* Form Styling */
.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--orbital-kingdom);
    font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--card-bg);
    transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--savoy-blue);
    box-shadow: 0 0 0 3px rgba(75, 97, 209, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.form-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

/* Tag Categories */
.tag-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tag-category h4 {
    color: var(--orbital-kingdom);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

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

/* Admin Mobile Responsiveness */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table-container {
        overflow-x: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .tag-categories {
        grid-template-columns: 1fr;
    }
    
    .auth-page {
        max-width: 350px;
        margin: 2rem auto;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-page {
        max-width: 320px;
        margin: 1.5rem auto;
        padding: 1.25rem;
    }
    
    .auth-page h1 {
        font-size: 1.5rem;
    }
}

/* Error pages (404, etc.) */
.error-page {
    text-align: center;
    margin: 4rem auto;
    max-width: 500px;
    padding: 2rem;
}

.error-page h1 {
    font-size: 2.5rem;
    color: var(--orbital-kingdom);
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-page p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}