/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  background: #050505;
}

body {
  margin: 0;

  min-height: 100vh;

  background: #050505;
  color: #f5f5f5;

  font-family:
    Georgia,
    "Times New Roman",
    serif;
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.mobile-header {
  display: none;

  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  height: 62px;

  align-items: center;

  padding: 0 18px;

  background: #050505;

  border-bottom: 1px solid #202020;

  z-index: 100;
}


.menu-button {
  width: 32px;
  height: 32px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 5px;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}


.menu-button span {
  display: block;

  width: 18px;
  height: 1px;

  background: #ffffff;
}


.mobile-brand {
  margin-left: 14px;

  display: flex;

  flex-direction: column;
}


.mobile-brand strong {
  font-size: 14px;

  font-weight: 500;

  letter-spacing: 0.14em;
}


.mobile-brand span {
  margin-top: 3px;

  color: #777777;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 7px;

  letter-spacing: 0.17em;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
  position: fixed;

  top: 0;
  left: 0;
  bottom: 0;

  width: 230px;

  display: flex;

  flex-direction: column;

  background: #050505;

  border-right: 1px solid #202020;

  z-index: 110;
}


.sidebar-brand {
  padding: 30px 25px 38px;
}


.brand-name {
  color: #ffffff;

  font-size: 18px;

  font-weight: 500;

  letter-spacing: 0.16em;
}


.brand-subtitle {
  margin-top: 5px;

  color: #686868;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 8px;

  letter-spacing: 0.2em;
}


/* =========================================================
   NAVIGATION
========================================================= */

.sidebar-nav {
  display: flex;

  flex-direction: column;
}


.nav-item {
  position: relative;

  min-height: 43px;

  display: flex;

  align-items: center;

  padding: 0 25px;

  color: #727272;

  text-decoration: none;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;

  transition:
    color 160ms ease,
    background 160ms ease;
}


.nav-item:hover {
  color: #ffffff;
}


.nav-item.active {
  color: #ffffff;
}


.nav-item.active::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 2px;

  background: #ffffff;
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
  margin-top: auto;

  padding: 20px 25px 25px;

  border-top: 1px solid #181818;
}


.signout-button {
  width: 100%;

  padding: 0;

  border: 0;

  background: transparent;

  color: #666666;

  text-align: left;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 11px;

  cursor: pointer;

  transition: color 160ms ease;
}


.signout-button:hover {
  color: #ffffff;
}


/* =========================================================
   OVERLAY
========================================================= */

.sidebar-overlay {
  display: none;

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.72);

  z-index: 105;
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
  min-height: 100vh;

  margin-left: 230px;

  padding: 54px 54px 80px;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  gap: 40px;

  padding-bottom: 35px;

  border-bottom: 1px solid #222222;
}


.breadcrumb {
  margin-bottom: 17px;

  color: #686868;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 11px;

  letter-spacing: 0.03em;
}


.page-header h1 {
  margin: 0;

  font-size:
    clamp(
      34px,
      4vw,
      52px
    );

  font-weight: 400;

  letter-spacing: -0.035em;

  line-height: 1;
}


.page-header p {
  max-width: 560px;

  margin: 15px 0 0;

  color: #858585;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 13px;

  line-height: 1.7;
}


.create-button {
  flex-shrink: 0;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 43px;

  padding: 0 18px;

  border: 1px solid #ffffff;

  background: #ffffff;

  color: #050505;

  text-decoration: none;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;

  font-weight: 600;

  transition:
    background 160ms ease,
    color 160ms ease;
}


.create-button:hover {
  background: #050505;

  color: #ffffff;
}


/* =========================================================
   TOOLBAR
========================================================= */

.toolbar {
  display: flex;

  gap: 10px;

  padding: 22px 0;

  border-bottom: 1px solid #1c1c1c;
}


.search-wrapper {
  flex: 1;
}


.search-wrapper input,
.toolbar select {
  width: 100%;

  height: 42px;

  padding: 0 13px;

  border: 1px solid #292929;

  outline: none;

  background: #090909;

  color: #ffffff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;
}


.search-wrapper input:focus,
.toolbar select:focus {
  border-color: #555555;
}


.toolbar select {
  width: 150px;

  cursor: pointer;
}


/* =========================================================
   NOTIFICATIONS
========================================================= */

.notifications-section {
  padding-top: 32px;
}


.section-heading {
  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  padding-bottom: 18px;

  border-bottom: 1px solid #1d1d1d;
}


.section-heading h2 {
  margin: 0;

  font-size: 21px;

  font-weight: 400;

  letter-spacing: -0.02em;
}


.section-heading p {
  margin: 8px 0 0;

  color: #6f6f6f;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 11px;
}


/* =========================================================
   LIST
========================================================= */

.notification-list {
  width: 100%;
}


.notification-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    150px
    100px;

  gap: 25px;

  padding: 20px 0;

  border-bottom: 1px solid #171717;

  cursor: default;
}


.notification-row:hover {
  background: #080808;
}


.notification-main {
  min-width: 0;
}


.notification-title {
  margin: 0;

  overflow: hidden;

  color: #ffffff;

  font-size: 15px;

  font-weight: 400;

  white-space: nowrap;

  text-overflow: ellipsis;
}


.notification-message {
  max-width: 760px;

  margin-top: 7px;

  overflow: hidden;

  color: #777777;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;

  line-height: 1.55;

  white-space: nowrap;

  text-overflow: ellipsis;
}


.notification-recipient {
  align-self: center;

  overflow: hidden;

  color: #8a8a8a;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 11px;

  white-space: nowrap;

  text-overflow: ellipsis;
}


.notification-date {
  align-self: center;

  color: #666666;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 10px;

  text-align: right;
}


.notification-unread {
  color: #ffffff;
}


.notification-unread .notification-title {
  font-weight: 600;
}


/* =========================================================
   STATES
========================================================= */

.loading-state,
.empty-state,
.error-state {
  padding: 70px 0;

  text-align: center;
}


.loading-state {
  color: #666666;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;
}


.empty-state h3,
.error-state h3 {
  margin: 0;

  font-size: 21px;

  font-weight: 400;
}


.empty-state p,
.error-state p {
  max-width: 430px;

  margin: 12px auto 0;

  color: #707070;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;

  line-height: 1.7;
}


.error-state button {
  margin-top: 22px;

  min-height: 38px;

  padding: 0 16px;

  border: 1px solid #ffffff;

  background: #ffffff;

  color: #050505;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 11px;

  cursor: pointer;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

  .mobile-header {
    display: flex;
  }


  .sidebar {
    transform: translateX(-100%);

    transition:
      transform 220ms ease;
  }


  .sidebar.open {
    transform: translateX(0);
  }


  .sidebar-overlay.visible {
    display: block;
  }


  .main-content {
    margin-left: 0;

    padding:
      92px
      24px
      60px;
  }


  .page-header {
    align-items: flex-start;

    flex-direction: column;

    gap: 25px;
  }


  .create-button {
    width: 100%;
  }


  .toolbar {
    flex-direction: column;
  }


  .toolbar select {
    width: 100%;
  }

}


@media (max-width: 600px) {

  .main-content {
    padding:
      88px
      18px
      50px;
  }


  .page-header {
    padding-bottom: 27px;
  }


  .page-header h1 {
    font-size: 38px;
  }


  .notification-row {
    grid-template-columns: 1fr;

    gap: 9px;

    padding: 18px 0;
  }


  .notification-recipient,
  .notification-date {
    text-align: left;
  }


  .notification-date {
    font-size: 9px;
  }

}