/* LitigesPro WordPress Plugin Styles */
/* Based on shadcn/ui and Tailwind CSS design system */

/* Notification Modal Styles */
.litigespro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.litigespro-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.litigespro-modal-content {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.litigespro-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.litigespro-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.litigespro-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #6b7280;
    transition: all 0.2s;
}

.litigespro-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.litigespro-modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.litigespro-modal-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.litigespro-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.litigespro-notification-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.litigespro-notification-item:hover {
    background-color: #f3f4f6;
}

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222.2 84% 4.9%;
  --muted: 210 40% 96%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96%;
  --accent-foreground: 222.2 84% 4.9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 0.5rem;
  --sidebar: 0 0% 98%;
  --sidebar-foreground: 240 5.3% 26.1%;
  --sidebar-primary: 240 5.9% 10%;
  --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 240 4.8% 95.9%;
  --sidebar-accent-foreground: 240 5.9% 10%;
  --sidebar-border: 220 13% 91%;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 217.2 91.2% 59.8%;
  --primary-foreground: 222.2 84% 4.9%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 224.3 76.3% 94.1%;
  --sidebar: 240 5.9% 10%;
  --sidebar-foreground: 240 4.8% 95.9%;
  --sidebar-primary: 224.3 76.3% 94.1%;
  --sidebar-primary-foreground: 240 5.9% 10%;
  --sidebar-accent: 240 3.7% 15.9%;
  --sidebar-accent-foreground: 240 4.8% 95.9%;
  --sidebar-border: 240 3.7% 15.9%;
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
}

/* LitigesPro Container */
.litigespro-container {
  display: flex;
  min-height: 100vh;
  background-color: #f8f8f8!important;
  position: relative;
}

/* Sidebar Styles */
.litigespro-sidebar {
  width: 16rem;
  background-color: #ffffff;
  border-right: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.litigespro-sidebar.collapsed {
  width: 4rem;
}

/* Mobile Sidebar Toggle Button */
.litigespro-mobile-toggle {
  display: none;
  background: #03204B!important;
  border: none;
  color: #fff!important;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.litigespro-mobile-toggle:hover {
  background: hsl(var(--primary) / 0.9);
}

.litigespro-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  background: #ffffff;
  margin-bottom: 0;
}

.litigespro-sidebar-header::after {
  display: none;
}

.litigespro-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.litigespro-logo h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #000000;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  text-shadow: none;
}

.litigespro-logo p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  font-weight: 500;
  opacity: 0.8;
}

.litigespro-nav-group {
  padding: 0;
  margin-bottom: 1rem;
  position: static;
}

.litigespro-nav-group:not(:last-child)::after {
  display: none;
}

.litigespro-nav-group:last-child {
  margin-bottom: 0;
}

.litigespro-nav-label {
  font-size: 15px!important;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem 0.5rem 1.5rem;
  margin: 0 0.75rem;
  background: #e9e9e9;
  border: none;
  box-shadow: none;
  position: static;
  overflow: visible;
  display: block;
  align-items: normal;
  justify-content: normal;
  border-radius: 0.375rem;
}

.litigespro-nav-label::before {
  display: none;
}

.litigespro-nav-label::after {
  display: none;
}

.litigespro-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: #000000;
  text-decoration: none;
  transition: none;
  cursor: pointer;
  border-radius: 0;
  margin: 0;
  position: static;
  overflow: visible;
  border: none;
  background: none;
}

.litigespro-nav-item::before {
  display: none;
}

.litigespro-nav-item:hover {
  background-color: transparent;
  color: #000000;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.litigespro-nav-item.active {
  background: transparent;
  color: #000000;
  border-color: transparent;
  box-shadow: none;
}

.litigespro-nav-item.active::before {
  display: none;
}

.litigespro-nav-item > * {
  position: static;
  z-index: auto;
}

.litigespro-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: none;
  color: #000000;
}

.litigespro-nav-item:hover .litigespro-nav-icon {
  color: #000000;
  transform: none;
}

.litigespro-nav-item.active .litigespro-nav-icon {
  color: #000000;
  transform: none;
}

/* Main Content Area */
.litigespro-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  background-color: hsl(var(--background));
}

/* Card Components */
.litigespro-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.litigespro-card-header {
  padding: 1.5rem 1.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.litigespro-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--card-foreground));
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.litigespro-card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  line-height: 1.5;
}

.litigespro-card-content {
  padding: 1.5rem;
}

/* Form Components */
.litigespro-form-group {
  margin-bottom: 1rem;
}

.litigespro-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.litigespro-input,
.litigespro-textarea,
.litigespro-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  line-height: 1.4;
  transition: border-color 0.15s ease-in-out;
}

.litigespro-input:focus,
.litigespro-textarea:focus,
.litigespro-select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.litigespro-textarea {
  resize: vertical;
  min-height: 6rem;
}

/* Button Components */
.litigespro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

.litigespro-btn-primary {
  background-color: #2495cb!important;
  color: hsl(var(--primary-foreground));
}

.litigespro-btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.litigespro-btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.litigespro-btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.litigespro-btn-outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.litigespro-btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Badge Components */
.litigespro-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.litigespro-badge-default {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.litigespro-badge-secondary {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.litigespro-badge-outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.litigespro-badge-warning {
  background-color: hsl(var(--warning));
  color: white;
}

/* Grid System */
.litigespro-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

/* Chart Container Styles */
.litigespro-dashboard-charts {
  margin-bottom: 2rem;
}

.litigespro-chart-container {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.litigespro-chart-container:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.litigespro-chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: center;
}

.litigespro-chart-wrapper {
  position: relative;
  height: 300px;
  width: 100%;
}

.litigespro-chart-wrapper canvas {
  max-height: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1200px) {
  .litigespro-grid-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .litigespro-grid-cols-2,
  .litigespro-grid-cols-3,
  .litigespro-grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .litigespro-chart-container {
    padding: 1rem;
  }
  
  .litigespro-chart-wrapper {
    height: 250px;
  }
  
  .litigespro-chart-title {
    font-size: 1rem;
  }
}

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

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

.litigespro-space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* File Upload Area */
.litigespro-upload-area {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.15s ease-in-out;
  cursor: pointer;
}

.litigespro-upload-area:hover {
  border-color: hsl(var(--ring));
}

/* Chat System */
.litigespro-chat-container {
  display: flex;
  height: 600px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.litigespro-chat-sidebar {
  width: 300px;
  border-right: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted));
}

.litigespro-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.litigespro-conversation-item {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.litigespro-conversation-item:hover {
  background-color: hsl(var(--accent));
}

.litigespro-conversation-item.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.litigespro-message {
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  max-width: 70%;
}

.litigespro-message.own {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  margin-left: auto;
}

.litigespro-message.other {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

/* Avatar Component */
.litigespro-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
}

.litigespro-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Status Indicators */
.litigespro-status-indicator {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--muted-foreground));
  margin-left: 0.5rem;
}

.litigespro-status-online {
  background-color: hsl(142.1 76.2% 36.3%);
}

.litigespro-status-offline {
  background-color: hsl(var(--muted-foreground));
}

/* Responsive Design */
@media (max-width: 1024px) {
  .litigespro-sidebar {
    width: 4rem;
  }

  .litigespro-sidebar .litigespro-nav-item span {
    display: none;
  }

  .litigespro-chat-container {
    flex-direction: column;
  }

  .litigespro-chat-sidebar {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .litigespro-main {
    padding: 1rem;
  }

  .litigespro-card-content {
    padding: 1rem;
  }

  .litigespro-chat-container {
    height: 500px;
  }

  .litigespro-chat-sidebar {
    height: 150px;
  }
}

/* Utility Classes */
.litigespro-hidden {
  display: none !important;
}

.litigespro-flex {
  display: flex;
}

.litigespro-flex-1 {
  flex: 1;
}

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

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

.litigespro-gap-2 {
  gap: 0.5rem;
}

.litigespro-gap-4 {
  gap: 1rem;
}

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

.litigespro-text-xs {
  font-size: 0.75rem;
}

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

.litigespro-font-semibold {
  font-weight: 600;
}

.litigespro-text-muted {
  color: hsl(var(--muted-foreground));
}

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

/* Scroll Area */
.litigespro-scroll-area {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--border)) transparent;
}

.litigespro-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.litigespro-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.litigespro-scroll-area::-webkit-scrollbar-thumb {
  background-color: hsl(var(--border));
  border-radius: 3px;
}

.litigespro-scroll-area::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--muted-foreground));
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .litigespro-container {
    flex-direction: row;
    position: relative;
  }

  .litigespro-mobile-toggle {
    display: block;
  }

  .litigespro-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    background: hsl(var(--sidebar));
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .litigespro-sidebar.mobile-open {
    left: 0;
  }

  .litigespro-main {
    width: 100%;
    margin-left: 0;
    padding: 1rem;
    padding-top: 4rem;
  }

  /* Hide labels on mobile by default, show only icons */
  .litigespro-sidebar .litigespro-nav-item span {
    display: none;
  }

  .litigespro-sidebar .litigespro-nav-label {
    display: none;
  }

  .litigespro-sidebar .litigespro-sidebar-text {
    display: none;
  }

  /* Show only icons in mobile sidebar by default */
  .litigespro-sidebar .litigespro-nav-item {
    justify-content: center;
    padding: 1rem;
  }

  .litigespro-sidebar .litigespro-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  /* Show labels when sidebar is open on mobile */
  .litigespro-sidebar.mobile-open .litigespro-nav-item span {
    display: inline;
  }

  .litigespro-sidebar.mobile-open .litigespro-nav-label {
    display: block;
  }

  .litigespro-sidebar.mobile-open .litigespro-sidebar-text {
    display: block;
  }

  .litigespro-sidebar.mobile-open .litigespro-nav-item {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }

  .litigespro-sidebar.mobile-open .litigespro-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
  }

  /* Mobile overlay */
  .litigespro-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .litigespro-mobile-overlay.active {
    display: block;
  }

  /* Mobile Close Button */
.litigespro-mobile-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: hsl(var(--destructive));
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Ensure sidebar header has relative positioning for close button */
.litigespro-sidebar-header {
  position: relative;
}

/* Prevent body scroll when sidebar is open on mobile */
body.sidebar-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Improve mobile close button */
.litigespro-mobile-close:hover {
  background: hsl(var(--destructive) / 0.9);
  transform: scale(1.05);
}

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

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

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

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

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

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

  .conversations-sidebar {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 1px solid hsl(var(--border));
  }

  .chat-area {
    height: 400px;
  }

  .documents-header {
    flex-direction: column;
    gap: 1rem;
  }

  .documents-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .litigation-details-grid {
    grid-template-columns: 1fr;
  }

  .litigespro-form-row {
    flex-direction: column;
  }

  .litigespro-btn {
    width: 100%;
    justify-content: center;
  }

  .litigespro-btn-group {
    flex-direction: column;
  }

  .litigespro-card-content {
    padding: 1rem;
  }

  .litigespro-nav-group {
    padding: 0.5rem 0;
  }

  .litigespro-nav-item {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
  }

  .litigespro-sidebar-text {
    display: none;
  }

  .litigespro-avatar {
    width: 2rem;
    height: 2rem;
  }

  .litigespro-table-container {
    overflow-x: auto;
  }

  .litigespro-table {
    min-width: 600px;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .litigespro-sidebar {
    width: 4rem;
  }
  
  .litigespro-main {
    margin-left: 4rem;
  }
  
  .litigespro-grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .litigespro-grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .litigespro-chart-wrapper {
    height: 280px;
  }

  .conversations-sidebar {
    width: 250px;
  }

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

/* Desktop Responsive */
@media (min-width: 1025px) {
  .litigespro-sidebar {
    width: 16rem;
  }

  .litigespro-main {
    margin-left: 0.1px!important;
  }

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

  .conversations-sidebar {
    width: 300px;
  }
}

/* Mobile Toggle Button */
.litigespro-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}

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

/* Mobile Overlay */
.litigespro-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .litigespro-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .litigespro-btn {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .litigespro-nav-item {
    padding: 0.75rem 1rem;
  }

  .conversation-item {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .litigespro-input,
  .litigespro-textarea,
  .litigespro-select {
    padding: 0.875rem;
    font-size: 1rem;
  }
}

/* Hide/Show Utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .hide-desktop {
    display: none !important;
  }
}

.show-mobile {
  display: none;
}

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

/* Mobile Layout Utilities */
@media (max-width: 768px) {
  .mobile-flex-col {
    flex-direction: column;
  }

  .mobile-flex-row {
    flex-direction: row;
  }

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

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

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

  .mobile-w-full {
    width: 100%;
  }

  .mobile-h-auto {
    height: auto;
  }
}

/* Mobile Spacing */
@media (max-width: 768px) {
  .mobile-p-4 {
    padding: 1rem;
  }

  .mobile-p-2 {
    padding: 0.5rem;
  }

  .mobile-m-2 {
    margin: 0.5rem;
  }

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

  .mobile-gap-2 {
    gap: 0.5rem;
  }

  .mobile-gap-4 {
    gap: 1rem;
  }
}

/* Mobile Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

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

  .mobile-text-xs {
    font-size: 0.75rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .litigespro-sidebar,
  .litigespro-mobile-header,
  .litigespro-mobile-toggle {
    display: none !important;
  }

  .litigespro-main {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .litigespro-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}

/* Focus Styles */
.litigespro-nav-item:focus,
.litigespro-btn:focus,
.litigespro-input:focus,
.litigespro-textarea:focus,
.litigespro-select:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .litigespro-card {
    border: 2px solid hsl(var(--foreground));
  }

  .litigespro-btn {
    border: 2px solid currentColor;
  }
}

/* Status Indicators */
.litigespro-status-indicator {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--muted-foreground));
  margin-left: 0.5rem;
}

.litigespro-status-online {
  background-color: hsl(142.1 76.2% 36.3%);
}

.litigespro-status-offline {
  background-color: hsl(var(--muted-foreground));
}

@media (max-width: 768px) {
  .litigespro-status-indicator {
    width: 0.375rem;
    height: 0.375rem;
    margin-left: 0.25rem;
  }
}

/* Scrollable Areas */
.litigespro-scrollable::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.litigespro-scrollable::-webkit-scrollbar-track {
  background: hsl(var(--muted));
  border-radius: 3px;
}

.litigespro-scrollable::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 3px;
}

.litigespro-scrollable::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground));
}

@media (max-width: 768px) {
  .litigespro-scrollable::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
}

/* Assignment System Styles */
.litigespro-assignment-system {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.litigespro-assignment-header {
  text-align: center;
  margin-bottom: 2rem;
}

.litigespro-assignment-header h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.litigespro-assignment-header p {
  color: #6b7280;
  font-size: 1.1rem;
}

.litigespro-assignments-list {
  margin-top: 2rem;
}

.litigespro-assignments-list h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.litigespro-assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.litigespro-assignment-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.litigespro-assignment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.litigespro-assignment-role {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.litigespro-assignment-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.litigespro-assignment-user {
  flex: 1;
}

.litigespro-assignment-user strong {
  display: block;
  font-size: 0.875rem;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.litigespro-assignment-user small {
  color: #6b7280;
  font-size: 0.75rem;
}

.litigespro-assignment-arrow {
  color: #9ca3af;
  font-size: 1.25rem;
  font-weight: bold;
}

.litigespro-assignment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.litigespro-assignment-footer small {
  color: #6b7280;
  font-size: 0.75rem;
}

.litigespro-user-assignments {
  margin-top: 2rem;
}

.litigespro-user-assignments h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.litigespro-assignment-section {
  margin-bottom: 1.5rem;
}

.litigespro-assignment-section h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

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

.litigespro-assignment-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.litigespro-assignment-list li:last-child {
  border-bottom: none;
}

.litigespro-assignment-list li strong {
  color: #1f2937;
}

.litigespro-empty {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}

.litigespro-loading {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.litigespro-alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.litigespro-alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

.litigespro-alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.litigespro-alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #60a5fa;
}

.litigespro-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-loading {
  display: none;
}

.litigespro-btn.loading .btn-text {
  display: none;
}

.litigespro-btn.loading .btn-loading {
  display: inline;
}

/* Responsive adjustments for assignments */
@media (max-width: 768px) {
  .litigespro-assignments-grid {
    grid-template-columns: 1fr;
  }
  
  .litigespro-assignment-content {
    flex-direction: column;
    text-align: center;
  }
  
  .litigespro-assignment-arrow {
    transform: rotate(90deg);
  }
  
  .litigespro-form-actions {
    flex-direction: column;
  }

  /* Responsive improvements for all templates */
  .litigespro-card {
    margin-bottom: 1rem;
  }

  .litigespro-card-content {
    padding: 1rem;
  }

  /* Responsive grid improvements */
  .litigespro-grid {
    gap: 1rem;
  }

  /* Responsive table improvements */
  .litigespro-table {
    font-size: 0.875rem;
  }

  .litigespro-table th,
  .litigespro-table td {
    padding: 0.5rem;
  }

  /* Responsive form improvements */
  .litigespro-form-group {
    margin-bottom: 1rem;
  }

  .litigespro-input,
  .litigespro-textarea,
  .litigespro-select {
    font-size: 1rem;
    padding: 0.75rem;
  }

  /* Responsive button improvements */
  .litigespro-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  /* Responsive text improvements */
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  /* Responsive spacing improvements */
  .litigespro-space-y-6 > * + * {
    margin-top: 1.5rem;
  }

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

  /* Responsive assignment system improvements */
  .litigespro-assignment-system {
    padding: 1rem;
  }

  .litigespro-assignments-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .litigespro-assignment-item {
    padding: 1rem;
  }

  /* Responsive profile viewer improvements */
  .litigespro-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Responsive form actions */
  .litigespro-form-actions {
    gap: 0.5rem;
  }

  .litigespro-form-actions .litigespro-btn {
    flex: 1;
    min-width: 0;
  }
}

/* Mobile Close Button */
.litigespro-mobile-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: hsl(var(--destructive));
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.litigespro-mobile-close:hover {
  background: hsl(var(--destructive) / 0.9);
}

@media (max-width: 768px) {
  .litigespro-mobile-close {
    display: block;
  }
}

