:root {
  /* Color Palette */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-light: #f8f9fa;
  --background-paper: #ffffff;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --border-color: #e0e0e0;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --error-color: #e74c3c;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-unit: 0.5rem;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--background-light);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

/* Buttons */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
}

button:hover, .btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

button:active, .btn:active {
  transform: translateY(0);
}

button.primary, .btn.primary {
  background-color: var(--primary-color);
  color: white;
}

button.secondary, .btn.secondary {
  background-color: var(--secondary-color);
  color: white;
}

button.outline, .btn.outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

button:disabled, .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Cards */
.card {
  background: var(--background-paper);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
/* Root container styling */
#root {
  min-width: 100%;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa; /* Light gray that matches our design system */
}

/* Login styles */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #F5F5F5;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contract negotiation styles */
.contract-container {
  padding: 2rem;
  background-color: #F5F5F5;
}

.contract-header {
  margin-bottom: 2rem;
  text-align: center;
}

.contract-body {
  display: grid;
  grid-template-columns: 300px 1fr 2fr;
  gap: 1.5rem;
  align-items:  rt;
}

.contract-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.description-card {
  flex: 6;
}

.contract-detail {
  background-color: white;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.contract-description {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  line-height: 1.5;
  margin: 8px;
}

/* Button group styles */
.button-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.clear-button-group {
  margin-top: 16px;
  text-align: center;
}

.clear-button {
  margin-top: 1rem !important;
}

/* Button styles */
.decrease-button, .increase-button {
  min-width: 40px !important;
  padding: 6px !important;
}

.decrease-button:hover,
.increase-button:hover,
.clear-button:hover {
  opacity: 0.9;
  background-color: #b45309; /* Dark ochre */
}

.clear-button:hover {
  background-color: #2f4b7c; /* Lighter Zorn blue */
}

:focus {
  outline: 2px solid #b45309; /* Dark ochre focus outline */
  outline-offset: 2px;
}

/* Remove default button styles */
button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Typography styles */
h4 {
  color: black;
}

/* AppBar styles */
.MuiAppBar-root.app-bar {
  background-color: #5f0f0f; /* Darker red */
  color: white; /* White text */
}

/* Typography styles for the title */
.app-title {
  flex-grow: 1;
  color: white; /* White text */
  text-align: left;
}

/* Navigation styles */
.nav-button {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
