/* Minimalist responsive styles */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --muted: #9aa4b2;
  --accent: #2a72ff;
  --text: #0f1724;
  --radius: 10px;
  --gap: 18px;
}
* {
  box-sizing: border-box;
}
html,
body,
#main {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, var(--surface), #fbfdff);
  border-right: 1px solid rgba(15, 23, 36, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link.active,
.nav-link:hover {
  background: rgba(42, 114, 255, 0.08);
  color: var(--accent);
}
.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}

/* Topbar for small screens */
.topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 36, 0.04);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 30;
}
.hamburger {
  background: transparent;
  border: 0;
  font-size: 20px;
}
.topbar-title {
  font-weight: 600;
}

/* Main */
.main {
  flex: 1;
  padding: 28px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cards {
  display: flex;
  gap: 16px;
}
.card {
  background: var(--surface);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(15, 23, 36, 0.03);
}
.stat {
  font-weight: 600;
  margin-top: 8px;
  font-size: 14px;
}
.small-stat {
  font-weight: 500;
  margin-top: 2px;
  font-size: 12px;
}
.panel {
  background: transparent;
}
.form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.form.hidden {
  display: none;
}
.form input[type="text"],
.form select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 36, 0.06);
  background: #fff;
  min-width: 0;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list li {
  background: var(--surface);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(15, 23, 36, 0.04);
}
.btn {
  background: transparent;
  border: 1px solid rgba(15, 23, 36, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.btn.alert {
  background: #c13131;
  color: #fff;
  border-color: transparent;
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-110%);
    transition: transform 0.24s ease;
    z-index: 40;
    box-shadow: 8px 0 24px rgba(10, 10, 10, 0.06);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar {
    display: flex;
  }
  .app {
    flex-direction: column;
  }
  .main {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .form {
    flex-direction: column;
    align-items: stretch;
  }
  .cards {
    flex-direction: column;
  }
}

/* FitTracker */

.container {
  display: flex;
  flex-direction: column;

  padding: 2px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 36, 0.06);
  background: #fff;
}

.list {
  background-color: white;
  flex: 1;
}

.inps {
  flex: 1;
  flex-direction: row;
}

table {
  font-size: 13px !important;
}

input {
  margin-left: 4px;
  margin-bottom: 6px;
  margin-top: 6px;
}

span {
  margin-left: 6px;
  margin-right: 3px;
}

.checkboxinput {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 36, 0.06);
  background: #fff;
  min-width: 0;
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 6px;
  max-width: 90%;
  width: 400px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 24px;
}

.table-action-btn {
  color: #2c465f;
  font-size: 18px;
  cursor: pointer;
}

.image-paste-bin {
  width: 300px;
  height: 60px;
  border: 1px solid #ccc;
  font-size: 13px;
  color: gray;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  padding: 6px;
  border-radius: 4px;
}

.tbl-td-editable {
  background-color: #f0f0f0;
  cursor: pointer;
}

.tbl-td-edit-input {
  width: 100%;
  padding: 5px;
}

.shadower {
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 36, 0.06);
  background: #fff;
}
