/* 4pm Tools Custom Styles */
:root {
  --app-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --app-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --app-primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --app-card-radius: 12px;
}

body {
  font-family: var(--app-font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--app-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.08), transparent 70%);
}

[data-bs-theme="dark"] .hero-section {
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15), transparent 70%);
}

/* Tool Cards */
.tool-card {
  border-radius: var(--app-card-radius);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #6366f1 !important;
  color: inherit;
}

[data-bs-theme="dark"] .tool-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  border-color: #818cf8 !important;
}

.tool-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: background-color 0.2s;
}

/* Monospace inputs & textareas */
.font-monospace {
  font-family: var(--app-font-mono) !important;
  font-size: 0.9rem;
}

textarea.font-monospace {
  white-space: pre;
  tab-size: 2;
}

/* Diff styles */
.diff-added {
  background-color: rgba(46, 160, 67, 0.18);
  color: #2ea043;
}
.diff-removed {
  background-color: rgba(248, 81, 73, 0.18);
  color: #f85149;
  text-decoration: line-through;
}
[data-bs-theme="dark"] .diff-added {
  background-color: rgba(46, 160, 67, 0.3);
  color: #3fb950;
}
[data-bs-theme="dark"] .diff-removed {
  background-color: rgba(248, 81, 73, 0.3);
  color: #f85149;
}

/* Category Filter Pills */
.nav-pills .nav-link {
  border-radius: 30px;
  padding: 0.45rem 1.15rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

/* Search input with icon */
.search-input-group {
  position: relative;
}

.search-input-group i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 5;
}

.search-input-group input {
  padding-left: 2.75rem;
  border-radius: 12px;
}

/* Keyboard badge */
kbd {
  background-color: rgba(125, 125, 125, 0.15);
  color: inherit;
  font-size: 0.75rem;
  border: 1px solid rgba(125, 125, 125, 0.3);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
}

/* Toast container */
.toast-container {
  z-index: 1090;
}

/* Tool specific helpers */
.color-preview-box {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(125, 125, 125, 0.2);
  transition: background-color 0.15s;
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.2s ease-in;
}

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

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

/* Footer links */
.footer-link {
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  text-decoration: underline;
}

