/* Base styles and reset */
:root {
    --primary: hsl(220, 70%, 50%);
    --primary-foreground: hsl(210, 40%, 98%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 14%, 10%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(222.2, 84%, 4.9%);
    --radius: 0.5rem;
    --accent: hsl(210, 40%, 96.1%);
    --accent-foreground: hsl(222.2, 47.4%, 11.2%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 14%, 10%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(220, 14%, 10%);
    --secondary: hsl(210, 40%, 96.1%);
    --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
  }
  
  html, body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    overflow-x: hidden;
  }
  
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  
  h3 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  h4 {
    font-size: 1.25rem;
    line-height: 1.2;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  button, input, textarea {
    font-family: inherit;
  }
  
  button {
    cursor: pointer;
    border: none;
    background: none;
  }
  
  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background-color: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: rgba(113, 113, 122, 0.2);
    border-radius: 9999px;
    transition: all 0.2s;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(113, 113, 122, 0.4);
  }
  
  /* Layout */
  .app-container {
    display: flex;
    min-height: 100vh;
  }
  
  /* Sidebar styles */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 40;
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
  }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--background);
    border-right: 1px solid var(--border);
    z-index: 50;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    padding-bottom: 1.5rem;
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }
  
  .sidebar-content {
    padding: 1.5rem;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .logo-icon {
    position: relative;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
    animation: pulse-subtle 3s ease-in-out infinite;
    display: inline-block;
  }
  
  .logo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.4));
    opacity: 0.5;
  }
  
  .logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
  }
  
  .sidebar-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .sidebar-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
  }
  
  .sidebar-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--muted-foreground);
  }
  
  .categories-nav,
  .resources-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .category-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s;
  }
  .recent-section .category-link {
    display: inline-block;
    float: right;
    background: rgb(70 31 144 / 83%);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 0.3em;
  }
  
  .category-link:hover {
    background-color: var(--accent);
    color: var(--primary);
  }
  
  .category-link-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .category-link .chevron-right,
  .category-link .external-link {
    color: var(--muted-foreground);
  }
  
  .sidebar-separator {
    height: 1px;
    background-color: var(--border);
    margin: 1.5rem 0;
  }
  
  .submit-card {
    padding: 1rem;
    border-radius: var(--radius);
    background-color: var(--muted);
  }
  
  .submit-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .submit-card-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
  }
  
  .submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s;
  }
  
  .submit-button:hover {
    background-color: hsl(220, 70%, 45%);
  }
  
  /* Main content styles */
  .main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left 0.3s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    transition: all 0.3s;
    padding: 1rem 1.5rem;
    background-color: transparent;
  }
  
  .navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.5rem;
  }
  
  .navbar-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  .sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    color: var(--foreground);
    transition: background-color 0.2s;
  }
  
  .sidebar-toggle:hover {
    background-color: var(--accent);
  }
  
  .main-nav {
    display: none;
  }
  
  .nav-link {
    position: relative;
    padding: 0.5rem;
    transition: color 0.2s;
  }
  
  .nav-link:hover {
    color: var(--primary);
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  /* Content */
  .content-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 6rem 1.5rem 2rem;
    width: 100%;
  }
  
  .hero-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 2rem;
  }
  
  .hero-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
  }
  
  .hero-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
  }
  
  .hero-description {
    color: var(--muted-foreground);
    max-width: 36rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
  }
  
  .share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    animation: fade-in 0.5s ease-out;
  }
  
  .share-button {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    cursor: pointer;
  }
  
  .twitter-button:hover {
    color: #1DA1F2;
    background-color: #fff;
  }
  
  .facebook-button:hover {
    color: #4267B2;
    background-color: #fff;
  }
  
  .copy-link-button:hover {
    color: #111827;
    background-color: #fff;
  }
  
  .separator {
    height: 1px;
    background-color: var(--border);
    margin: 2rem 0 3rem;
  }
  
  /* Sections */
  .recent-section {
    margin-bottom: 4rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
  }
  
  .card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
  }
  
  /* Card component */
  .card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--background);
    transition: all 0.3s;
    max-height: 200px;
  }
  
  .card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  
  .card-image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--muted);
  }
  
  .card-image-placeholder {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    transition: opacity 0.7s;
  }
  
  .card-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.7s;
    opacity: 0;
    transform: scale(1.05);
  }
  
  .card-image.loaded {
    opacity: 1;
    transform: scale(1);
  }
  
  .card-image.loaded + .card-image-placeholder {
    opacity: 0;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
  }
  
  .card-title {
    font-size: 1.125rem;
    font-weight: 500;
    transition: color 0.2s;
  }
  
  .card:hover .card-title {
    color: var(--primary);
  }
  
  /* Newsletter section */
  .newsletter-section {
    margin-bottom: 5rem;
  }
  
  .newsletter-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    max-width: 36rem;
  }
  
  .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 24rem;
  }
  
  .newsletter-input {
    height: 2.5rem;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--background);
    padding: 0 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  }
  
  .newsletter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: var(--primary-foreground);
    height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .newsletter-button:hover {
    background-color: hsl(220, 70%, 45%);
  }
  
  /* Footer */
  .footer {
    margin-top: auto;
    padding: 3rem 1.5rem;
    background-color: var(--muted);
    position: relative;
    z-index: 2;
  }
  
  .footer-container {
    max-width: 80rem;
    margin: 0 auto;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-about {
    grid-column: span 2;
  }
  
  .footer-description {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    max-width: 24rem;
  }
  
  .footer-title {
    font-weight: 500;
    margin-bottom: 0.75rem;
  }
  
  .footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-link,
  .legal-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
  }
  
  .footer-link:hover,
  .legal-link:hover {
    color: var(--foreground);
  }
  
  .footer-separator {
    height: 1px;
    background-color: var(--border);
    margin: 2rem 0;
  }
  
  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .copyright {
    font-size: 0.75rem;
    color: var(--muted-foreground);
  }
  
  .legal-links {
    display: flex;
    gap: 1rem;
  }
  
  .legal-link {
    font-size: 0.75rem;
  }
  
  /* Toast notification */
  .toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    transform: translateY(200%);
    transition: transform 0.3s ease-out;
  }
  
  .toast.show {
    transform: translateY(0);
  }
  
  .toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  
  .toast-icon {
    color: #10B981;
  }
  
  /* Animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes pulse-subtle {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.9;
    }
  }
  
  .animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
  }
  
  .animate-on-scroll[data-visible="false"] {
    /*opacity: 0;*/
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
  }
  
  .animate-on-scroll[data-visible="true"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
  }
  
  /* Glass effect */
  .glass {
    backdrop-filter: blur-md;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  /* Responsive styles */
  @media (min-width: 640px) {
    .newsletter-form {
      flex-direction: row;
    }
    
    .newsletter-button {
      white-space: nowrap;
    }
  }
  
  @media (min-width: 768px) {
    .card-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .main-nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }
    
    .hero-section {
      flex-direction: row;
      align-items: center;
      margin-bottom: 3rem;
    }
    
    .sidebar {
      transform: translateX(0);
      z-index: 30;
    }
    
    .main-content {
      margin-left: 280px;
    }
    
    .navbar {
      left: 280px;
    }
    
    .sidebar-toggle {
      display: none;
    }
    
    .footer-grid {
      grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
    }
  }
  
  @media (min-width: 1024px) {
    .card-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
    h1 {
      font-size: 3rem;
    }
    
    h2 {
      font-size: 2.25rem;
    }
    
    .hero-title {
      font-size: 3rem;
    }
  }
  
  /* Special handling for mobile sidebar */
  @media (max-width: 767px) {
    body.sidebar-open {
      overflow: hidden;
    }
    
    body.sidebar-open .sidebar-overlay {
      opacity: 1;
      pointer-events: all;
    }
  
    .main-content {
      margin-left: 0;
    }
  }
  
  

  @media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

svg.h-4.w-4.text-muted-foreground {
    vertical-align: middle;
}

.relative.aspect-\[4\/3\].overflow-hidden.bg-muted {
    max-height: 300px !important;
}

.card-grid .group img {

    width: 100%;
    max-height: 300px;
}

.logo-ico {
  max-width:32px;
  max-height:32px;
}




/* Single */

.listing-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-details {
  padding: 1rem;
}

.automation-software-logo {
  max-width: 120px;
  margin-bottom: 1rem;
}

.details-header h1 {
  margin: 0.5rem 0;
  font-size: 2rem;
}

.description {
  color: #a8b3cf;
  margin-bottom: 2rem;
}

.details-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

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

.meta-item .label {
  color: #4862a5;
  min-width: 100px;
}

.meta-item .value {
  color: #140023;
}

.details-tags h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgb(70 31 144 / 83%);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #ffffff;
}

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


.content h2 {
  font-size: 1.8em;
  margin-top: 0.6em;
  margin-bottom: 0.3em;
}
.content ul {
  margin-left: 2em;
}

.no-listings {
  font-size: 1.2rem;
  color: #355fcb;
  text-align: center;
  margin-top: 5em;
  margin-bottom: 5em;
}

/* Form Styles */
.submit-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.submit-form button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-form button[type="submit"]:hover {
  background: hsl(220, 70%, 45%);
}

.submit-form button[type="submit"]:active {
  transform: translateY(1px);
}

.cf-turnstile {
  margin: 1rem 0;
}

.hero-section img {
  float: right;
  margin: 1em;
}

.visit-automation-software {
  text-align: center;
}
.visit-automation-software a.button {
  background: rgb(70 31 144 / 83%);
    padding: 1em 2em;
    border-radius: 4px;
    font-size: 1.1em;
    color: #ffffff;
}
.visit-automation-software a.button:hover {
  background: rgb(47 24 93 / 83%);
}

.listing-image {
  max-height: 300px;
  overflow: hidden;
  width: 100%;
}
.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-4 a h3 {
  padding-top: 0.2em;
}

hr {
  margin: 4em;
}



.sidebar-content .flex.items-center.justify-between {
    font-size: 0.75em;
}