@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e293b;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.container:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; }

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  color: #fff;
  box-shadow: 4px 0 15px rgba(15, 23, 42, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}


.sidebar a {
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  margin: 1px 0;
  opacity: 1 !important;
}

.sidebar a:hover {
  background-color: rgba(100, 116, 139, 0.15);
  color: #ffffff;
}

.sidebar a.active {
  background: #475569;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2);
}

.sidebar .nav-section {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
  border-bottom: 1px solid rgba(203, 213, 225, 0.2);
  padding-bottom: 8px;
}

.sidebar .nav-section:last-child {
  border-bottom: none;
}

.sidebar .nav-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9 !important;
  margin: 0 0 6px 0;
  padding: 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 1 !important;
}

.content {
  flex: 1;
  padding: 2rem 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow-x: auto;
  margin-left: 280px;
}

/* Forms and buttons moved to respective component files */

/* Navigation (excluding sidebar) */
.content nav, nav:not(.sidebar nav) {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  padding: 1rem 2rem;
  display: flex;
  gap: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.content nav a, nav:not(.sidebar nav) a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.content nav a:hover, nav:not(.sidebar nav) a:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #334155;
  transform: translateY(-1px);
}

/* Table styles moved to components/tables.css */

/* Fieldset styles moved to components/forms.css */

/* Tabs styles moved to components/navigation.css */

/* Utilities */
.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 1rem 0;
  }

  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 1rem;
  }

  .content {
    margin-left: 0;
    padding: 1rem;
  }

  .container {
    margin: 1rem;
    padding: 1.5rem;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
}

/* Animations removed */

/* Loading states */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


/* Customer List Minimal Styling */
.kunde-row:hover {
  background-color: #f8fafc;
}

.auftrag-row {
  background-color: rgba(248, 250, 252, 0.5);
}

.dropdown-arrow {
  color: #64748b;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

/* Button styles moved to components/buttons.css */
/* Workflow styles moved to components/workflow.css */

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close {
  color: #6c757d;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #343a40;
}

/* File Upload Components */
.file-upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #2563eb;
  background-color: #eff6ff;
}

.file-upload-area.dragover {
  border-color: #2563eb;
  background-color: #dbeafe;
}

/* KPI card styles moved to components/cards.css */

/* Year Navigation styles moved to components/year-tabs.css */