/* Reset base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Full height for layout */
html, body {
  height: 100%;
  overflow: hidden; /* Zapobiega scrollowaniu całej strony */
}

/* Theme Variables */
:root {
  --bg-color: #f3f4f6;
  --text-color: #1f2937;
  --subtext-color: #6b7280;
  --header-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e5e7eb;
  --link-color: #374151;
  --hover-bg: #f3f4f6;
  --shadow: rgba(0, 0, 0, 0.05);
}

body.dark {
  --bg-color: #1f2937;
  --text-color: #f9fafb;
  --subtext-color: #9ca3af;
  --header-bg: #111827;
  --sidebar-bg: #111827;
  --sidebar-border: #374151;
  --link-color: #d1d5db;
  --hover-bg: #374151;
  --shadow: rgba(255, 255, 255, 0.05);
}

/* Base styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--header-bg);
  box-shadow: 0 2px 4px var(--shadow);
  flex-shrink: 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-color);
}

.page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: 500;
  color: var(--subtext-color);
  pointer-events: none;
}

/* Layout */
.container {
  display: flex;
  flex-grow: 1;
  height: calc(100vh - 72px);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 250px;
  height: 100%;
  overflow-y: auto;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
}

.sidebar h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Sidebar section titles */
.sidebar-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
  border-top: 1px solid var(--sidebar-border);
  padding-top: 1rem;
}

/* Remove top border for first section */
.sidebar-section:first-of-type h3 {
  border-top: none;
  padding-top: 0;
  margin-top: 1rem;
}

/* Sidebar nav links */
.sidebar nav a,
.sidebar-section nav a {
  display: block;
  padding: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--link-color);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background 0.2s ease;
}

.sidebar nav a:hover,
.sidebar-section nav a:hover {
  background-color: var(--hover-bg);
}

/* Main Content */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
}

.main-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.main-content p {
  color: var(--subtext-color);
}
