/* Component Styles - Replace Inline CSS */

/* Header Styles */
.header-navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 9998;
  padding: var(--spacing-3) 0;
  font-family: var(--font-family-primary);
}

.header-brand {
  margin-right: 2rem;
}

.header-brand-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: var(--font-size-2xl);
  line-height: 1.2;
  font-family: var(--font-family-primary);
}

.header-brand-subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: var(--font-family-primary);
}

.header-nav-links {
  gap: var(--spacing-2);
  align-items: center;
  flex: 1;
}

.header-nav-links .nav-link {
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: transparent;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.header-nav-links .nav-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.header-nav-links .nav-link.active {
  color: var(--white);
  font-weight: 600;
  background-color: var(--primary-color);
}

.header-nav-link {
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  background-color: transparent;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
}

.header-nav-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.header-nav-link.active {
  color: var(--white);
  font-weight: 600;
  background-color: var(--primary-color);
}

.header-right-actions {
  gap: var(--spacing-4);
  align-items: center;
  margin-left: auto;
}

.header-right-actions .nav-item {
  display: flex;
  align-items: center;
}

.header-quick-actions-btn {
  font-size: var(--font-size-sm);
  padding: var(--spacing-3) var(--spacing-4);
  font-weight: 500;
  border-radius: var(--border-radius);
  border: 2px solid var(--gray-300);
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
}

.header-quick-actions-btn:hover {
  background-color: var(--gray-100);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Ensure Tools dropdown uses same styling as Quick Actions */
.header-quick-actions-btn.active {
  color: var(--white);
  font-weight: 600;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.header-dropdown-menu {
  min-width: 220px;
  margin-top: var(--spacing-2);
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: var(--spacing-2);
}

.header-dropdown-item {
  padding: var(--spacing-2) var(--spacing-3);
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
  display: block;
}

.header-dropdown-item:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.header-user-info {
  text-align: right;
}

.header-user-name {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
  font-family: var(--font-family-primary);
}

.header-user-email {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.2;
  font-family: var(--font-family-primary);
}

.header-logout-btn {
  font-size: var(--font-size-sm);
  padding: var(--spacing-3) var(--spacing-4);
  font-weight: 500;
  border-radius: var(--border-radius);
  border: 2px solid var(--gray-400);
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
}

.header-logout-btn:hover {
  background-color: var(--gray-600);
  color: var(--white);
  border-color: var(--gray-600);
}

/* Login Button */
.header-login-btn {
  background: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: var(--font-family-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-login-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.header-mobile-toggle {
  border: none;
  padding: var(--spacing-2);
  margin-left: var(--spacing-4);
  border-radius: var(--border-radius);
  background-color: transparent;
  color: var(--text-primary);
}

.header-mobile-menu {
  border-top: 1px solid var(--gray-200);
  padding: var(--spacing-4) 0;
  background-color: var(--surface);
}

.header-mobile-nav-link {
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: var(--border-radius-lg);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.2s ease;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
}

.header-mobile-nav-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.header-mobile-nav-link.active {
  color: var(--white);
  font-weight: 600;
  background-color: var(--primary-color);
}

.header-mobile-section-title {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 600;
  padding: var(--spacing-2) var(--spacing-4);
  font-family: var(--font-family-primary);
}

.header-mobile-divider {
  height: 1px;
  background-color: var(--gray-200);
  margin: var(--spacing-3) 0;
}

/* Footer Styles */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--gray-200);
  padding: var(--spacing-6) 0;
  margin-top: auto;
  font-family: var(--font-family-primary);
  box-shadow: var(--shadow-sm);
}

.footer-brand {
  color: var(--primary-color);
  font-weight: 600;
  font-size: var(--font-size-lg);
  font-family: var(--font-family-primary);
}

.footer-brand-subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-left: var(--spacing-2);
  font-family: var(--font-family-primary);
}

.footer-description {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  font-family: var(--font-family-primary);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-3);
  font-family: var(--font-family-primary);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
}

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

.footer-copyright {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: var(--font-size-xs);
  font-family: var(--font-family-primary);
}

/* Dashboard Layout Styles */
.dashboard-header-card {
  border: none;
  box-shadow: var(--shadow-sm);
  background-color: var(--surface);
  border-radius: var(--border-radius-lg);
  font-family: var(--font-family-primary);
}

.dashboard-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-2);
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-family-primary);
}

.dashboard-subtitle {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  font-family: var(--font-family-primary);
}

.dashboard-header-actions {
  display: flex;
  gap: var(--spacing-3);
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-add-expense-btn {
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--font-size-sm);
  border-radius: var(--border-radius);
  font-family: var(--font-family-primary);
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
}

.dashboard-main-grid {
  margin-top: var(--spacing-6);
}

.dashboard-sidebar-card {
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-lg);
  height: fit-content;
  font-family: var(--font-family-primary);
  background-color: var(--surface);
}

.dashboard-card-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--spacing-4) var(--spacing-5);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.dashboard-card-title {
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--font-size-base);
  font-family: var(--font-family-primary);
}

.dashboard-icon {
  color: var(--primary-color);
}

.dashboard-section-title {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-3);
  font-family: var(--font-family-primary);
}

.dashboard-divider {
  margin: 1.5rem 0;
  border-color: var(--gray-200);
  opacity: 0.5;
}

.dashboard-card-body {
  padding: var(--spacing-3);
}

.dashboard-summary-card {
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-lg);
  height: 100%;
  font-family: var(--font-family-primary);
  background-color: var(--surface);
}

.dashboard-summary-card-body {
  text-align: center;
  padding: var(--spacing-4);
}

.dashboard-chart-card {
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-lg);
  height: 100%;
  font-family: var(--font-family-primary);
  background-color: var(--surface);
}

.dashboard-chart-card-body {
  padding: var(--spacing-3);
}

.dashboard-quick-action-btn {
  border-radius: var(--border-radius);
  font-family: var(--font-family-primary);
}

.dashboard-quick-action-btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
}

.dashboard-quick-action-btn-outline-primary {
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
}

.dashboard-quick-action-btn-outline-secondary {
  border: 2px solid var(--secondary-color);
  background-color: transparent;
  color: var(--secondary-color);
}

.dashboard-quick-action-btn-outline-info {
  border: 2px solid var(--info-color);
  background-color: transparent;
  color: var(--info-color);
}

/* Settings Component Styles */
.settings-dropdown {
  position: relative;
  z-index: 9999;
}

/* Dropdown positioning fixes */
.dropdown {
  position: relative;
}

.dropdown-menu {
  z-index: 9999 !important;
}

.dropdown-menu.show {
  z-index: 9999 !important;
}

.settings-btn {
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--spacing-3) var(--spacing-4);
  transition: all 0.2s ease;
}

.settings-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 250px;
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: var(--spacing-2);
  z-index: 9999;
  margin-top: var(--spacing-2);
}

.settings-section {
  padding: var(--spacing-2);
}

.settings-section-title {
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-2);
  padding: var(--spacing-2);
  border-bottom: 1px solid var(--gray-200);
}

.settings-dropdown-item {
  display: block;
  padding: var(--spacing-2) var(--spacing-3);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

.settings-dropdown-item:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.settings-divider {
  margin: var(--spacing-2) 0;
  border-color: var(--gray-200);
  opacity: 0.5;
}

/* Form Styles */
.form-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--spacing-1);
  font-family: var(--font-family-primary);
}

.form-control {
  font-size: var(--font-size-sm);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-family: var(--font-family-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Button Styles */
.btn {
  font-family: var(--font-family-primary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  border-radius: var(--border-radius);
  padding: var(--spacing-3) var(--spacing-5);
  border: none;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: var(--hover-transform);
  box-shadow: var(--hover-shadow);
}

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

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline-info {
  background-color: transparent;
  color: var(--info-color);
  border: 2px solid var(--info-color);
}

.btn-sm {
  padding: var(--spacing-2) var(--spacing-3);
  font-size: var(--font-size-xs);
}

/* Card Styles */
.card {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  font-family: var(--font-family-primary);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: var(--hover-transform);
}

/* Table Styles */
.table {
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.table-header {
  background-color: var(--gray-50);
  color: var(--text-primary);
}

.table-row {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition-fast);
}

.table-row:hover {
  background-color: var(--gray-50);
}

.table-cell {
  padding: var(--spacing-4) var(--spacing-5);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  border: none;
}

.table-cell-muted {
  color: var(--text-muted);
}

/* Pagination Styles */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: var(--border-radius);
}

.page-link {
  position: relative;
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: var(--font-family-primary);
  transition: all var(--transition-fast);
}

.page-link:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.page-item.disabled .page-link {
  color: var(--text-muted);
  pointer-events: none;
  background-color: var(--surface);
  border-color: var(--gray-200);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-end {
  justify-content: flex-end;
}

.gap-2 {
  gap: var(--spacing-2);
}

.gap-3 {
  gap: var(--spacing-3);
}

.gap-4 {
  gap: var(--spacing-4);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: var(--spacing-2);
}

.mb-3 {
  margin-bottom: var(--spacing-3);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mt-3 {
  margin-top: var(--spacing-3);
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.me-2 {
  margin-right: var(--spacing-2);
}

.me-3 {
  margin-right: var(--spacing-3);
}

.ms-2 {
  margin-left: var(--spacing-2);
}

.p-3 {
  padding: var(--spacing-3);
}

.p-4 {
  padding: var(--spacing-4);
}

.px-3 {
  padding-left: var(--spacing-3);
  padding-right: var(--spacing-3);
}

.px-4 {
  padding-left: var(--spacing-4);
  padding-right: var(--spacing-4);
}

.py-2 {
  padding-top: var(--spacing-2);
  padding-bottom: var(--spacing-2);
}

.py-3 {
  padding-top: var(--spacing-3);
  padding-bottom: var(--spacing-3);
}

.py-4 {
  padding-top: var(--spacing-4);
  padding-bottom: var(--spacing-4);
}

/* Responsive Classes */
@media (max-width: 991.98px) {
  .d-lg-none {
    display: block !important;
  }
  
  .d-lg-flex {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .d-lg-none {
    display: none !important;
  }
  
  .d-lg-flex {
    display: flex !important;
  }
}

/* Unified Layout Styles */
.unified-layout {
  background-color: var(--background);
  font-family: var(--font-family-primary);
  min-height: 100vh;
}

.unified-main-content {
  padding: var(--spacing-6) 0;
  min-height: calc(100vh - 80px);
  background-color: var(--background);
}

.unified-container {
  max-width: 1400px;
  padding: 0 var(--spacing-4);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .header-navbar {
    background-color: var(--surface);
    border-bottom-color: var(--gray-200);
  }
  
  .footer {
    background-color: var(--surface);
    border-top-color: var(--gray-200);
  }
  
  .dashboard-header-card,
  .dashboard-sidebar-card,
  .dashboard-summary-card,
  .dashboard-chart-card {
    background-color: var(--surface);
  }
  
  .unified-layout,
  .unified-main-content {
    background-color: var(--background);
  }
}

/* String Tools Styles */
.string-index-header {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.string-index-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-2);
}

.string-index-subtitle {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.string-tool-card {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.string-tool-card:hover {
  transform: var(--hover-transform);
  box-shadow: var(--hover-shadow);
}

.string-tool-card-primary {
  border-left: 4px solid var(--primary-color);
}

.string-tool-card-success {
  border-left: 4px solid var(--success-color);
}

.string-tool-card-info {
  border-left: 4px solid var(--info-color);
}

.string-tool-card-warning {
  border-left: 4px solid var(--warning-color);
}

.string-tool-card-secondary {
  border-left: 4px solid var(--secondary-color);
}

.string-tool-card-danger {
  border-left: 4px solid var(--danger-color);
}

.string-tool-card-dark {
  border-left: 4px solid var(--dark-color);
}

.string-tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 24px;
  color: var(--white);
}

.string-tool-icon-primary {
  background-color: var(--primary-color);
}

.string-tool-icon-success {
  background-color: var(--success-color);
}

.string-tool-icon-info {
  background-color: var(--info-color);
}

.string-tool-icon-warning {
  background-color: var(--warning-color);
}

.string-tool-icon-secondary {
  background-color: var(--secondary-color);
}

.string-tool-icon-danger {
  background-color: var(--danger-color);
}

.string-tool-icon-dark {
  background-color: var(--dark-color);
}

.string-tool-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-2);
}

.string-tool-description {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.string-features-card {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.string-features-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-4);
}

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

.string-features-list li {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-2);
  display: flex;
  align-items: center;
}

.string-features-list li i {
  color: var(--success-color);
  margin-right: var(--spacing-2);
}

/* String Page Styles */
.string-page-header {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-4);
}

.string-page-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-2);
}

.string-page-subtitle {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.string-input-card,
.string-output-card,
.string-stats-card,
.string-samples-card,
.string-options-card,
.string-search-card,
.string-analysis-card,
.string-frequency-card,
.string-actions-card,
.string-info-card {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.string-textarea {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  resize: vertical;
}

.string-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.string-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.string-stat-label {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.string-stat-value {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
}

.string-analysis-item {
  margin-bottom: var(--spacing-3);
}

.string-analysis-label {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--spacing-1);
}

.string-analysis-value {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  word-break: break-all;
}

.string-frequency-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.string-frequency-word,
.string-frequency-char {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.string-frequency-count {
  color: var(--primary-color);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  background-color: var(--gray-100);
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--border-radius-sm);
}

.string-option-item {
  padding: var(--spacing-3);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  background-color: var(--gray-50);
  transition: all var(--transition-fast);
}

.string-option-item:hover {
  background-color: var(--gray-100);
  border-color: var(--primary-color);
}

.string-option-item .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.string-info-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-4);
}

.string-case-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: var(--spacing-3);
  background-color: var(--gray-50);
  margin-bottom: var(--spacing-2);
}

.string-case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-2);
}

.string-case-label {
  flex: 1;
}

.string-case-result {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  background-color: var(--white);
  padding: var(--spacing-2);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-200);
  word-break: break-all;
  min-height: 40px;
  display: flex;
  align-items: center;
}

/* String Splitter and Joiner Styles */
.string-split-results {
  max-height: 400px;
  overflow-y: auto;
}

.string-split-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-2);
  background-color: var(--gray-50);
}

.string-split-index {
  background-color: var(--primary-color);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  flex-shrink: 0;
}

.string-split-content {
  flex: 1;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  word-break: break-all;
}

.string-input-list {
  max-height: 300px;
  overflow-y: auto;
}

.string-input-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  margin-bottom: var(--spacing-2);
}

.string-preview {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: var(--spacing-3);
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  min-height: 60px;
  word-break: break-all;
}

/* Color Variables for String Tools */
:root {
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --dark-color: #343a40;
}

/* Homepage Styles */
.hero-section {
  background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-family: var(--font-family-primary);
}

.hero-title-highlight {
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.hero-stat-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.hero-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-family: var(--font-family-primary);
}

.hero-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-family-primary);
}

/* Hero Button Styles */
.hero-btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-primary);
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-primary);
}

.hero-btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-family-primary);
}

.hero-btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-illustration {
  width: 100%;
  max-width: 500px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card-1::before {
  background: linear-gradient(90deg, var(--primary-color), #4CAF50);
}

.stat-card-2::before {
  background: linear-gradient(90deg, var(--secondary-color), #FF9800);
}

.stat-card-3::before {
  background: linear-gradient(90deg, #2196F3, #9C27B0);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.stat-card-1 .stat-icon {
  color: var(--primary-color);
}

.stat-card-2 .stat-icon {
  color: var(--secondary-color);
}

.stat-card-3 .stat-icon {
  color: #2196F3;
}

.stat-content {
  color: var(--text-primary);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* Feature Cards */
.feature-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.feature-card-primary::before {
  background: var(--primary-color);
}

.feature-card-success::before {
  background: var(--success-color);
}

.feature-card-warning::before {
  background: var(--warning-color);
}

.feature-card-info::before {
  background: var(--info-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.feature-link:hover {
  color: var(--primary-dark);
}

/* Tool Category Cards */
.tool-category {
  margin-bottom: 3rem;
}

.tool-category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.tool-category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.tool-category-primary {
  background: var(--primary-color);
}

.tool-category-success {
  background: var(--success-color);
}

.tool-category-warning {
  background: var(--warning-color);
}

.tool-category-danger {
  background: var(--danger-color);
}

.tool-category-info {
  background: var(--info-color);
}

.tool-category-secondary {
  background: var(--secondary-color);
}

.tool-category-content {
  flex: 1;
}

.tool-category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.tool-category-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: var(--font-family-primary);
}

.tool-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

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

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.tool-arrow {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-arrow {
  transform: translateX(5px);
  color: var(--primary-color);
}

.tool-card-content {
  flex: 1;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.tool-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: var(--font-family-primary);
}

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

.tool-feature-tag {
  background: var(--background);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  font-family: var(--font-family-primary);
}

.tool-category-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
}

.tool-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.tool-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tool-name {
  font-size: 0.8rem;
  text-align: center;
  font-weight: 500;
}

/* Stats Section */
.stats-section {
  background: var(--surface);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Calculator Styles */
.calculator-page-header {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.calculator-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calculator-page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

.calculator-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all 0.3s ease;
}

.calculator-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.calculator-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calculator-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.calculator-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.calculator-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.calculator-features {
  margin-bottom: 2rem;
}

.calculator-features h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.feature-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.calculator-actions {
  text-align: center;
}

.calculator-tips-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.tips-title {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.calculator-tips-card h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.calculator-tips-card ul {
  color: var(--text-secondary);
  padding-left: 1.5rem;
}

.calculator-tips-card li {
  margin-bottom: 0.5rem;
}

/* Calculator Styles */
.simple-calculator,
.scientific-calculator {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.calculator-display {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  text-align: right;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.display-expression {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 20px;
  margin-bottom: 0.5rem;
}

.expression-text {
  font-family: 'Courier New', monospace;
}

.display-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.display-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.angle-mode {
  font-weight: 500;
}

.memory-indicator {
  color: var(--primary-color);
  font-weight: 600;
}

.calculator-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.calc-btn {
  padding: 1rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-primary);
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.calc-btn-number {
  background: var(--background);
  color: var(--text-primary);
}

.calc-btn-number:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.calc-btn-operator {
  background: var(--warning-color);
  color: white;
  border-color: var(--warning-color);
}

.calc-btn-operator:hover {
  background: var(--warning-dark);
  border-color: var(--warning-dark);
}

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

.calc-btn-equals:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.calc-btn-secondary {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.calc-btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.calc-btn-function {
  background: var(--info-color);
  color: white;
  border-color: var(--info-color);
  font-size: 0.8rem;
}

.calc-btn-function:hover {
  background: var(--info-dark);
  border-color: var(--info-dark);
}

.calc-btn-memory {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
  font-size: 0.8rem;
}

.calc-btn-memory:hover {
  background: var(--success-dark);
  border-color: var(--success-dark);
}

/* Calculator Button Content Layout */
.calc-btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.calc-btn-main {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.calc-btn-shortcut {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1;
  color: inherit;
}

.angle-mode-toggle {
  text-align: center;
}

.angle-mode-toggle .btn-group {
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.angle-mode-toggle .btn {
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.calculator-info {
  margin-top: 2rem;
}

.info-card {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.info-card h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.info-card h6 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.info-card li {
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  position: relative;
}

.info-card li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Responsive adjustments for calculators */
@media (max-width: 768px) {
  .button-row {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .calc-btn {
    padding: 0.75rem 0.25rem;
    font-size: 0.9rem;
    min-height: 45px;
  }
  
  .display-value {
    font-size: 1.5rem;
  }
  
  .simple-calculator,
  .scientific-calculator {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .button-row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .calc-btn {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
    min-height: 40px;
  }
  
  .display-value {
    font-size: 1.25rem;
  }
}

/* Login Styles */
.login-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.login-card {
  background: var(--surface);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.login-body {
  padding: 2.5rem 2rem;
}

.login-success-alert {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: var(--font-family-primary);
  font-size: 0.875rem;
  border-left: 4px solid var(--success-color);
}

.login-form {
  width: 100%;
}

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

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

.form-label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.form-input {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-family-primary);
  background: var(--background);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

.login-actions {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-xl);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  min-width: 200px;
  cursor: pointer;
}

.login-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
  opacity: 0.7;
}

.login-button:disabled:hover {
  background: var(--text-muted);
  transform: none;
  box-shadow: var(--shadow-sm);
}

.form-input:disabled {
  background-color: var(--bg-secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Alert animations */
.alert {
  animation: slideInDown 0.3s ease-out;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: none;
  padding: 1rem 1.25rem;
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border-left: 4px solid #198754;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

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

/* Social Login Styles - Clean Design */
.login-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.2);
}

.login-icon {
  font-size: 2rem;
  color: white;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.error-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #f8d7da;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.error-icon-wrapper i {
  font-size: 1.5rem;
}

.social-provider-button {
  width: 100%;
  padding: 16px 24px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: white;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 16px;
  text-decoration: none;
}

.social-provider-button:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text-primary);
}

.social-provider-button:active {
  transform: translateY(0);
}

.social-provider-button .provider-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-provider-button .provider-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.2rem;
}

.social-provider-button .provider-name {
  font-weight: 600;
}

.social-provider-button .provider-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-provider-button:hover .provider-arrow {
  transform: translateX(4px);
  color: var(--primary-color);
}

/* Provider-specific styles */
.social-provider-button.google {
  border-color: #ea4335;
  color: #ea4335;
}

.social-provider-button.google:hover {
  background: #ea4335;
  color: white;
  border-color: #ea4335;
}

.social-provider-button.google .provider-icon {
  background: #ea4335;
  color: white;
}

.social-provider-button.facebook {
  border-color: #1877f2;
  color: #1877f2;
}

.social-provider-button.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.social-provider-button.facebook .provider-icon {
  background: #1877f2;
  color: white;
}

.social-provider-button.github {
  border-color: #333;
  color: #333;
}

.social-provider-button.github:hover {
  background: #333;
  color: white;
  border-color: #333;
}

.social-provider-button.github .provider-icon {
  background: #333;
  color: white;
}

/* Loading states */
.social-provider-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.social-provider-button.loading .provider-arrow {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Social Login Skeleton Styles */
.social-login-skeleton {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton-header {
  margin-bottom: 40px;
}

.skeleton-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.skeleton-icon {
  width: 80px;
  height: 80px;
  background: #e2e8f0;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-text-large {
  width: 200px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-text-medium {
  width: 300px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 6px;
  margin: 0 auto;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-providers {
  margin-bottom: 30px;
}

.skeleton-provider-item {
  margin-bottom: 16px;
}

.skeleton-provider-button {
  width: 100%;
  height: 60px;
  background: #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-provider-icon {
  width: 24px;
  height: 24px;
  background: #cbd5e0;
  border-radius: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-provider-text {
  width: 120px;
  height: 16px;
  background: #cbd5e0;
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-provider-arrow {
  width: 16px;
  height: 16px;
  background: #cbd5e0;
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
}

.skeleton-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-or-text {
  width: 60px;
  height: 16px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 0 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-alternative {
  margin-bottom: 30px;
}

.skeleton-alternative-button {
  width: 100%;
  height: 50px;
  background: #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-alternative-icon {
  width: 20px;
  height: 20px;
  background: #cbd5e0;
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-alternative-text {
  width: 100px;
  height: 16px;
  background: #cbd5e0;
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-footer {
  text-align: center;
}

.skeleton-footer-text {
  width: 200px;
  height: 16px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 0 auto;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive design */
@media (max-width: 768px) {
  .social-login-card {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .social-login-title {
    font-size: 2rem;
  }
  
  .social-login-logo {
    width: 60px;
    height: 60px;
  }
  
  .social-login-logo i {
    font-size: 1.5rem;
  }
}

.login-footer {
  text-align: center;
}

.login-footer-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  font-family: var(--font-family-primary);
}

.login-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--primary-dark);
}

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

.login-page-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.login-page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

/* Social Login Styles */
.social-login-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.social-login-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.social-login-body {
  padding: var(--spacing-6);
}

.social-providers-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.social-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--spacing-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  background-color: transparent;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: var(--font-family-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.social-provider-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.social-provider-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Login Icon Styles */
.login-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  margin: 0 auto;
}

.login-icon {
  font-size: 2rem;
  color: var(--white);
}

/* Error Icon Styles */
.error-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: var(--danger-light);
  border-radius: 50%;
  margin: 0 auto;
}

.error-icon-wrapper i {
  font-size: 1.5rem;
  color: var(--danger);
}

/* Responsive adjustments for login */
@media (max-width: 768px) {
  .login-container {
    padding: 1rem;
  }
  
  .login-body {
    padding: 2rem 1.5rem;
  }
  
  .login-page-title {
    font-size: 2rem;
  }
  
  .social-login-container {
    max-width: 100%;
  }
  
  .social-login-body {
    padding: var(--spacing-4);
  }
}

@media (max-width: 576px) {
  .login-body {
    padding: 1.5rem 1rem;
  }
  
  .login-page-title {
    font-size: 1.75rem;
  }
  
  .form-row {
    gap: 1rem;
  }
}

/* Todo Styles */
.todo-page-header {
  margin-bottom: 2rem;
}

.todo-page-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.todo-page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.todo-add-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.todo-add-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.todo-stat-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.todo-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.todo-stat-icon.total {
  background: var(--primary-color);
}

.todo-stat-icon.pending {
  background: var(--warning-color);
}

.todo-stat-icon.completed {
  background: var(--success-color);
}

.todo-stat-icon.overdue {
  background: var(--danger-color);
}

.todo-stat-content {
  flex: 1;
}

.todo-stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
}

.todo-stat-label {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.875rem;
  font-family: var(--font-family-primary);
}

.todo-section-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.todo-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.todo-section-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.todo-view-all-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.todo-view-all-link:hover {
  color: var(--primary-dark);
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: var(--background);
  transition: all 0.2s ease;
}

.todo-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-color);
}

.todo-item.completed {
  opacity: 0.7;
  background: var(--gray-50);
}

.todo-item-content {
  flex: 1;
}

.todo-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.todo-item-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.todo-item.completed .todo-item-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.todo-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.todo-priority {
  font-weight: 500;
}

.todo-due-date {
  font-weight: 500;
}

.todo-item-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

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

.todo-edit-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.todo-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.todo-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gray-400);
}

.todo-empty-state h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.todo-empty-state p {
  margin-bottom: 1.5rem;
  font-family: var(--font-family-primary);
}

.todo-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.todo-quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-family-primary);
}

.todo-quick-action:hover {
  background: var(--background);
  color: var(--primary-color);
  transform: translateX(5px);
}

.todo-quick-action i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.todo-overdue-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.todo-overdue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.todo-overdue-content {
  flex: 1;
}

.todo-overdue-title {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: var(--font-family-primary);
}

.todo-overdue-date {
  color: var(--danger-color);
  font-size: 0.75rem;
  font-weight: 500;
}

.todo-overdue-more {
  text-align: center;
  padding: 0.5rem;
}

.todo-filters-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.todo-list-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.todo-table {
  width: 100%;
}

.todo-table-header {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1rem;
}

.todo-table-row {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 1fr 1fr 120px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.todo-table-header .todo-table-row {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
}

.todo-table-body .todo-table-row:hover {
  background: var(--background);
  border-radius: var(--border-radius);
}

.todo-table-row.completed {
  opacity: 0.7;
  background: var(--gray-50);
}

.todo-table-cell {
  padding: 0.5rem;
}

.todo-status-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.todo-status-btn:hover {
  background: var(--background);
  transform: scale(1.1);
}

.todo-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.todo-title {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.todo-description {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

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

.todo-form-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.todo-form-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.todo-tips-card {
  background: var(--background);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.todo-tips-card h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.todo-tips-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.todo-tips-list li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--font-family-primary);
}

.todo-tips-list li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.todo-info-card {
  background: var(--background);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.todo-info-card h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.todo-info-card p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.todo-summary {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  border: 1px solid var(--border-color);
}

/* Responsive adjustments for todo */
@media (max-width: 768px) {
  .todo-table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .todo-table-header {
    display: none;
  }
  
  .todo-table-cell {
    padding: 0.25rem 0;
  }
  
  .todo-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .todo-item-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .todo-page-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .todo-stat-card {
    padding: 1rem;
  }
  
  .todo-stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .todo-stat-number {
    font-size: 1.5rem;
  }
  
  .todo-page-title {
    font-size: 1.75rem;
  }
  
  .todo-form-card {
    padding: 1.5rem;
  }
}

/* JSON Tools Styles */
.json-page-header {
  margin-bottom: 2rem;
}

.json-page-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.json-page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.json-tool-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  height: 100%;
}

.json-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

.json-tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.json-tool-primary {
  background: var(--primary-color);
}

.json-tool-success {
  background: var(--success-color);
}

.json-tool-info {
  background: var(--info-color);
}

.json-tool-warning {
  background: var(--warning-color);
}

.json-tool-secondary {
  background: var(--secondary-color);
}

.json-tool-danger {
  background: var(--danger-color);
}

.json-tool-content {
  flex: 1;
}

.json-tool-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.json-tool-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.json-tool-arrow {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.json-tool-card:hover .json-tool-arrow {
  transform: translateX(5px);
}

.json-features-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.json-features-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-primary);
}

.json-feature-item {
  text-align: center;
  padding: 1rem;
}

.json-feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.json-feature-item h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.json-feature-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.json-quick-actions-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.json-quick-actions-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.json-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.json-quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--font-family-primary);
  border: 1px solid var(--border-color);
}

.json-quick-action:hover {
  background: var(--background);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.json-quick-action i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.json-options-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.json-input-card,
.json-output-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.json-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.json-card-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

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

.json-textarea-container {
  position: relative;
}

.json-textarea {
  border: none;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  background: var(--background);
  color: var(--text-primary);
}

.json-textarea:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.json-textarea.is-invalid {
  border-color: var(--danger-color);
}

.json-output {
  background: var(--gray-50);
  color: var(--text-secondary);
}

.json-error-message {
  color: var(--danger-color);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background: rgba(220, 53, 69, 0.1);
  border-top: 1px solid rgba(220, 53, 69, 0.2);
}

.json-stats-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.json-stats-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.json-stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.json-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-family: var(--font-family-primary);
}

.json-stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

.json-tips-card {
  background: var(--background);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.json-tips-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.json-tips-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.json-tips-list li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--font-family-primary);
}

.json-tips-list li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.json-validation-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.json-validation-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-family-primary);
}

.json-validation-badge.success {
  background: rgba(25, 135, 84, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(25, 135, 84, 0.2);
}

.json-validation-badge.error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.json-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-family: var(--font-family-primary);
}

.json-error-list,
.json-warning-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.json-error-item,
.json-warning-item {
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid;
}

.json-error-item {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
}

.json-warning-item {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.2);
}

.json-error-message,
.json-warning-message {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-family: var(--font-family-primary);
}

.json-error-message {
  color: var(--danger-color);
}

.json-warning-message {
  color: var(--warning-color);
}

.json-error-location,
.json-warning-path {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
}

.json-success-section {
  padding: 1rem;
  background: rgba(25, 135, 84, 0.1);
  border: 1px solid rgba(25, 135, 84, 0.2);
  border-radius: var(--border-radius);
}

.json-success-message {
  color: var(--success-color);
  font-weight: 500;
  font-family: var(--font-family-primary);
}

.json-comparison-result {
  text-align: center;
}

.json-comparison-badge {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-family-primary);
}

.json-comparison-badge.success {
  background: rgba(25, 135, 84, 0.1);
  color: var(--success-color);
  border: 2px solid rgba(25, 135, 84, 0.2);
}

.json-comparison-badge.warning {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
  border: 2px solid rgba(255, 193, 7, 0.2);
}

.json-differences-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.json-differences-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.json-difference-item {
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background: var(--background);
}

.json-difference-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.json-difference-path {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: var(--gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
}

.json-difference-message {
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.json-difference-values {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.json-difference-old {
  color: var(--danger-color);
  background: rgba(220, 53, 69, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
}

.json-difference-new {
  color: var(--success-color);
  background: rgba(25, 135, 84, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
}

/* Responsive adjustments for JSON tools */
@media (max-width: 768px) {
  .json-tool-card {
    padding: 1rem;
  }
  
  .json-tool-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .json-tool-title {
    font-size: 1.1rem;
  }
  
  .json-page-title {
    font-size: 2rem;
  }
  
  .json-quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .json-difference-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .json-page-title {
    font-size: 1.75rem;
  }
  
  .json-features-card {
    padding: 1.5rem;
  }
  
  .json-tool-card {
    flex-direction: column;
    text-align: center;
  }
  
  .json-tool-content {
    text-align: center;
  }
}

/* Homepage Styles */
.hero-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-family-primary);
  line-height: 1.2;
}

.hero-title-highlight {
  color: var(--primary-color);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-family: var(--font-family-primary);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.hero-btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hero-stat-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.2s ease;
}

.hero-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.hero-stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-family-primary);
}

.features-section {
  padding: 4rem 0;
  background: var(--background);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.feature-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font-family-primary);
}

.tools-section {
  padding: 4rem 0;
  background: var(--surface);
}

.tool-category {
  margin-bottom: 4rem;
}

.tool-category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tool-category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.tool-category-primary {
  background: var(--primary-color);
}

.tool-category-success {
  background: var(--success-color);
}

.tool-category-warning {
  background: var(--warning-color);
}

.tool-category-danger {
  background: var(--danger-color);
}

.tool-category-info {
  background: var(--info-color);
}

.tool-category-secondary {
  background: var(--secondary-color);
}

.tool-category-content {
  flex: 1;
}

.tool-category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.tool-category-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
}

.tool-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  height: 100%;
  transition: all 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  color: var(--text-primary);
}

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

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.tool-arrow {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-arrow {
  transform: translateX(5px);
}

.tool-card-content {
  flex: 1;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.tool-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

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

.tool-feature-tag {
  background: var(--background);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-family-primary);
}

.quick-actions-section {
  padding: 4rem 0;
  background: var(--background);
}

.quick-actions-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.quick-actions-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.quick-actions-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-family: var(--font-family-primary);
}

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

/* Dropdown Menu Styles */
.dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  min-width: 200px;
}

.dropdown-item {
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-family-primary);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--background);
  color: var(--primary-color);
}

.dropdown-divider {
  border-color: var(--border-color);
  margin: 0.5rem 0;
}

/* JSON Format and Size Badges */
.json-format-badge {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-family-primary);
}

.json-size-badge {
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-family-primary);
}

.json-stats-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.json-example {
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0;
}

.json-use-cases-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.json-use-cases-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.json-use-case-item {
  text-align: center;
  padding: 1rem;
}

.json-use-case-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.json-use-case-item h5 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

  .json-use-case-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
    font-family: var(--font-family-primary);
  }

/* Offline Demo Styles */
.offline-demo {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.offline-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.offline-demo-header h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  font-family: var(--font-family-primary);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-family: var(--font-family-primary);
}

.connection-status.online {
  background: var(--success-color);
  color: var(--white);
}

.connection-status.offline {
  background: var(--warning-color);
  color: var(--white);
}

.offline-demo-content {
  display: grid;
  gap: 2rem;
}

.demo-section {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.demo-section h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.demo-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demo-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-display {
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  font-family: var(--font-family-primary);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.demo-instructions {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.demo-instructions h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.demo-instructions ol {
  margin: 0;
  padding-left: 1.5rem;
}

  .demo-instructions li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-family-primary);
  }

/* Offline Demo Page Styles */
.offline-features {
  margin: 3rem 0;
}

.offline-features h2 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: var(--font-family-primary);
}

.offline-testing {
  margin: 3rem 0;
}

.offline-testing h2 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: var(--font-family-primary);
}

.testing-steps {
  display: grid;
  gap: 1.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-family-primary);
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.step-content p {
  color: var(--text-secondary);
  margin: 0;
  font-family: var(--font-family-primary);
  line-height: 1.6;
}

/* Responsive adjustments for homepage */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  
  .tool-category-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .tool-category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .tool-category-title {
    font-size: 1.5rem;
  }
  
  .quick-actions-buttons {
    justify-content: center;
  }
  
  .hero-btn-primary,
  .hero-btn-secondary,
  .hero-btn-outline {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stat-card {
    padding: 1.5rem;
  }
  
  .hero-stat-number {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .tool-card {
    padding: 1rem;
  }
}

/* Demo Page Styles */
.demo-content {
  margin: 2rem 0;
}

.demo-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.demo-card h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.demo-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-family: var(--font-family-primary);
}

.demo-features {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.demo-features h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.demo-features ul {
  margin: 0;
  padding-left: 1.5rem;
}

.demo-features li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.demo-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demo-info-card,
.demo-status-card {
  background: var(--surface);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.demo-info-card h4,
.demo-status-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.demo-info-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
}

.demo-info-card ul {
  margin: 0;
  padding-left: 1.5rem;
}

.demo-info-card li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-family-primary);
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.status-label {
  color: var(--text-secondary);
  font-family: var(--font-family-primary);
}

.status-value {
  font-weight: 600;
  font-family: var(--font-family-primary);
}

.status-value.success {
  color: var(--success-color);
}

.status-value.error {
  color: var(--danger-color);
}

.status-value.warning {
  color: var(--warning-color);
}

@media (max-width: 768px) {
  .demo-actions {
    flex-direction: column;
  }
  
  .demo-sidebar {
    margin-top: 2rem;
  }
}

/* Unit Converter Styles */
.unit-index-header {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.unit-index-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-2);
}

.unit-index-subtitle {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.unit-tool-card {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.unit-tool-card:hover {
  transform: var(--hover-transform);
  box-shadow: var(--hover-shadow);
}

.unit-tool-card-primary {
  border-left: 4px solid var(--primary-color);
}

.unit-tool-card-success {
  border-left: 4px solid var(--success-color);
}

.unit-tool-card-info {
  border-left: 4px solid var(--info-color);
}

.unit-tool-card-warning {
  border-left: 4px solid var(--warning-color);
}

.unit-tool-card-secondary {
  border-left: 4px solid var(--secondary-color);
}

.unit-tool-card-danger {
  border-left: 4px solid var(--danger-color);
}

.unit-tool-card-dark {
  border-left: 4px solid var(--dark-color);
}

.unit-tool-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 24px;
  color: var(--white);
}

.unit-tool-icon-primary {
  background-color: var(--primary-color);
}

.unit-tool-icon-success {
  background-color: var(--success-color);
}

.unit-tool-icon-info {
  background-color: var(--info-color);
}

.unit-tool-icon-warning {
  background-color: var(--warning-color);
}

.unit-tool-icon-secondary {
  background-color: var(--secondary-color);
}

.unit-tool-icon-danger {
  background-color: var(--danger-color);
}

.unit-tool-icon-dark {
  background-color: var(--dark-color);
}

.unit-tool-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-2);
}

.unit-tool-description {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.unit-features-card {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.unit-features-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-4);
}

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

.unit-features-list li {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-2);
  display: flex;
  align-items: center;
}

.unit-features-list li i {
  color: var(--success-color);
  margin-right: var(--spacing-2);
}

/* Unit Page Styles */
.unit-page-header {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-4);
}

.unit-page-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-2);
}

.unit-page-subtitle {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.unit-input-card,
.unit-output-card,
.unit-results-card,
.unit-samples-card,
.unit-info-card {
  background-color: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.unit-main-result {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-4);
  background-color: var(--gray-50);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-4);
}

.unit-main-value {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.unit-main-unit {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: 500;
  flex: 1;
}

.unit-all-results {
  margin-top: var(--spacing-4);
}

.unit-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-2) var(--spacing-3);
  background-color: var(--gray-50);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-2);
  border: 1px solid var(--gray-200);
}

.unit-result-label {
  color: var(--text-muted);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.unit-result-value {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.unit-info-title {
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-4);
}

/* Modern Login Page Styles */
.login-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 1rem;
}

.login-page-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.login-page-background-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.login-page-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
}

.login-page-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-page-header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
}

.login-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.login-logo-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

.login-logo i {
  font-size: 2rem;
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.login-page-title {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-page-subtitle {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

.login-page-body {
  padding: 2.5rem 2rem;
}

.login-error-container {
  text-align: center;
  padding: 2rem 1rem;
}

.login-error-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: shake 0.5s ease-in-out;
}

.login-error-icon i {
  font-size: 2rem;
  color: white;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-error-title {
  color: #dc3545;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.login-error-message {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.login-retry-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.login-retry-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.login-retry-button:active {
  transform: translateY(0);
}

.login-page-footer {
  padding: 1.5rem 2rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.login-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.login-footer-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.login-footer-link:hover {
  color: #667eea;
  transform: translateY(-1px);
}

.login-footer-separator {
  color: #dee2e6;
  font-weight: 300;
}

/* Enhanced Social Login Form Styles */
.social-login-container {
  width: 100%;
}

.social-login-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.social-login-body {
  padding: 0;
}

.social-providers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  color: #495057;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.social-provider-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.social-provider-button:hover::before {
  left: 100%;
}

.social-provider-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.social-provider-button:active {
  transform: translateY(0);
}

.social-provider-button i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-page-container {
    padding: 1rem;
  }
  
  .login-page-card {
    border-radius: 16px;
  }
  
  .login-page-header {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .login-page-title {
    font-size: 2rem;
  }
  
  .login-page-subtitle {
    font-size: 1rem;
  }
  
  .login-page-body {
    padding: 2rem 1.5rem;
  }
  
  .login-logo {
    width: 60px;
    height: 60px;
  }
  
  .login-logo i {
    font-size: 1.5rem;
  }
  
  .social-provider-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .login-page-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .login-page-body {
    padding: 1.5rem 1rem;
  }
  
  .login-page-footer {
    padding: 1rem;
  }
  
  .login-footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .login-footer-separator {
    display: none;
  }
}

/* Tool Pages Styles */
.tools-page-container {
  padding: 2rem 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.tools-page-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.tools-page-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tools-page-icon i {
  font-size: 2.5rem;
}

.tools-page-content {
  flex: 1;
}

.tools-page-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.tools-page-description {
  font-size: 1.25rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Tool Page Styles */
.tool-page-container {
  padding: 2rem 0;
  background: #f8f9fa;
  min-height: 100vh;
}

.tool-page-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.tool-page-icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-page-icon i {
  font-size: 2.5rem;
}

.tool-page-content {
  flex: 1;
}

.tool-page-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.tool-page-description {
  font-size: 1.25rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.tool-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.input-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tool-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: #1a1a1a;
  transition: all 0.3s ease;
}

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

.tool-input::placeholder {
  color: #6c757d;
}

.clear-button {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.clear-button:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.result-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.result-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.copy-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.url-components {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.component-group {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  background: #f8f9fa;
}

.component-group h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  margin-top: 0;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.component-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.component-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6c757d;
}

.component-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-all;
}

.query-params {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.param-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.param-key {
  font-weight: 600;
  color: #667eea;
  min-width: 100px;
}

.param-value {
  color: #1a1a1a;
  word-break: break-all;
}

.full-url {
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  word-break: break-all;
}

.tool-footer {
  text-align: center;
  margin-top: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #764ba2;
  transform: translateX(-2px);
}

/* Tool Pages Responsive Design */
@media (max-width: 768px) {
  .tools-page-header,
  .tool-page-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .tools-page-title,
  .tool-page-title {
    font-size: 2rem;
  }
  
  .tools-page-description,
  .tool-page-description {
    font-size: 1.125rem;
  }
  
  .tools-page-icon,
  .tool-page-icon {
    width: 80px;
    height: 80px;
  }
  
  .tools-page-icon i,
  .tool-page-icon i {
    font-size: 2rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .tool-content {
    padding: 0 1rem;
  }
  
  .input-section,
  .result-section {
    padding: 1.5rem;
  }
  
  .component-grid {
    grid-template-columns: 1fr;
  }
  
  .result-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .tools-page-title,
  .tool-page-title {
    font-size: 1.75rem;
  }
  
  .input-section,
  .result-section {
    padding: 1rem;
  }
  
  .component-group {
    padding: 1rem;
  }
}
