.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}

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

.dialog-content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(45, 106, 79, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
}

.dialog-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #2d6a4f 0%, #7cb342 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  font-size: 20px;
  color: #2d6a4f;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  color: white;
  transform: rotate(90deg);
  border-color: rgba(239, 68, 68, 1);
}

.dialog-body {
  padding: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2d6a4f;
  text-shadow: 0 1px 2px rgba(45, 106, 79, 0.12);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.65);
  color: #2d6a4f;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(45, 106, 79, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(45, 106, 79, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(45, 106, 79, 0.6);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2),
              inset 0 2px 4px rgba(45, 106, 79, 0.08);
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex: 1;
}

.input-with-button button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #a8e6cf, #dcedc1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  color: #2d6a4f;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.18);
}

.input-with-button button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.22);
  background: linear-gradient(135deg, #8bd7b8, #cfe7a8);
}

.icon-preview {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.12);
}

.icon-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dialog-footer {
  padding: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
}

.btn {
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.12);
}

.btn-cancel {
  background: rgba(255, 255, 255, 0.6);
  color: #2d6a4f;
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.18);
}

.btn-save {
  background: linear-gradient(135deg, #a8e6cf, #dcedc1);
  color: #2d6a4f;
  border-color: rgba(45, 106, 79, 0.35);
}

.btn-save:hover {
  background: linear-gradient(135deg, #8bd7b8, #cfe7a8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.22);
}

.btn-cancel:hover {
  background: #cbd5e0;
}

.btn-primary {
  background: linear-gradient(135deg, #a8e6cf, #dcedc1);
  color: #2d6a4f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(129, 199, 132, 0.3);
}
