* {
  box-sizing: border-box;
}

/* BASE STYLING */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #f3f3f3;
  color: #333;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.loaded {
  opacity: 1;
}
h3 {
  font-size: 1.2em;
}
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
  width: 220px;
  background-color: rgb(139, 0, 0);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5em 1em 1em;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease;
}
.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-box {
  background: white;
  color: #222;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
#sidebarUsername {
  background: white;
  color: #222;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-btn,
.logout-btn {
  background-color: transparent;
  color: white;
  border: none;
  padding: 10px 15px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.15s ease;
  text-decoration: none;
}
.sidebar-btn:hover,
.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}
.sidebar-btn.active,
.sidebar-btn:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}
.sidebar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.window-buttons {
  display: flex;
  gap: 6px;
}
.square {
  width: 14px;
  height: 14px;
  background-color: white;
  border: 1px solid black;
  border-radius: 3px;
}
/* --- HEADER --- */
.header {
  position: relative;
  height: 70px;
  padding: 0 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.header h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}
.app-name {
  font-size: 2.5em;
  font-weight: 700;
  color: #222;
  letter-spacing: 1.2px;
  margin: 0;
}
.logo {
  position: absolute;
  right: 20px;
  font-size: 24px;
  cursor: default;
  color: #444;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
.layout {
  flex-direction: column;
  height: auto;
}
.sidebar {
  width: 100%;
  height: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 1em;
  gap: 10px;
}
.sidebar-top,
.sidebar-nav {
  flex-direction: row;
  gap: 10px;
}
.sidebar-footer {
  display: none;
}
.header {
  height: auto;
  padding: 1em;
  text-align: center;
}
.app-name {
  font-size: 2em;
}
.task-board {
  flex-direction: column;
  align-items: center;
  padding: 1em;
}
.task-column {
  width: 90%;
}
}