/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[7].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[13].oneOf[7].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[13].oneOf[7].use[5]!./src/components/Navbar.module.scss ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* ===== Sixma Navbar — minimalist, brand-aligned ===== */
.Navbar_navbar__x0iE6 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 640px) {
  .Navbar_navbar__x0iE6 {
    height: 56px;
  }
}

.Navbar_navbarScrolled__nDLuj {
  background: rgba(5, 8, 16, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.Navbar_navbarContainer__Cz5Jf {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
}
@media (max-width: 640px) {
  .Navbar_navbarContainer__Cz5Jf {
    padding: 0 1rem;
  }
}

.Navbar_navbarContent__LkCjB {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

/* ─── Logo ─── */
.Navbar_navbarLogo__eTBJ_ {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.Navbar_logoIcon__yVeOz {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .Navbar_logoIcon__yVeOz {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }
}

.Navbar_logoIconText__A_p1N {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
@media (max-width: 640px) {
  .Navbar_logoIconText__A_p1N {
    font-size: 0.85rem;
  }
}

.Navbar_logoTextContainer__PcTje {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.Navbar_logoTitle___z1e_ {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.15em;
}
@media (max-width: 640px) {
  .Navbar_logoTitle___z1e_ {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
}

.Navbar_logoSubtitle__fpIHA {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
@media (max-width: 640px) {
  .Navbar_logoSubtitle__fpIHA {
    display: none;
  }
}

/* ─── Desktop menu ─── */
.Navbar_desktopMenu__0dumr {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .Navbar_desktopMenu__0dumr {
    display: flex;
  }
}

.Navbar_navLinks__DR77m {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.Navbar_menuLink__WRDOQ {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s ease;
}
.Navbar_menuLink__WRDOQ::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.Navbar_menuLink__WRDOQ:hover {
  color: rgba(255, 255, 255, 0.95);
}
.Navbar_menuLink__WRDOQ:hover::after {
  width: 100%;
}

.Navbar_menuLinkActive__5y47s {
  color: rgba(255, 255, 255, 0.95);
}
.Navbar_menuLinkActive__5y47s::after {
  width: 100%;
  background: #6f42c1;
}

.Navbar_divider__R3OQx {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Auth buttons (desktop) ─── */
.Navbar_authButtons__YRs_P {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.Navbar_loginButton__KdlDf {
  padding: 0.5rem 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.Navbar_loginButton__KdlDf:hover {
  color: rgb(255, 255, 255);
}

.Navbar_btnPrimary__XRIim {
  padding: 0.55rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #050810;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-block;
  white-space: nowrap;
}
.Navbar_btnPrimary__XRIim:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

/* ─── User dropdown ─── */
.Navbar_dropdownContainer__MisQB {
  position: relative;
}

.Navbar_userButton__YK1q7 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.Navbar_userButton__YK1q7:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.Navbar_avatar__4mgU5 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4059e7, #6f42c1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.Navbar_avatarInitial__wBJk4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.Navbar_username__v_hJo {
  font-size: 0.82rem;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.Navbar_dropdownArrow__9EA1_ {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.Navbar_userDropdown__GkJso {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: rgba(10, 14, 26, 0.98);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform-origin: top right;
}

.Navbar_dropdownMenu__r5Nm3 {
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
}

.Navbar_dropdownItem__2xfB_ {
  padding: 0.6rem 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.Navbar_dropdownItem__2xfB_:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.Navbar_dropdownDivider__0Sk7Q {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.35rem 0;
}

.Navbar_dropdownItemDanger__3z2Xq {
  padding: 0.6rem 0.85rem;
  background: none;
  border: none;
  color: rgba(220, 53, 69, 0.85);
  font-family: inherit;
  font-size: 0.85rem;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.Navbar_dropdownItemDanger__3z2Xq:hover {
  background: rgba(220, 53, 69, 0.1);
  color: rgb(220, 53, 69);
}

/* ─── Mobile button ─── */
.Navbar_mobileMenu__b1RGt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .Navbar_mobileMenu__b1RGt {
    display: none;
  }
}

.Navbar_mobileMenuButton___FPFk {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}
.Navbar_mobileMenuButton___FPFk:hover, .Navbar_mobileMenuButton___FPFk:active {
  background: rgba(255, 255, 255, 0.08);
}

.Navbar_menuIcon__5aXdb {
  width: 20px;
  height: 20px;
}

/* ─── Mobile panel ─── */
.Navbar_mobilePanel__m1_j0 {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(5, 8, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.Navbar_mobilePanelContent__S6h76 {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem 1.25rem;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.Navbar_mobileNavLink__EnuBG {
  padding: 0.95rem 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.Navbar_mobileNavLink__EnuBG:active {
  color: white;
  padding-left: 0.6rem;
}
.Navbar_mobileNavLink__EnuBG::after {
  content: "→";
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.Navbar_mobileNavLinkActive__pid_b {
  color: white;
}
.Navbar_mobileNavLinkActive__pid_b::after {
  color: rgba(138, 118, 229, 0.9);
  transform: translateX(4px);
}

.Navbar_mobileAuthSection__iTjYx {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.Navbar_mobileAuthButtons__IOcjK {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.Navbar_mobileAuthButtons__IOcjK > * {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}

.Navbar_mobileLoginButton__vNmG8 {
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.Navbar_mobileLoginButton__vNmG8:active {
  background: rgba(255, 255, 255, 0.05);
}

.Navbar_mobileUserMenu__MQi7g {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.Navbar_mobileMenuItem__YRMwa {
  padding: 0.85rem 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.Navbar_mobileMenuItem__YRMwa:active {
  color: white;
}

.Navbar_mobileMenuItemDanger__sJ4Fq {
  padding: 0.85rem 0.25rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(220, 53, 69, 0.85);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[7].use[3]!./node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js??ruleSet[1].rules[13].oneOf[7].use[4]!./node_modules/next/dist/compiled/sass-loader/cjs.js??ruleSet[1].rules[13].oneOf[7].use[5]!./src/components/Habits.module.scss ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
/* Styles for Habits Component */
.Habits_pageContainer___LEWJ {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.8) 0%, rgb(20, 24, 30) 100%);
  min-height: calc(100vh - 72px);
}

.Habits_header__bdMbg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.Habits_title__9UMpH {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(90deg, #fff, #a3b1ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.Habits_headerSubtitle__uCoET {
  font-size: 1rem;
  color: var(--gray-light);
  max-width: 600px;
  margin-top: 0.75rem;
}

.Habits_addButton__M4vbJ {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--foreground);
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: all 0.2s ease-in-out;
  border: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}
.Habits_addButton__M4vbJ:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}
.Habits_addButton__M4vbJ:active {
  transform: translateY(0px);
  filter: brightness(0.95);
}
.Habits_addButton__M4vbJ svg {
  width: 1.1rem;
  height: 1.1rem;
}

.Habits_formContainer___zSSJ {
  background-color: rgba(30, 35, 45, 0.9);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.Habits_formContainer___zSSJ::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #4059e7, #6f42c1);
}

.Habits_formTitle__ZUKd2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  position: relative;
  display: inline-block;
}
.Habits_formTitle__ZUKd2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #4059e7, #6f42c1);
  border-radius: 3px;
}

.Habits_formGrid__aCBX5 {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .Habits_formGrid__aCBX5 {
    grid-template-columns: 1fr 1fr;
  }
}

.Habits_formGroup__q8y4K {
  margin-bottom: 1rem;
  width: 100%;
}

.Habits_label__WL1F1 {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-light);
  font-family: "Noto Sans Thai", sans-serif;
}

.Habits_input__bb8LF,
.Habits_select__WbTzZ,
.Habits_selectMultiple__SlPz3 {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-md);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.9rem;
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.4;
}
.Habits_input__bb8LF:focus,
.Habits_select__WbTzZ:focus,
.Habits_selectMultiple__SlPz3:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(var(--primary-blue-rgb), 0.2);
}
.Habits_input__bb8LF::placeholder,
.Habits_select__WbTzZ::placeholder,
.Habits_selectMultiple__SlPz3::placeholder {
  color: var(--gray-dark);
  opacity: 0.8;
  font-family: "Noto Sans Thai", sans-serif;
}

.Habits_selectMultiple__SlPz3 {
  height: auto;
  min-height: 8rem;
  padding: 0.8rem;
}

.Habits_select__WbTzZ {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

.Habits_formActions__BlOWC {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.Habits_formActions__BlOWC .Habits_cancelButton__OnBzS, .Habits_formActions__BlOWC .Habits_saveButton__DB9l_ {
  font-family: "Noto Sans Thai", sans-serif;
}

.Habits_cancelButton__OnBzS {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--gray-dark);
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: all 0.2s ease-in-out;
  border: 1px solid var(--input-border);
  cursor: pointer;
}
.Habits_cancelButton__OnBzS:hover {
  background-color: var(--gray-dark-hover);
  border-color: var(--gray-medium);
}
.Habits_cancelButton__OnBzS:active {
  filter: brightness(0.9);
}

.Habits_saveButton__DB9l_ {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--button-primary);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: all 0.2s ease-in-out;
  border: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}
.Habits_saveButton__DB9l_:hover {
  background: var(--button-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.Habits_saveButton__DB9l_:active {
  transform: translateY(0px);
  filter: brightness(0.95);
}

.Habits_loadingText__hAiq2 {
  padding: 1rem;
  text-align: center;
  color: var(--gray-medium);
}

.Habits_noHabitsText__JN3C6 {
  text-align: center;
  color: var(--gray-medium);
  margin-top: 2rem;
}

.Habits_errorBox__FJQtS {
  padding: 1rem;
  color: var(--danger);
  background-color: rgba(var(--danger-rgb), 0.1);
  border: 1px solid rgba(var(--danger-rgb), 0.3);
  border-radius: var(--border-radius-md);
}

.Habits_tableContainer__qW8X8 {
  overflow-x: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-lg);
  background: rgba(30, 35, 45, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.Habits_table__CO1KM {
  width: 100%;
  font-size: 0.875rem;
  text-align: left;
  color: var(--gray-light);
  border-collapse: collapse;
}

.Habits_tableHead__Ej7le {
  font-size: 0.75rem;
  text-transform: uppercase;
  background-color: rgba(20, 25, 35, 0.7);
  color: var(--gray-medium);
}
.Habits_tableHead__Ej7le th {
  padding: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.Habits_tableHead__Ej7le th:first-child {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: rgba(20, 25, 35, 0.8);
  text-align: left;
  min-width: 240px;
  padding-left: 1.5rem;
}

.Habits_dateHeader__Pkqbd {
  text-align: center;
  padding: 0.5rem 0.75rem;
  min-width: 4rem;
  white-space: nowrap;
}

.Habits_todayColumn__06v7Z {
  background-color: rgba(64, 89, 231, 0.1);
  position: relative;
  border-left: 2px solid var(--primary-blue);
  border-right: 2px solid var(--primary-blue);
}

.Habits_todayIndicator__mACHf {
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 0.75rem;
  display: block;
}

.Habits_streakHeader___TAzw,
.Habits_rateHeader__ysvb8 {
  min-width: 100px;
  padding: 0.75rem 1rem !important;
}

.Habits_actionsHeader__QCYbn {
  min-width: 80px;
  padding: 0.75rem 1rem !important;
}

.Habits_tableBody__7H4mh tr {
  border-bottom: 1px solid var(--card-border);
  background-color: var(--card-bg);
  transition: background-color 0.2s ease;
}
.Habits_tableBody__7H4mh tr:hover {
  background-color: var(--table-row-hover-bg);
}
.Habits_tableBody__7H4mh tr td {
  padding: 1rem;
  vertical-align: middle;
  white-space: nowrap;
}

.Habits_habitCell__a8p6G {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 5;
  background-color: inherit;
  font-weight: 500;
  color: var(--foreground);
  padding-left: 1.5rem !important;
}

.Habits_habitInfo__M2EKu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.Habits_habitIcon__7Ovzc {
  padding: 0.25rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.875rem;
}

.Habits_challengeIcon__XvUAi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  font-size: 1.25rem;
  color: var(--warning);
  animation: Habits_pulse__RmRxs 2s infinite;
  position: relative;
}

@keyframes Habits_pulse__RmRxs {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.Habits_dateCell__Fa4z5 {
  text-align: center;
  padding: 0.5rem !important;
}

.Habits_completionButton__9GtxV {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--input-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
  position: relative;
  background-color: var(--input-bg);
  cursor: pointer;
}
.Habits_completionButton__9GtxV.Habits_completed__tzvOE {
  background-color: var(--success);
  border-color: var(--success-hover);
}
.Habits_completionButton__9GtxV:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.Habits_completionButton__9GtxV:not(:disabled):hover {
  filter: brightness(1.2);
}

.Habits_proofRequiredIcon__NMeUS {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  font-size: 0.75rem;
  background-color: var(--warning);
  color: var(--background);
  border-radius: 50%;
  padding: 0 0.375rem;
  line-height: 1.2;
  cursor: help;
}

.Habits_proofUploadedIcon__3W2Q6 {
  display: inline-flex;
  color: white;
}
.Habits_proofUploadedIcon__3W2Q6 svg {
  width: 1rem;
  height: 1rem;
}

.Habits_streakCell__ragvB {
  text-align: center;
  font-weight: 500;
  color: var(--foreground);
}

.Habits_rateCell__hP3Pe {
  text-align: center;
  font-weight: 500;
}
.Habits_rateCell__hP3Pe.Habits_high__8lTdb {
  color: var(--success);
}
.Habits_rateCell__hP3Pe.Habits_medium__T8vSf {
  color: var(--warning);
}
.Habits_rateCell__hP3Pe.Habits_low__QN8L9 {
  color: var(--danger);
}

.Habits_actionsCell__y9KYw {
  text-align: center;
}
.Habits_actionsCell__y9KYw button {
  background: none;
  border: none;
  padding: 0.25rem;
  margin: 0 0.25rem;
  cursor: pointer;
  transition: color 0.2s;
}
.Habits_actionsCell__y9KYw button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.Habits_actionsCell__y9KYw button svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.Habits_editButton__XTrej {
  color: var(--primary-blue);
}
.Habits_editButton__XTrej:not(:disabled):hover {
  color: var(--primary-blue-hover);
}

.Habits_deleteButton__PdTbW {
  color: var(--danger);
}
.Habits_deleteButton__PdTbW:not(:disabled):hover {
  color: var(--danger-hover);
}

.Habits_modalOverlay__zYIlt {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.Habits_modalContent__xwgzS {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
}

.Habits_closeButton__wCt0F {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--gray-medium);
  cursor: pointer;
  padding: 0.25rem;
}
.Habits_closeButton__wCt0F:hover {
  color: var(--foreground);
}
.Habits_closeButton__wCt0F svg {
  width: 1.5rem;
  height: 1.5rem;
}

.Habits_modalTitle__oHj2Z {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.Habits_modalText__p3Zr3 {
  font-size: 0.875rem;
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.Habits_fileInput__JZ0A_ {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}
.Habits_fileInput__JZ0A_::-webkit-file-upload-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--primary-blue);
  color: white;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.Habits_fileInput__JZ0A_::file-selector-button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--primary-blue);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.Habits_fileInput__JZ0A_::-webkit-file-upload-button:hover {
  background-color: var(--primary-blue-hover);
}
.Habits_fileInput__JZ0A_::file-selector-button:hover {
  background-color: var(--primary-blue-hover);
}
.Habits_fileInput__JZ0A_:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.Habits_fileInput__JZ0A_:disabled::-webkit-file-upload-button {
  cursor: not-allowed;
}
.Habits_fileInput__JZ0A_:disabled::file-selector-button {
  cursor: not-allowed;
}

.Habits_selectedFileText__mKCCN {
  font-size: 0.875rem;
  color: var(--gray-light);
  margin-bottom: 1rem;
}

.Habits_uploadButton__87IGA {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #4059e7 0%, #6f42c1 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: none;
  box-shadow: 0 6px 15px rgba(64, 89, 231, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  background-color: var(--success);
}
.Habits_uploadButton__87IGA:hover {
  background-color: var(--success-hover);
}
.Habits_uploadButton__87IGA:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--success);
}

/* Highlighted row style */
.Habits_highlightedRow__YeO4F {
  background-color: rgba(64, 89, 231, 0.1) !important;
  border-left: 3px solid var(--primary-blue);
}
.Habits_highlightedRow__YeO4F td:first-child {
  padding-left: 1rem;
}

/* Expand button for linked goals */
.Habits_expandButton__OdC7b {
  background: none;
  border: none;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-left: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-blue);
  transition: transform 0.2s ease;
}
.Habits_expandButton__OdC7b svg {
  width: 16px;
  height: 16px;
}
.Habits_expandButton__OdC7b:hover {
  color: var(--light-blue);
}

.Habits_expandButtonRotated__qmEv9 {
  transform: rotate(180deg);
}

/* Linked goals section styles */
.Habits_linkedGoalsRow__dI5Le {
  background-color: rgba(17, 24, 39, 0.6);
}
.Habits_linkedGoalsRow__dI5Le:hover {
  background-color: rgba(17, 24, 39, 0.6) !important;
}

.Habits_linkedGoalsCell__Tl4_H {
  padding: 0 !important;
}

.Habits_linkedGoalsContainer__O5ULX {
  padding: 1rem 2rem;
  border-top: 1px solid var(--card-border);
  animation: Habits_fadeIn__JF39h 0.3s ease;
}

@keyframes Habits_fadeIn__JF39h {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.Habits_linkedGoalsTitle__Usm_6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.Habits_linkedGoalsTitle__Usm_6::before {
  content: "🎯";
  margin-right: 0.5rem;
}

.Habits_linkedGoalsGrid__rAaWO {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.Habits_linkedGoalCard__MYgB7 {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 0.875rem;
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.Habits_linkedGoalCard__MYgB7:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
}

.Habits_linkedGoalTitle__519TA {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.Habits_linkedGoalDetails__096YM {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-medium);
}

.Habits_goalType__dRl0m {
  padding: 0.125rem 0.5rem;
  background-color: rgba(64, 89, 231, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
}

.Habits_progressIndicator__yACIx {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.Habits_progressValue__NRxO4 {
  color: var(--success);
  font-weight: 600;
}

.Habits_viewGoalButton__jL8at {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: rgba(64, 89, 231, 0.1);
  color: var(--primary-blue);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}
.Habits_viewGoalButton__jL8at:hover {
  background-color: rgba(64, 89, 231, 0.2);
  color: var(--light-blue);
}

.Habits_noLinkedGoalsMessage__4D6Vs {
  color: var(--gray-medium);
  font-size: 0.875rem;
  font-style: italic;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.Habits_helpText__67Jyw {
  font-size: 0.75rem;
  color: var(--gray-light);
  font-style: normal;
  background-color: rgba(64, 89, 231, 0.1);
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--primary-blue);
}

.Habits_statsContainer___svLn {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.Habits_statCard__FZgw3 {
  background: rgba(30, 35, 45, 0.9);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.Habits_statCard__FZgw3:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.Habits_statCard__FZgw3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.Habits_statCardDaily__7BTAx::before {
  background: linear-gradient(90deg, #4059e7, #4C9AFF);
}

.Habits_statCardWeekly__r5Fqg::before {
  background: linear-gradient(90deg, #FF5630, #FF8F73);
}

.Habits_statCardMonthly__EoGkN::before {
  background: linear-gradient(90deg, #36B37E, #79F2C0);
}

.Habits_statLabel__Xcn9u {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
}

.Habits_statValue__rSoVa {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.Habits_statSubtext__eR6Q0 {
  font-size: 0.75rem;
  color: var(--gray-medium);
}

.Habits_habitTabs__vP5df {
  display: flex;
  background: rgba(var(--dark-blue-rgb), 0.5);
  border-radius: var(--border-radius-lg);
  padding: 0.3rem;
  margin-bottom: 2rem;
  border: 1px solid var(--input-border);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.Habits_habitTab__bZHIm {
  flex: 1 1;
  padding: 0.6rem 1rem;
  text-align: center;
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-light);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: none;
  background-color: transparent;
  position: relative;
}
.Habits_habitTab__bZHIm:hover:not(.Habits_activeTab__OyzdA) {
  background-color: rgba(var(--foreground-rgb), 0.05);
  color: var(--foreground);
}

.Habits_activeTab__OyzdA {
  background-color: var(--primary-blue);
  color: var(--foreground);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.Habits_levelIndicator__S917k {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  margin-top: 0.5rem;
}

.Habits_levelBadge__6QNCq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4059e7, #6f42c1);
  font-weight: bold;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 2px 6px rgba(64, 89, 231, 0.4);
}

.Habits_xpBar__YS5N8 {
  flex: 1 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.Habits_xpFill__00o_2 {
  height: 100%;
  background: linear-gradient(90deg, #4059e7, #6f42c1);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.Habits_xpText__WikdR {
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-left: 0.5rem;
}

.Habits_rewardsSection__VdjAz {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.Habits_rewardsHeader__aCAwO {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  background: linear-gradient(90deg, #FFD700, #FFA500);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.Habits_rewardsGrid__q8QZp {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.Habits_rewardCard__4O3WM {
  background: rgba(30, 35, 45, 0.9);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}
.Habits_rewardCard__4O3WM:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.3);
}

.Habits_rewardTitle__9tNXM {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #FFD700;
}

.Habits_rewardPoints__DNNyB {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.Habits_rewardButton__4_1tQ {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-top: 1rem;
}
.Habits_rewardButton__4_1tQ:hover {
  background: rgba(255, 215, 0, 0.25);
}
.Habits_rewardButton__4_1tQ:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.Habits_streaksContainer__ttvyx {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.Habits_streakCard__4lNkv {
  flex: 1 1;
  min-width: 150px;
  background: rgba(30, 35, 45, 0.9);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.Habits_streakCard__4lNkv.Habits_streakDaily__YYDOV {
  border-top: 3px solid #4059e7;
}
.Habits_streakCard__4lNkv.Habits_streakWeekly__RwpsZ {
  border-top: 3px solid #FF5630;
}
.Habits_streakCard__4lNkv.Habits_streakMonthly__mdOmU {
  border-top: 3px solid #36B37E;
}

.Habits_streakValue__61XDf {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.Habits_streakValue__61XDf.Habits_streakDaily__YYDOV {
  color: #4C9AFF;
}
.Habits_streakValue__61XDf.Habits_streakWeekly__RwpsZ {
  color: #FF8F73;
}
.Habits_streakValue__61XDf.Habits_streakMonthly__mdOmU {
  color: #79F2C0;
}

.Habits_streakLabel__GOf5v {
  font-size: 0.875rem;
  color: var(--gray-light);
}
