@import url("./fonts.css");
@import url("./colors.css");

/* Tailwind-like utilities matching React globals.css */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

[&::-webkit-scrollbar]:hidden {
  display: none;
}

[-ms-overflow-style:none] {
  -ms-overflow-style: none;
}

[scrollbar-width:none] {
  scrollbar-width: none;
}

/* Text balance */
.text-balance {
  text-wrap: balance;
}

/* Brand gradient */
.text-brand-gradient {
  background: linear-gradient(to right, rgba(0, 176, 239, 1), rgba(0, 88, 204, 1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Additional React-specific utilities */
.bg-\[#FBFBFB\] {
  background-color: #FBFBFB;
}

.bg-\[#F5F8FF\] {
  background-color: #F5F8FF;
}

.border-\[#D0E0FF\] {
  border-color: #D0E0FF;
}

.text-\[#38A1E5\] {
  color: #38A1E5;
}

.hover\:bg-\[#F5F8FF\]:hover {
  background-color: #F5F8FF;
}

.hover\:border-\[#D0E0FF\]:hover {
  border-color: #D0E0FF;
}

.hover\:bg-blue-50:hover {
  background-color: #eff6ff;
}

.bg-blue-50 {
  background-color: #eff6ff;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.hover\:bg-blue-100:hover {
  background-color: #dbeafe;
}

.border-blue-200 {
  border-color: #bfdbfe;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-700 {
  color: #1d4ed8;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-700 {
  color: #1d4ed8;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.hover\:bg-blue-100:hover {
  background-color: #dbeafe;
}

.border-blue-200 {
  border-color: #bfdbfe;
}

.text-\[rgb\(113\,121\,133\)\] {
  color: rgb(113, 121, 133);
}

.text-\[#020817\] {
  color: #020817;
}

.hover\:text-\[#020817\]:hover {
  color: #020817;
}

.bg-\[#2891D5\] {
  background-color: #2891D5;
}

.hover\:bg-\[#2891D5\]:hover {
  background-color: #2891D5;
}

.rounded-t-lg {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.rounded-b-xl {
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.rounded-b-2xl {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.pb-\[15px\] {
  padding-bottom: 15px;
}

.py-\[14px\] {
  padding-top: 14px;
  padding-bottom: 14px;
}

.pl-\[23px\] {
  padding-left: 23px;
}

.pb-\[11px\] {
  padding-bottom: 11px;
}

.top-\[18px\] {
  top: 18px;
}

.-right-4 {
  right: -1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-1\.5 {
  margin-bottom: 0.375rem;
}

.h-9 {
  height: 2.25rem;
}

.w-9 {
  width: 2.25rem;
}

.h-3 {
  height: 0.75rem;
}

.w-3 {
  width: 0.75rem;
}

.ml-1 {
  margin-left: 0.25rem;
}

.pr-2 {
  padding-right: 0.5rem;
}

.pr-8 {
  padding-right: 2rem;
}

.-mt-10 {
  margin-top: -2.5rem;
}

.max-w-\[calc\(100\%-2rem\)\] {
  max-width: calc(100% - 2rem);
}

.min-h-\[100px\] {
  min-height: 100px;
}

.text-\[0\.625rem\] {
  font-size: 0.625rem;
}

.sticky {
  position: sticky;
}

.bottom-2 {
  bottom: 0.5rem;
}

.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bg-accent-blue {
  background-color: #eff6ff;
}

.text-text-secondary {
  color: #6b7280;
}

.text-text-primary {
  color: #111827;
}

/* Active button states matching React exactly */
button[id^="btn-"].active,
button[id^="btn-"]:has(+ .active) {
  color: #38A1E5 !important;
  background-color: #F5F8FF !important;
  border: 1px solid #D0E0FF !important;
}

button[id^="btn-"].active svg,
button[id^="btn-"].active svg path {
  color: #38A1E5 !important;
  stroke: #38A1E5 !important;
}

button[id^="btn-"].active span {
  color: #38A1E5 !important;
}

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

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  background-color: var(--background);
  color: var(--text-primary);
  overflow: hidden;
}

/* Layout */
.flex {
  display: flex;
}

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

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

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

.justify-center {
  justify-content: center;
}

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

.flex-1 {
  flex: 1;
}

.h-screen {
  height: 100vh;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.min-h-full {
  min-height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.overflow-x-visible {
  overflow-x: visible;
}

/* Spacing */
.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.m-4 {
  margin: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-6 {
  margin-left: 1.5rem;
}

.pl-2 {
  padding-left: 0.5rem;
}

.pl-4 {
  padding-left: 1rem;
}

.w-px {
  width: 1px;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.w-4 {
  width: 1rem;
}

.w-8 {
  width: 2rem;
}

.h-4 {
  height: 1rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

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

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overflow-hidden {
  overflow: hidden;
}

.text-ellipsis {
  text-overflow: ellipsis;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.min-w-0 {
  min-width: 0;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-color);
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--border-color);
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: var(--border-color);
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Backgrounds */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.hover\:bg-gray-50:hover {
  background-color: #f9fafb;
}

.hover\:bg-gray-100:hover {
  background-color: #f3f4f6;
}

/* Text */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Scrollbar hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

/* Position */
.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Z-index */
.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.z-60 {
  z-index: 60;
}

.z-100 {
  z-index: 100;
}

/* Shadow */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-\[0_0_15px_rgba\(0\,0\,0\,0\.1\)\] {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .md\:block {
    display: block;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:items-stretch {
    align-items: stretch;
  }
  
  .md\:pt-0 {
    padding-top: 0;
  }
}

/* Custom animations */
@keyframes rotateWithPause {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Exact React colors */
.text-\[\#38A1E5\] {
  color: #38A1E5 !important;
}

.bg-\[\#F5F8FF\] {
  background-color: #F5F8FF !important;
}

.border-\[\#D0E0FF\] {
  border-color: #D0E0FF !important;
}

.hover\:bg-blue-50:hover {
  background-color: #eff6ff !important;
}

.bg-\[\#FBFBFB\] {
  background-color: #FBFBFB !important;
}

/* Mode button active state - EXACT React match */
.mode-btn.active,
.tool-btn.active {
  color: #38A1E5 !important;
  background-color: #F5F8FF !important;
  border: 1px solid #D0E0FF !important;
}

.mode-btn.active svg,
.tool-btn.active svg,
.mode-btn.active svg path,
.tool-btn.active svg path {
  color: #38A1E5 !important;
  stroke: #38A1E5 !important;
}

.mode-btn.active span,
.tool-btn.active span {
  color: #38A1E5 !important;
}

/* Default mode/tool button styles */
.mode-btn,
.tool-btn {
  border: 1px solid transparent;
}

.mode-btn:hover,
.tool-btn:hover {
  background-color: #F5F8FF;
  border: 1px solid #D0E0FF;
}

/* Active state for sidebar buttons - EXACT React match */
.project-item.active .project-btn,
.project-item.active .project-btn span {
  background-color: #eff6ff !important;
  color: #2563eb !important;
}

.project-item.active .project-btn svg {
  color: #2563eb !important;
}

/* Chat item active state - EXACT React match */
.chat-item.active,
.chat-item.active span {
  background-color: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 500 !important;
}

/* Additional utility classes needed */
.max-w-4xl {
  max-width: 56rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.pb-0 {
  padding-bottom: 0;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.min-h-\[100px\] {
  min-height: 100px;
}

.text-\[0\.625rem\] {
  font-size: 0.625rem;
}

.leading-relaxed {
  line-height: 1.625;
}

.italic {
  font-style: italic;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

/* Flex wrap */
.flex-wrap {
  flex-wrap: wrap;
}

/* Text utilities */
.text-left {
  text-align: left;
}

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

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-900 {
  color: #111827;
}

.text-blue-600 {
  color: #2563eb;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

/* Border utilities */
.border-0 {
  border-width: 0;
}

.border-2 {
  border-width: 2px;
}

.border-dashed {
  border-style: dashed;
}

.border-blue-300 {
  border-color: #93c5fd;
}

/* Position utilities */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-6 {
  top: 1.5rem;
}

.left-4 {
  left: 1rem;
}

.bottom-3 {
  bottom: 0.75rem;
}

.left-3 {
  left: 0.75rem;
}

/* Z-index */
.z-50 {
  z-index: 50;
}

/* Object fit */
.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Min width */
.min-w-0 {
  min-width: 0;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-none {
  flex: none;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:block {
    display: block !important;
  }
  
  .md\:hidden {
    display: none !important;
  }
  
  .md\:inline {
    display: inline !important;
  }
  
  .md\:flex {
    display: flex !important;
  }
  
  .md\:items-stretch {
    align-items: stretch !important;
  }
  
  #sidebar-desktop {
    display: block !important;
  }
  
  #sidebar-mobile {
    display: none !important;
  }
  
  .sidebar {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .md\:hidden {
    display: none !important;
  }
  
  .md\:block {
    display: none !important;
  }
  
  #sidebar-desktop {
    display: none !important;
  }
  
  #sidebar-mobile {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .md\:hidden {
    display: none !important;
  }
  
  .md\:block {
    display: none !important;
  }
  
  #sidebar-desktop {
    display: none !important;
  }
}

/* Responsive width utilities */
@media (min-width: 640px) {
  .sm\:w-\[calc\(50\%-0\.375rem\)\] {
    width: calc(50% - 0.375rem);
  }
}

@media (min-width: 768px) {
  .md\:w-\[calc\(33\.333\%-0\.5rem\)\] {
    width: calc(33.333% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .lg\:w-\[calc\(25\%-0\.5625rem\)\] {
    width: calc(25% - 0.5625rem);
  }
}

@media (min-width: 1280px) {
  .xl\:w-\[calc\(20\%-0\.6rem\)\] {
    width: calc(20% - 0.6rem);
  }
}

/* Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sidebar base styles - EXACT React replication */
.sidebar {
  display: flex !important;
  flex-direction: column !important;
  background-color: #ffffff !important;
  border-right: 1px solid #e5e7eb !important;
  position: relative !important;
  transition: width 0.3s ease !important;
  height: 100vh !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sidebar nav {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  overflow: hidden !important;
}

.sidebar .sidebar-content {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sidebar .sidebar-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.sidebar .sidebar-header {
  display: block !important;
  visibility: visible !important;
}

.sidebar .sidebar-header-content {
  display: flex !important;
  visibility: visible !important;
}

.sidebar .sidebar-logo {
  display: inline !important;
  visibility: visible !important;
}

.sidebar .sidebar-text {
  display: inline !important;
  visibility: visible !important;
}

.sidebar .sidebar-new-course-btn,
.sidebar .sidebar-btn,
.sidebar .project-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Sidebar collapsed state - EXACT React replication */
.sidebar.collapsed {
  width: 72px !important;
}

.sidebar.collapsed .sidebar-logo,
.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .sidebar-section,
.sidebar.collapsed .sidebar-section-heading,
.sidebar.collapsed .sidebar-conversation-title,
.sidebar.collapsed .sidebar-profile-name,
.sidebar.collapsed .sidebar-profile-email,
.sidebar.collapsed .project-item .sidebar-text,
.sidebar.collapsed .project-chats {
  display: none !important;
}

.sidebar.collapsed .sidebar-header-content {
  justify-content: center !important;
}

.sidebar.collapsed .sidebar-new-course-btn {
  justify-content: center !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.sidebar.collapsed .sidebar-btn {
  justify-content: center !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.sidebar.collapsed .sidebar-toggle-icon path {
  d: path("M9 5l7 7-7 7");
}

/* Button styles matching React exactly */
.sidebar-new-course-btn {
  display: flex !important;
  align-items: center;
}

.sidebar-btn {
  display: flex !important;
  align-items: center;
}

.project-btn {
  display: flex !important;
  align-items: center;
}

.sidebar-content {
  display: block !important;
}

.sidebar-section {
  display: block !important;
}

.sidebar-text {
  display: inline !important;
}

.sidebar-logo {
  display: inline !important;
}

.sidebar-header-content {
  display: flex !important;
}

.sidebar-header {
  display: block !important;
}

/* Hover states matching React */
.sidebar-btn:hover,
.sidebar-new-course-btn:hover,
.project-btn:hover {
  background-color: #eff6ff !important;
  color: #020817 !important;
}

/* Active states */
.project-item.active .project-btn {
  background-color: #eff6ff !important;
  color: #2563eb !important;
}

.project-item.active .project-btn svg {
  color: #2563eb !important;
}

.project-item.active .project-btn .sidebar-text {
  color: #2563eb !important;
  font-weight: 500 !important;
}

.bg-sidebar-bg {
  background-color: #fafbfc;
}

.bg-card {
  background-color: #ffffff;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
  
  .md\:block {
    display: block;
  }
  
  .md\:inline {
    display: inline;
  }
  
  .md\:flex {
    display: flex;
  }
  
  .md\:items-stretch {
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .md\:hidden {
    display: none;
  }
}

.-translate-x-full {
  transform: translateX(-100%);
}

.translate-x-0 {
  transform: translateX(0);
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 0.375rem 0.5rem;
}

.btn-ghost:hover {
  background-color: var(--hover-bg);
}

.gap-2 {
  gap: 0.5rem;
}

/* Input styles */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
}

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

/* Textarea styles */
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: var(--input-bg);
  color: var(--text-primary);
  resize: vertical;
  font-family: inherit;
}

.textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 88, 204, 0.1);
}

/* Card styles */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Avatar styles */
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Icon styles */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Utility classes */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

.min-h-screen {
  min-height: 100vh;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.w-96 {
  width: 24rem;
}

.w-\[700px\] {
  width: 700px;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.max-h-\[800px\] {
  max-height: 800px;
}

.h-\[680px\] {
  height: 680px;
}

/* Transform */
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Opacity */
.opacity-80 {
  opacity: 0.8;
}

.opacity-90 {
  opacity: 0.9;
}

/* Backdrop */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Space */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Leading */
.leading-relaxed {
  line-height: 1.625;
}

.leading-tight {
  line-height: 1.25;
}

/* Italic */
.italic {
  font-style: italic;
}

/* Object */
.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

/* Sr-only (screen reader only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* When sidebar has collapsed class, apply styles */
#sidebar.collapsed {
  width: 72px !important;
  overflow: hidden !important;
}

#sidebar.collapsed #sidebar-expanded-content {
  display: none !important;
}

#sidebar.collapsed #sidebar-collapsed-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

#sidebar.collapsed #sidebar-logo-text {
  display: none !important;
}

#sidebar.collapsed #sidebar-header {
  justify-content: center !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* Hide all text spans when collapsed - EXCEPT in collapsed content */
#sidebar.collapsed #sidebar-expanded-content span,
#sidebar.collapsed #sidebar-expanded-content .flex-1 {
  display: none !important;
}

/* Center all buttons in expanded content when collapsed */
#sidebar.collapsed #sidebar-expanded-content button {
  justify-content: center !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* Hide project list, pinned list, recent list when collapsed */
#sidebar.collapsed #projects-list,
#sidebar.collapsed #pinned-list,
#sidebar.collapsed #recent-list {
  display: none !important;
}

/* Hide dividers when collapsed */
#sidebar.collapsed .my-3 {
  display: none !important;
}

/* Ensure collapsed content buttons are centered */
#sidebar.collapsed #sidebar-collapsed-content button {
  justify-content: center !important;
  width: 100% !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

/* Hide any text in collapsed content buttons */
#sidebar.collapsed #sidebar-collapsed-content button span {
  display: none !important;
}

/* Ensure collapsed content uses flex column aligned to bottom */
#sidebar.collapsed #sidebar-collapsed-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-bottom: 1rem !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
}

/* Ensure the scrollable container allows flex-end to work */
#sidebar.collapsed nav > div {
  display: flex !important;
  flex-direction: column !important;
}
