/* =========================================================
   TAROT DMs — CLEAN 90s OCCULT STYLE
   ========================================================= */


/* =========================================================
   TYPOGRAPHY
   Does not interfere with Rocket.Chat icons
   ========================================================= */

html,
body {
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
  color: #29242d !important;
}

button,
input,
textarea,
select {
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
}

/* Main content headings only */
h1,
h2,
h3,
h4:not(.rcx-sidebar-v2-collapse-group__title),
h5,
h6,
.rcx-tile header {
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
  color: #4b286d !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
}


/* =========================================================
   HOMEPAGE
   ========================================================= */

/* Hide standard homepage cards */
.rcx-card-group > .rcx-card-group__item:not(:last-child) {
  display: none !important;
}

/* Make custom-content card full width */
.rcx-card-group > .rcx-card-group__item:last-child {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* Hide “Some ideas to get you started” */
h3.rcx-css-1ln5v6k {
  display: none !important;
}

/* Hide old homepage welcome heading */
h2.rcx-css-1dgu1qo {
  display: none !important;
}

/* Hide “Powered by Rocket.Chat” */
div.rcx-css-1kba3lq {
  display: none !important;
}

/* Hide homepage logo */
img[alt="Home"][src$="assets/logo.png"] {
  display: none !important;
}


/* =========================================================
   HOMEPAGE COPYRIGHT
   ========================================================= */

/* Older Starter footer */
div.rcx-css-k29f7k {
  font-size: 0 !important;
}

div.rcx-css-k29f7k::after {
  content: "\00A9 2026 Finbarre Snarey";
  font: normal 400 15px/1.4 Tahoma, Verdana, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

a:has(> div.rcx-css-k29f7k) {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}

/* Newer footer layout */
footer:has(img[alt="Home"][src$="assets/logo.png"]) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

footer:has(img[alt="Home"][src$="assets/logo.png"]) > a {
  display: none !important;
}

footer:has(img[alt="Home"][src$="assets/logo.png"])::after {
  content: "\00A9 2026 Finbarre Snarey";
  display: block;
  color: inherit;
  font: normal 400 15px/1.4 Tahoma, Verdana, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}


/* =========================================================
   LOGIN AND REGISTRATION
   ========================================================= */

/* Remove left welcome panel */
.rcx-css-14gyq0r {
  display: none !important;
}

/* Convert split layout to one column */
.rcx-css-s3n4r5 {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: center !important;
}

/* Centre login and registration section */
.rcx-css-1tmhcn7 {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100% !important;
  margin-inline: auto !important;
}

/* Hide remaining login branding */
img[src$="/images/logo/logo.svg"][alt="Logo"],
.rcx-box:has(> a[href="https://rocket.chat/"]),
#welcomeTitle {
  display: none !important;
}

/* Replace submit-button wording */
button[type="submit"] > .rcx-button--content {
  font-size: 0 !important;
}

button[type="submit"] > .rcx-button--content::after {
  content: "Submit";
  font-size: 14px !important;
}


/* =========================================================
   PANELS
   ========================================================= */

.rcx-tile,
.rcx-card {
  color: #29242d !important;
  background-color: #fffaff !important;
  border: 2px solid #4b286d !important;
  border-radius: 2px !important;
  box-shadow: 6px 6px 0 rgba(75, 40, 109, 0.18) !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.rcx-button--primary,
button[type="submit"]:has(> .rcx-button--content) {
  color: #ffffff !important;
  background-color: #6e4f86 !important;
  border: 2px outset #9d7ab8 !important;
  border-radius: 2px !important;
  box-shadow: 2px 2px 0 #281139 !important;
  font-weight: 700 !important;
}

.rcx-button--primary:hover,
button[type="submit"]:has(> .rcx-button--content):hover,
button[type="submit"]:has(> .rcx-button--content):focus {
  color: #ffffff !important;
  background-color: #583e6c !important;
  border-color: #583e6c !important;
}

.rcx-button--primary:active,
button[type="submit"]:has(> .rcx-button--content):active {
  border-style: inset !important;
  box-shadow: none !important;
  transform: translate(2px, 2px);
}


/* =========================================================
   ORDINARY FORM FIELDS
   Search fields are excluded
   ========================================================= */

.rcx-input-box:not([type="search"]):not([placeholder*="Search"]):not([placeholder*="search"]),
.rcx-input-box__wrapper:not(:has(input[type="search"])):not(:has(input[placeholder*="Search"])):not(:has(input[placeholder*="search"])) {
  color: #29242d !important;
  background-color: #ffffff !important;
  border: 1px solid #a7a3aa !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}


/* =========================================================
   SEARCH BOX — NEUTRAL GREY
   ========================================================= */

input[type="search"],
input[placeholder*="Search"],
input[placeholder*="search"],
.rcx-input-box--type-search {
  color: #29242d !important;
  background-color: #ffffff !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.rcx-input-box__wrapper:has(input[type="search"]),
.rcx-input-box__wrapper:has(input[placeholder*="Search"]),
.rcx-input-box__wrapper:has(input[placeholder*="search"]),
.rcx-navbar [class*="input"]:has(input[placeholder*="Search"]),
.rcx-sidebar-topbar [class*="input"]:has(input[placeholder*="Search"]) {
  background-color: #ffffff !important;
  border: 1px solid #a5a5a5 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.rcx-input-box__wrapper:has(input[type="search"]):focus-within,
.rcx-input-box__wrapper:has(input[placeholder*="Search"]):focus-within,
.rcx-input-box__wrapper:has(input[placeholder*="search"]):focus-within,
.rcx-navbar [class*="input"]:has(input[placeholder*="Search"]):focus-within,
.rcx-sidebar-topbar [class*="input"]:has(input[placeholder*="Search"]):focus-within {
  border-color: #777777 !important;
  outline: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   UPPER NAVIGATION BAR
   ========================================================= */

.rcx-navbar,
.rcx-sidebar-topbar {
  background-color: #68636d !important;
  border-bottom: 1px solid #56515b !important;
}

.rcx-navbar button,
.rcx-navbar a,
.rcx-sidebar-topbar button,
.rcx-sidebar-topbar a {
  color: #ffffff !important;
}


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

.rcx-sidebar {
  background-color: #3b1f50 !important;
}

/* Channels and Direct messages headings */
body .rcx-sidebar h4.rcx-sidebar-v2-collapse-group__title,
body .rcx-sidebar .rcx-sidebar-v2-collapse-group__title {
  color: #ffffff !important;
  font-family: Tahoma, Verdana, Arial, sans-serif !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

/* Any text or icons nested inside those headings */
body .rcx-sidebar .rcx-sidebar-v2-collapse-group__title * {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Ordinary sidebar entries */
.rcx-sidebar a,
.rcx-sidebar-item {
  color: #f7edff !important;
}

/* Selected sidebar entry */
.rcx-sidebar a[aria-current="page"],
.rcx-sidebar [aria-selected="true"],
.rcx-sidebar .rcx-sidebar-item--selected {
  color: #321742 !important;
  background-color: #ddd9e1 !important;
}

/* Selected labels and icons */
.rcx-sidebar a[aria-current="page"] *,
.rcx-sidebar [aria-selected="true"] *,
.rcx-sidebar .rcx-sidebar-item--selected * {
  color: #321742 !important;
}

/* Hover state */
.rcx-sidebar a:hover,
.rcx-sidebar .rcx-sidebar-item:hover {
  color: #ffffff !important;
  background-color: #573170 !important;
}

.rcx-sidebar a:hover *,
.rcx-sidebar .rcx-sidebar-item:hover * {
  color: #ffffff !important;
}


/* =========================================================
   LINKS AND DIVIDERS
   ========================================================= */

a {
  color: #4d35b5;
  text-decoration: underline;
}

a:visited {
  color: #74418f;
}

.rcx-message-divider {
  color: #4b286d !important;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

::selection {
  color: #ffffff;
  background-color: #754797;
}

/* Smaller, quieter copyright footer */
div.rcx-css-k29f7k::after,
footer:has(img[alt="Home"][src$="assets/logo.png"])::after {
  font: normal 400 12px/1.3 Tahoma, Verdana, Arial, sans-serif !important;
  opacity: 0.8;
}

/* Centre the complete homepage card */
main:has(.chat-content) .rcx-card-group {
  justify-content: center !important;
}

main:has(.chat-content) .rcx-card-group > .rcx-card {
  width: calc(100% - 16px) !important;
  max-width: 724px !important;
  flex: 0 1 724px !important;
}

/* Centre the Tarot DMs title independently of Customize */
main:has(.chat-content) header > div {
  position: relative !important;
}

main:has(.chat-content) header h1 {
  position: absolute !important;
  left: 50% !important;
  width: max-content !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  pointer-events: none;
}