/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.modal[open] {
  display: block;
}

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

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.dark .modal-content {
  background: rgb(30 41 59);
  border: 1px solid rgb(51 65 85);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgb(226 232 240);
}

.dark .modal-header {
  border-bottom-color: rgb(51 65 85);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(15 23 42);
  display: flex;
  align-items: center;
}

.dark .modal-title {
  color: rgb(248 250 252);
}

.modal-close {
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: rgb(107 114 128);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: rgb(243 244 246);
  color: rgb(15 23 42);
}

.dark .modal-close:hover {
  background-color: rgb(51 65 85);
  color: rgb(248 250 252);
}

.modal-body {
  padding: 1.5rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to { 
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Scrollbar styles for modal */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgb(241 245 249);
}

.dark .modal-body::-webkit-scrollbar-track {
  background: rgb(30 41 59);
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgb(148 163 184);
  border-radius: 3px;
}

.dark .modal-body::-webkit-scrollbar-thumb {
  background: rgb(71 85 105);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgb(100 116 139);
}

.dark .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgb(148 163 184);
}

