.add-chart-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: 10000;
  backdrop-filter: blur(4px);
}

.add-chart-dialog {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.add-chart-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e4e8;
  background: #f6f8fa;
}

.add-chart-dialog-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #24292e;
}

.add-chart-dialog-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  color: #57606a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.add-chart-dialog-close:hover {
  background: #e1e4e8;
  color: #24292e;
}

.add-chart-dialog-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

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

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

.add-chart-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #24292e;
  margin-bottom: 8px;
}

.add-chart-form-group label .required {
  color: #d73a49;
  font-weight: 600;
}

.add-chart-form-group label .optional {
  color: #6a737d;
  font-weight: 400;
  font-size: 12px;
}

.add-chart-input,
.add-chart-select,
.add-chart-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
  color: #24292e;
  background: #ffffff;
  transition: all 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.add-chart-textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}

.add-chart-input:hover,
.add-chart-select:hover,
.add-chart-textarea:hover {
  border-color: #d0d7de;
}

.add-chart-input:focus,
.add-chart-select:focus,
.add-chart-textarea:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.add-chart-select {
  cursor: pointer;
}

.add-chart-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e1e4e8;
  background: #f6f8fa;
}

.add-chart-btn-cancel,
.add-chart-btn-create {
  padding: 10px 20px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.add-chart-btn-cancel {
  background: #ffffff;
  color: #24292e;
}

.add-chart-btn-cancel:hover {
  background: #f6f8fa;
  border-color: #d0d7de;
}

.add-chart-btn-create {
  background: #0969da;
  color: #ffffff;
  border-color: #0969da;
}

.add-chart-btn-create:hover {
  background: #0860ca;
}

.add-chart-btn-create:active {
  background: #0757ba;
}

@media (max-width: 768px) {
  .add-chart-dialog {
    width: 95%;
    max-height: 95vh;
  }
  
  .add-chart-dialog-content {
    padding: 16px;
  }
  
  .add-chart-dialog-header,
  .add-chart-dialog-footer {
    padding: 12px 16px;
  }
}
