.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header h1 {
  color: #2C3087;
  font-size: 1.875rem;
  font-weight: 600;
}

.addButton {
  background-color: #DE751C;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.addButton:hover {
  background-color: #c06619;
  transform: translateY(-1px);
}

.tableContainer {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  background-color: #f8fafc;
  color: #2C3087;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover {
  background-color: #f8fafc;
}

.titleCell {
  font-weight: 500;
  color: #2d3748;
}

.actionsCell {
  white-space: nowrap;
}

.actionButtons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.viewButton,
.editButton,
.deleteButton {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.viewButton {
  background-color: #2C3087;
  color: white;
  text-decoration: none;
}

.viewButton:hover {
  background-color: #232a6d;
  transform: translateY(-1px);
}

.editButton {
  background-color: #DE751C;
  color: white;
}

.editButton:hover {
  background-color: #c06619;
  transform: translateY(-1px);
}

.deleteButton {
  background-color: #ef4444;
  color: white;
}

.deleteButton:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.noData {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-size: 1.125rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.modalContent {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  width: 100%;
  max-width: 32rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modalContent h2 {
  color: #2C3087;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.formGroup {
  margin-bottom: 1.5rem;
}

.formGroup label {
  display: block;
  margin-bottom: 0.5rem;
  color: #4a5568;
  font-weight: 500;
}

.formGroup input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.formGroup input:focus {
  outline: none;
  border-color: #2C3087;
  box-shadow: 0 0 0 3px rgba(44, 48, 135, 0.1);
}

.formGroup input[type="file"] {
  padding: 0.5rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e0;
  cursor: pointer;
}

.formGroup input[type="file"]:hover {
  border-color: #2C3087;
}

.formGroup select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 1rem;
  color: #1a202c;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.formGroup select:hover {
  border-color: #cbd5e0;
}

.formGroup select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.formGroup select:disabled {
  background-color: #f7fafc;
  cursor: not-allowed;
  opacity: 0.7;
}

.formGroup select option {
  padding: 0.5rem;
  font-size: 1rem;
}

.sourceTypeContainer {
  margin-bottom: 1rem;
  position: relative;
}

.sourceTypeContainer label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #4a5568;
}

.formGroup {
  transition: opacity 0.3s ease-in-out;
}

.formGroup input[type="url"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.formGroup input[type="url"]:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.formGroup input[type="url"]:disabled {
  background-color: #f7fafc;
  cursor: not-allowed;
  opacity: 0.7;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formGroup.animate {
  animation: fadeIn 0.3s ease-in-out;
}

.modalActions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.submitButton,
.cancelButton {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  flex: 1;
}

.submitButton {
  background-color: #2C3087;
  color: white;
}

.submitButton:hover:not(:disabled) {
  background-color: #232a6d;
  transform: translateY(-1px);
}

.cancelButton {
  background-color: #f1f5f9;
  color: #64748b;
}

.cancelButton:hover:not(:disabled) {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.submitButton:disabled,
.cancelButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.errorMessage {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.loadingContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 200px;
}

.loadingContainer span {
  color: #4a5568;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .header h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  .addButton {
    width: 100%;
  }

  .tableContainer {
    overflow-x: auto;
  }

  .table th,
  .table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .actionButtons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .viewButton,
  .editButton,
  .deleteButton {
    width: 100%;
    text-align: center;
  }

  .modalContent {
    margin: 1rem;
    padding: 1.5rem;
  }

  .modalActions {
    flex-direction: column;
  }

  .submitButton,
  .cancelButton {
    width: 100%;
  }
} 