:root {
    --primary-color: #141824;
    --secondary-color: #4c8bf5;
    --accent-color: #00b4d8;
    --text-color: #e8eaed;
    --bg-color: #0a0e17;
    --bg-secondary: #141824;
    --card-bg: #1e2433;
    --border-color: #2d3748;
    --success-color: #4ade80;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --primary-color: #8b6f47;
    --secondary-color: #d97706;
    --accent-color: #8b6f47;
    --text-color: #1a1a1a;
    --bg-color: #f5f1ed;
    --bg-secondary: #ffffff;
    --card-bg: #e8dfd6;
    --border-color: #d4c5b9;
    --success-color: #22c55e;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(11, 61, 145, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(0, 168, 232, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] body::before {
    background: radial-gradient(ellipse at top, rgba(11, 61, 145, 0.05) 0%, transparent 50%);
}

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

.navbar {
    background-color: transparent; /* Remove the solid background */
    border-bottom: none; /* Remove the border */
    padding: 1rem 0;
    position: fixed; /* Change from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Keeps the blur effect */
    transition: all 0.3s ease;
    opacity: 100%;
}

.navbar-not-hero { /* For pages other than index */
    background-color: transparent; /* Remove the solid background */
    border-bottom: 3px solid var(--border-color); /* Remove the border */
    padding: 1rem 0;
    position: fixed; /* Change from sticky to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Keeps the blur effect */
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--bg-secondary);
    opacity: 100%;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Three columns: left, center, right */
    align-items: center;
}

.nav-links-left {
    display: flex;
    list-style: none;
    justify-content: flex-start;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.nav-links-right {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-links-left a,
.nav-links-right a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }

/* When scrolled, make links use theme color */
.navbar.scrolled .nav-links a {
    color: var(--text-color);
}

.navbar-not-hero .nav-logo {
    color: var(--text-color);
}

.navbar-not-hero .nav-links-right a {
    color: var(--text-color);
}

.navbar-not-hero .nav-links-left a {
    color: var(--text-color);
}

.navbar.scrolled .nav-links a {
    color: #000000; /* Black after scroll */
  }
  
  [data-theme="light"] .navbar.scrolled .nav-links-right a,
  [data-theme="light"] .navbar.scrolled .nav-links-left a,
  [data-theme="light"] .navbar.scrolled .logo-text {
    color: #1a1f3a; /* or black */
  }

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
  .theme-toggle:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.05);
  }
  
/* Theme Toggle Icons - Universal */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: inline;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: inline;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('../assets/dark.jpeg'); /* default dark mode image */
    transition: background-image 0.5s ease;
}

[data-theme="light"] .hero-background {
    background-image: url('../assets/day.jpeg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.);
}

.hero-content {
    position: absolute; /* Change from relative to absolute */
    bottom: 4%; /* Position from bottom */
    left: 1%; /* Position from left */
    z-index: 10;
    text-align: left;
    max-width: 700px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem; /* Make it bigger */
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 100%;
    color: white; /* Add this line */
}


.hero-search {
    display: absolute;
    max-width: 600px;
    margin: 0 auto 2rem;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.search-button {
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
    color: white;
    border: 2px solid white;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
}

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

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

.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.stats {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

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

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.latest-uploads {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.article-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.article-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 1.5rem;
}

.article-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.article-excerpt {
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.article-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-link:hover {
    margin-left: 5px;
}

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
.cta-btn {
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  .cta-btn.primary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
  }
  
  .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
  }

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

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.cta-search-bar {
    display: absolute;
    max-width: 700px;
    margin: 0 auto;
    gap: 15px;
}

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
}

.about-hero /* Used for library and about us */
{
    min-height: calc(30vh);
    padding-top: 80px;
    text-align: left;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
    height: 40vh;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 5rem;
}

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

.about-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

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

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.platform-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 2rem;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.3;
}

.feature-content h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.team-section {
    text-align: center;
}

.team-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

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

.team-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.team-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.team-role {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.tech-stack {
    text-align: center;
}

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

.tech-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-item h4 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.hackathon-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.banner-highlight {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

.nav-links {
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: var(--bg-secondary);
flex-direction: column;
padding: 1rem;
gap: 1rem;
box-shadow: var(--shadow);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}

.nav-links.active {
max-height: 400px;
}

.hero-title {
font-size: 2rem;
}

.hero-tagline {
font-size: 1rem;
}

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

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

.library-layout {
        grid-template-columns: 1fr;
    }

    .library-sidebar {
        position: relative;
        top: 0;
    }

    .filter-toggle {
        display: block;
    }

    .filters {
        display: none;
    }

    .filters.active {
        display: block;
    }

    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        display: none;
    }

    .message-content {
        max-width: 90%;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .hackathon-banner {
        padding: 2rem;
    }
}

.view-toggle {
  display: flex;
  gap: calc(var(--spacing-unit) * 1);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

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

.view-btn.active {
  background: var(--accent-gradient);
  color: white;
}

.filter-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: calc(var(--spacing-unit) * 1.5);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--accent-blue);
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  margin-top: calc(var(--spacing-unit) * 6);
  padding: calc(var(--spacing-unit) * 3) 0;
}

.pagination-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: calc(var(--spacing-unit) * 1);
}

.pagination-number {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-number:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

.pagination-number.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

/* New Chat Button Icon */
.btn-icon {
  font-size: 1.2rem;
  font-weight: 600;
}

.new-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacing-unit) * 1);
}

/* History Delete Button */
.history-item {
  position: relative;
  padding-right: calc(var(--spacing-unit) * 5);
}

.history-delete {
  position: absolute;
  right: calc(var(--spacing-unit) * 1);
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.history-item:hover .history-delete {
  opacity: 1;
}

.history-delete:hover {
  color: #ff4444;
  transform: translateY(-50%) scale(1.1);
}

/* Chat History Footer */
.chat-history-footer {
  padding: calc(var(--spacing-unit) * 3);
  border-top: 1px solid var(--border-color);
}

.clear-history-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: calc(var(--spacing-unit) * 1.5);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.clear-history-btn:hover {
  background: #ff4444;
  border-color: #ff4444;
  color: white;
}

/* Status Indicator */
.status-indicator {
  color: #4ade80;
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

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

/* Chat Action Buttons */
.chat-actions {
  display: flex;
  gap: calc(var(--spacing-unit) * 1);
}

.chat-action-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.chat-action-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
  transform: scale(1.05);
}

/* Suggestion Chips */
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit) * 1.5);
  margin-top: calc(var(--spacing-unit) * 2);
}

.suggestion-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-chip:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}

/* Typing Indicator */
.typing-indicator {
  padding: 0 calc(var(--spacing-unit) * 4);
}

.typing-dots {
  display: flex;
  gap: 6px;
  padding: calc(var(--spacing-unit) * 2);
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Attach Button */
.attach-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 calc(var(--spacing-unit) * 1);
  transition: all 0.3s ease;
}

.attach-btn:hover {
  color: var(--accent-blue);
  transform: scale(1.1);
}

/* Textarea Auto-resize */
.chat-input {
  resize: none;
  max-height: 150px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Send Button States */
.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

/* Message Text Headings */
.message-text h3 {
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--text-primary);
  font-size: 1.1rem;
}

.message-text p {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.library-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.library-grid.list-view .article-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: calc(var(--spacing-unit) * 3);
  align-items: center;
}

.library-grid.list-view .article-tag {
  margin-bottom: 0;
}

.library-grid.list-view .article-title {
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.library-grid.list-view .article-snippet {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .chat-actions {
    display: none;
  }
  
  .view-toggle {
    display: none;
  }
  
  .suggestion-chips {
    flex-direction: column;
  }
  
  .suggestion-chip {
    width: 100%;
    text-align: center;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .pagination-numbers {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: calc(var(--spacing-unit) * 2);
  }
}