/* Atlassian-inspired Design System Variables */
:root {
  /* Color Palette */
  --ds-surface: #ffffff;
  --ds-surface-sunken: #f7f8f9;
  --ds-surface-raised: #ffffff;
  --ds-surface-overlay: #ffffff;

  --ds-background-accent-blue-subtlest: #e9f2ff;
  --ds-background-accent-blue-subtle: #cce0ff;
  --ds-background-accent-blue-bold: #0052cc;

  --ds-background-danger-bold: #de350b;
  --ds-background-danger-subtle: #ffebe6;
  --ds-background-success-bold: #006644;
  --ds-background-success-subtle: #e3fcef;
  --ds-background-discovery-bold: #5243aa;
  --ds-background-warning-bold: #ff8b00;

  --ds-text: #172b4d;
  --ds-text-subtle: #6b778c;
  --ds-text-subtlest: #97a0af;
  --ds-text-inverse: #ffffff;
  --ds-text-accent-blue: #0052cc;
  --ds-text-danger: #de350b;
  --ds-text-success: #006644;

  --ds-border: #dfe1e6;
  --ds-border-focus: #4c9aff;
  --ds-border-selected: #0052cc;

  /* Typography */
  --ds-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --ds-font-family-mono: 'SFMono-Medium', 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, Consolas, Courier, monospace;

  --ds-font-size-050: 0.6875rem;
  --ds-font-size-075: 0.75rem;
  --ds-font-size-100: 0.875rem;
  --ds-font-size-200: 1rem;
  --ds-font-size-300: 1.25rem;
  --ds-font-size-400: 1.5rem;
  --ds-font-size-500: 1.75rem;
  --ds-font-size-600: 2rem;

  --ds-font-weight-regular: 400;
  --ds-font-weight-medium: 500;
  --ds-font-weight-semibold: 600;

  /* Spacing */
  --ds-space-025: 0.125rem;
  --ds-space-050: 0.25rem;
  --ds-space-075: 0.375rem;
  --ds-space-100: 0.5rem;
  --ds-space-150: 0.75rem;
  --ds-space-200: 1rem;
  --ds-space-250: 1.25rem;
  --ds-space-300: 1.5rem;
  --ds-space-400: 2rem;
  --ds-space-500: 2.5rem;
  --ds-space-600: 3rem;
  --ds-space-800: 4rem;

  /* Elevation */
  --ds-elevation-shadow-raised: 0px 1px 1px rgba(9, 30, 66, 0.25), 0px 0px 1px rgba(9, 30, 66, 0.31);
  --ds-elevation-shadow-overlay: 0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31);
  
  /* Border Radius */
  --ds-border-radius-050: 2px;
  --ds-border-radius-100: 3px;
  --ds-border-radius-200: 6px;
  --ds-border-radius-300: 8px;
  --ds-border-radius-400: 12px;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--ds-font-family);
  font-size: var(--ds-font-size-200);
  font-weight: var(--ds-font-weight-regular);
  line-height: 1.42857;
  color: var(--ds-text);
  background-color: var(--ds-surface-sunken);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--ds-font-weight-semibold);
  line-height: 1.2;
  margin: 0 0 var(--ds-space-200) 0;
  color: var(--ds-text);
}

h1 {
  font-size: var(--ds-font-size-600);
  font-weight: var(--ds-font-weight-medium);
}

h2 {
  font-size: var(--ds-font-size-500);
}

h3 {
  font-size: var(--ds-font-size-400);
}

h4 {
  font-size: var(--ds-font-size-300);
}

p {
  margin: 0 0 var(--ds-space-200) 0;
  line-height: 1.42857;
}

/* Buttons */
.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--ds-space-075) var(--ds-space-150);
  border: none;
  border-radius: var(--ds-border-radius-100);
  font-family: var(--ds-font-family);
  font-size: var(--ds-font-size-100);
  font-weight: var(--ds-font-weight-medium);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  outline: none;
  min-height: 2rem;
}

.ds-button:focus {
  box-shadow: 0 0 0 2px var(--ds-border-focus);
}

.ds-button-primary {
  background-color: var(--ds-background-accent-blue-bold);
  color: var(--ds-text-inverse);
}

.ds-button-primary:hover {
  background-color: #0065ff;
}

.ds-button-danger {
  background-color: var(--ds-background-danger-bold);
  color: var(--ds-text-inverse);
}

.ds-button-danger:hover {
  background-color: #ff5630;
}

.ds-button-success {
  background-color: var(--ds-background-success-bold);
  color: var(--ds-text-inverse);
}

.ds-button-success:hover {
  background-color: #00875a;
}

.ds-button-secondary {
  background-color: var(--ds-surface);
  color: var(--ds-text);
  border: 1px solid var(--ds-border);
}

.ds-button-secondary:hover {
  background-color: var(--ds-surface-sunken);
}


/* Cards */
.ds-card {
  background-color: var(--ds-surface-raised);
  border-radius: var(--ds-border-radius-200);
  box-shadow: var(--ds-elevation-shadow-raised);
  padding: var(--ds-space-300);
  margin-bottom: var(--ds-space-300);
}

/* Inline messages */
.ds-inline-message {
  display: flex;
  align-items: flex-start;
  padding: var(--ds-space-150);
  border-radius: var(--ds-border-radius-100);
  margin-bottom: var(--ds-space-200);
}

.ds-inline-message-success {
  background-color: var(--ds-background-success-subtle);
  color: var(--ds-text-success);
}

.ds-inline-message-danger {
  background-color: var(--ds-background-danger-subtle);
  color: var(--ds-text-danger);
}

/* Form elements */
.ds-textfield {
  width: 100%;
  padding: var(--ds-space-100);
  border: 2px solid var(--ds-border);
  border-radius: var(--ds-border-radius-100);
  font-family: var(--ds-font-family);
  font-size: var(--ds-font-size-100);
  background-color: var(--ds-surface);
  color: var(--ds-text);
  transition: border-color 0.1s ease-in-out;
}

.ds-textfield:focus {
  border-color: var(--ds-border-focus);
  outline: none;
}

/* Navigation */
.ds-nav {
  background-color: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  padding: var(--ds-space-200) 0;
  margin-bottom: var(--ds-space-400);
}

.ds-nav-link {
  color: var(--ds-text-accent-blue);
  text-decoration: none;
  font-weight: var(--ds-font-weight-medium);
  margin-right: var(--ds-space-200);
}

.ds-nav-link:hover {
  text-decoration: underline;
}

/* Layout */
.ds-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ds-space-300);
}

.ds-grid {
  display: grid;
  gap: var(--ds-space-300);
}

.ds-flex {
  display: flex;
  align-items: center;
  gap: var(--ds-space-200);
}

.ds-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .ds-container {
    padding: 0 var(--ds-space-200);
  }
  
  h1 {
    font-size: var(--ds-font-size-500);
  }
  
  .ds-card {
    padding: var(--ds-space-200);
  }
}

