/* Responsive modal for redundancy */
#redundancy-modal .modal-content {
  max-width: 98vw;
  max-height: 90vh;
  overflow-y: auto;
}

#redundancy-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

@media (max-width: 768px) {
  #redundancy-modal .modal-content {
    max-width: 100vw;
    margin: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    max-height: 95vh;
  }
  #redundancy-modal .modal-body {
    max-height: 50vh;
    padding: 0.25rem;
  }
}
/* Custom styles for Dire Prosperity Party System */

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

/* Modal responsive fixes */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .modal-body {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }
}

/* Notification responsive */
.notification-item {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

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

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

/* Custom gradient backgrounds */
.bg-prosperity-gradient {
  background: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #10b981;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  /* Modal adjustments for mobile */
  .fixed.inset-0 {
    padding: 0.5rem;
  }
  
  .modal-container {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
  }
  
  /* Notification panel responsive */
  .notification-panel {
    max-height: 300px;
    overflow-y: auto;
  }
  
  /* Button responsive */
  .btn-responsive {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}