/* Account Type Editor Styles */

.account-type-editor {
  padding: 20px;
}

.editor-header {
  margin-bottom: 32px;
}

.editor-header .section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-900);
}

.editor-header .section-description {
  font-size: 14px;
  color: var(--color-text-700);
  margin-bottom: 16px;
}

.editor-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.account-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.account-type-card {
  background: var(--color-neutral-white);
  border: 1px solid var(--color-grey-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.account-type-card:hover {
  box-shadow: var(--shadow-md);
}

.account-type-card .card-header {
  padding: 16px;
  background: var(--color-grey-700);
  border-bottom: 1px solid var(--color-grey-800);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-title-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-type-card .card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-900);
  margin: 0;
}

.account-type-card .badge {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-blue { background: var(--color-information-100); color: var(--color-information-700); }
.badge-red { background: var(--color-danger-100); color: var(--color-danger-600); }
.badge-green { background: var(--color-success-100); color: var(--color-success-700); }
.badge-purple { background: var(--color-accent-100); color: var(--color-accent-600); }
.badge-orange { background: var(--color-warning-100); color: var(--color-warning-700); }
.badge-gray { background: var(--color-grey-800); color: var(--color-text-800); }

body.dark-mode .badge-blue { background: var(--color-information-900); color: var(--color-information-300); }
body.dark-mode .badge-red { background: var(--color-danger-900); color: var(--color-danger-300); }
body.dark-mode .badge-green { background: var(--color-success-900); color: var(--color-success-300); }
body.dark-mode .badge-purple { background: var(--color-accent-900); color: var(--color-accent-300); }
body.dark-mode .badge-orange { background: var(--color-warning-900); color: var(--color-warning-300); }

.account-type-card .card-body {
  padding: 16px;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--color-grey-600);
  border: 1px solid var(--color-grey-800);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.account-item:hover {
  background: var(--color-grey-700);
  border-color: var(--color-information-500);
}

.account-item .account-name {
  font-size: 14px;
  color: var(--color-text-900);
  flex: 1;
}

.account-item .btn-icon {
  opacity: 0;
  transition: opacity 0.2s;
}

.account-item:hover .btn-icon {
  opacity: 1;
}

.add-account-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.add-account-row input {
  flex: 1;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background: var(--color-neutral-white);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-grey-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-900);
  margin: 0;
}

.modal-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-900);
  margin-bottom: 8px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-grey-800);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .account-types-grid {
    grid-template-columns: 1fr;
  }
  
  .editor-actions {
    flex-direction: column;
  }
}
