* {
  box-sizing: border-box;
}

body.bodema-app-body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f7fb;
}

:root {
  --bodema-header-brown: #6c442d;
  --bodema-cta-green: #15803d;
  --bodema-cta-green-hover: #166534;
  --bodema-cta-green-soft: rgba(21, 128, 61, 0.16);
}

/* WRAPPER by kevinholasek */
.bodema-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER by kevinholasek */
.bodema-header {
  background: var(--bodema-header-brown);
  color: white;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.header-bar {
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 24px;
  margin-top: 0;
}

/* LEFT PART by kevinholasek */
.header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* LOGO by kevinholasek */
.logo {
  font-size: 16px;
  font-weight: 600;
}

.menu-toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* NAVIGATION by kevinholasek */
.top-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-nav a {
  color: #f0e7de;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.top-nav a:hover,
.top-nav a.active {
  color: #fff;
}

/* RIGHT PART by kevinholasek */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e5e7eb;
  font-weight: 600;
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: #dcfce7;
  border: 1px solid rgba(134, 239, 172, 0.46);
  background: var(--bodema-cta-green-soft);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  color: #fff;
  border-color: rgba(134, 239, 172, 0.72);
  background: rgba(22, 101, 52, 0.34);
}

.logout-btn:focus-visible {
  outline: 2px solid rgba(134, 239, 172, 0.9);
  outline-offset: 2px;
}

/* MAIN CONTENT by kevinholasek */
.bodema-main-content {
  flex: 1;
  padding: 30px;
}

/* BUTTONS by kevinholasek */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  transition: 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--bodema-cta-green),
    var(--bodema-cta-green-hover)
  );
  color: white;
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #166534, #14532d);
}

.btn-success {
  background: linear-gradient(
    135deg,
    var(--bodema-cta-green),
    var(--bodema-cta-green-hover)
  );
  color: white;
}

.btn-neutral {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.btn-neutral:hover {
  background: #e5e7eb;
  color: #111827;
  border-color: #9ca3af;
}

.btn-small {
  font-size: 12px;
  padding: 6px 10px;
}

.btn-large {
  padding: 10px 18px;
  font-size: 15px;
}

/* TABLES by kevinholasek */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
}

.data-table thead {
  background: #f3f4f6;
}

.data-table tbody tr {
  border-top: 1px solid #e5e7eb;
}

.data-table tbody tr:hover {
  background: #f9fafb;
}

/* BADGES by kevinholasek */
.badge {
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-draft {
  background: #e5e7eb;
  color: #374151;
}

.badge-sent {
  background: #fef3c7;
  color: #92400e;
}

.badge-accepted {
  background: #dcfce7;
  color: #166534;
}

/* RESPONSIVE by kevinholasek */

@media (max-width: 768px) {
  .bodema-header {
    padding: 14px 16px;
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-bar {
    justify-content: space-between;
  }

  .header-content {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .menu-toggle-checkbox:checked ~ .header-content {
    display: flex;
  }

  .top-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .top-nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .bodema-main-content {
    padding: 16px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .user-badge {
    flex: 1;
    justify-content: center;
  }

  .btn {
    min-height: 38px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
