* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  background: #f5f5f5;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}

h1 {
  font-size: 1.5rem;
  font-weight: 500;
}

.controls {
  background: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  z-index: 10;
}

.file-input-wrapper {
  position: relative;
}

input[type="file"] {
  display: none;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover {
  background: #229954;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#canvas {
  flex: 1;
  background: white;
  margin: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.info {
  padding: 0.5rem 1rem;
  background: #ecf0f1;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #7f8c8d;
  flex: 1;
  min-width: 200px;
  transition: all 0.3s;
}

.privacy-notice {
  background: #d4edda;
  color: #155724;
  padding: 0.75rem 1rem;
  border-left: 4px solid #28a745;
  margin: 0 2rem 1rem 2rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  margin: 1rem 2rem;
  border-radius: 4px;
  display: none;
  border-left: 4px solid #dc3545;
  animation: slideIn 0.3s ease-out;
}

.success-message {
  background: #d1ecf1;
  color: #0c5460;
  padding: 1rem;
  margin: 1rem 2rem;
  border-radius: 4px;
  display: none;
  border-left: 4px solid #17a2b8;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BPMN.js specific styles */
.djs-container {
  width: 100%;
  height: 100%;
}

.bjs-powered-by {
  display: none !important;
}

/* Make sure palette and context pad are visible */
.djs-palette,
.djs-context-pad {
  z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .controls {
    padding: 0.75rem 1rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  #canvas {
    margin: 0.5rem;
  }

  .privacy-notice {
    margin: 0 1rem 0.5rem 1rem;
    font-size: 0.85rem;
  }
}
