/* =========================================================
   DABBIES ADMIN
   NOTIFICATION COMPOSE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: #050505;
}

body {
  margin: 0;
  padding: 0;
  background: #050505;
  color: #f5f5f5;
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}


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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #050505;
  border-right: 1px solid #1c1c1c;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.sidebar-brand {
  padding: 30px 25px 28px;
  border-bottom: 1px solid #1c1c1c;
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 6px;
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.sidebar-nav {
  padding: 18px 0;
  flex: 1;
}

.nav-item {
  position: relative;
  display: block;
  padding: 13px 25px;
  color: #777;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
  transition: color 0.2s ease;
}

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

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

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #fff;
}

.sidebar-bottom {
  padding: 20px 25px;
  border-top: 1px solid #1c1c1c;
}

.signout-button {
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #777;
  text-align: left;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

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


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

.mobile-header {
  display: none;
}


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

.sidebar-overlay {
  display: none;
}


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

.main-content {
  margin-left: 230px;
  min-height: 100vh;
  padding: 54px 7vw 80px;
}

.page-header {
  padding-bottom: 38px;
  border-bottom: 1px solid #1c1c1c;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: #777;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.back-link:hover {
  color: #fff;
}

.breadcrumb {
  margin-bottom: 12px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.page-header p {
  max-width: 620px;
  margin: 15px 0 0;
  color: #858585;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   COMPOSE LAYOUT
========================================================= */

.compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 70px;
  padding-top: 45px;
  max-width: 1250px;
}

.editor-column {
  min-width: 0;
}

.preview-column {
  min-width: 0;
  padding-top: 4px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
  padding: 0 0 45px;
  margin-bottom: 45px;
  border-bottom: 1px solid #1c1c1c;
}

.section-heading {
  margin-bottom: 28px;
}

.section-label {
  display: block;
  margin-bottom: 9px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.section-heading h2,
.preview-header h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.02em;
}


/* =========================================================
   AUDIENCE
========================================================= */

.audience-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
}

.audience-option {
  min-height: 120px;
  padding: 22px;
  border: 0;
  border-right: 1px solid #262626;
  background: transparent;
  color: #777;
  text-align: left;
}

.audience-option:last-child {
  border-right: 0;
}

.audience-option strong {
  display: block;
  margin-bottom: 10px;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.audience-option span {
  display: block;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.audience-option:hover strong,
.audience-option.active strong {
  color: #fff;
}

.audience-option.active {
  box-shadow: inset 0 -2px 0 #fff;
}


/* =========================================================
   SPECIFIC USER
========================================================= */

.specific-user {
  padding-top: 28px;
}

.specific-user label,
.field label {
  display: block;
  margin-bottom: 9px;
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.user-search input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #292929;
  border-radius: 0;
  outline: none;
  background: #090909;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.user-search input,
.field input,
.field select {
  height: 46px;
  padding: 0 14px;
}

.field textarea {
  padding: 14px;
  resize: vertical;
  line-height: 1.7;
}

.user-search input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #666;
}

.user-results {
  margin-top: 8px;
  border-top: 1px solid #222;
}

.user-result {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #222;
  background: transparent;
  color: #fff;
  text-align: left;
}

.user-result strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.user-result span {
  display: block;
  margin-top: 4px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.user-result:hover strong {
  color: #bbb;
}

.selected-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid #292929;
  border-bottom: 1px solid #292929;
}

.selected-label {
  display: block;
  margin-bottom: 6px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.selected-user strong {
  display: block;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.selected-user small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

#removeUserButton {
  border: 0;
  background: transparent;
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

#removeUserButton:hover {
  color: #fff;
}


/* =========================================================
   FIELDS
========================================================= */

.field {
  position: relative;
  margin-bottom: 28px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-count {
  position: absolute;
  right: 0;
  bottom: -18px;
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 9px;
}


/* =========================================================
   ACTIONS
========================================================= */

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 0;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.primary-button {
  border: 1px solid #fff;
  background: #fff;
  color: #000;
}

.primary-button:hover {
  background: #ddd;
}

.secondary-button {
  border: 1px solid #292929;
  background: transparent;
  color: #888;
}

.secondary-button:hover {
  border-color: #555;
  color: #fff;
}


/* =========================================================
   MESSAGE
========================================================= */

.message {
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid #292929;
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
}


/* =========================================================
   PREVIEW
========================================================= */

.preview-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #262626;
}

.notification-preview {
  margin-top: 26px;
  padding: 25px 0;
  border-bottom: 1px solid #262626;
}

.preview-meta {
  margin-bottom: 20px;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.notification-preview h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.preview-body {
  color: #999;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.preview-time {
  margin-top: 20px;
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.preview-note {
  padding-top: 22px;
}

.preview-note strong {
  color: #aaa;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.preview-note p {
  margin: 9px 0 0;
  color: #666;
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.7;
}


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

@media (max-width: 900px) {

  .compose-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .preview-column {
    padding-top: 0;
  }

}


@media (max-width: 700px) {

  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

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

  .mobile-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 18px;
    background: #050505;
    border-bottom: 1px solid #1c1c1c;
    z-index: 90;
  }

  .mobile-brand {
    display: flex;
    flex-direction: column;
  }

  .mobile-brand strong {
    font-size: 15px;
    letter-spacing: 0.12em;
  }

  .mobile-brand span {
    margin-top: 3px;
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .menu-button {
    width: 28px;
    height: 28px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 1px;
    margin: 5px 0;
    background: #fff;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    z-index: 95;
    transition: opacity 0.25s ease;
  }

  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 96px 20px 60px;
  }

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

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

  .compose-layout {
    padding-top: 35px;
  }

  .audience-options {
    grid-template-columns: 1fr;
  }

  .audience-option {
    border-right: 0;
    border-bottom: 1px solid #262626;
  }

  .audience-option:last-child {
    border-bottom: 0;
  }

  .actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

}