/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Layout */
html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  overflow-x: hidden;
}
body {
  display: flex;
  flex-direction: column;
}

/* Header + Main Navigation */
header {
  background-color: #005291;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}
header img {
  height: 36px;
  margin-right: 1rem;
}
nav {
  flex: 1;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
nav li {
  position: relative;
}
nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  list-style: none;
  padding: 0.5rem 0;
}
nav li:hover ul {
  display: block;
}
nav li ul li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #005291;
}

/* Resizable Sidebar + Main Panel */
.resizable-container {
  flex: 1;
  display: flex;
  min-height: 0; /* allows child overflow */
}
.sidebar {
  width: 260px;
  background: #f4f7fb;
  padding: 1rem;
  overflow-y: auto;
}
.sidebar ul {
  list-style: none;
}
.sidebar li {
  margin-bottom: 0.5rem;
}
.sidebar a {
  display: block;
  padding: 0.4rem 0.8rem;
  background: #fff;
  color: #005291;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}
.sidebar a:hover {
  background: #eef5fa;
}
.sidebar .button-new {
  display: block;
  margin-top: 1rem;
  width: 100%;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
}
.sidebar .button-new:hover {
  background: #218838;
}

.resizer {
  width: 6px;
  cursor: ew-resize;
  background: #ccc;
}
.main-panel {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

/* Generic Block */
.block {
  background: #f8f9fb;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}
.block .close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}

/* Footer */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #00395a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  z-index: 1000;
}
