/* ========================= ROOT ========================= */

#roles-root {
  font-family: inherit;
  min-height: 500px;
}

.roles-loading {
  padding: 10px 0;
  color: #777;
}

/* ========================= TABS ========================= */

.rk-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  gap: 4px;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.rk-tab-btn {
    transition: all 0.5s ease-in-out;
    font-weight: 400 !important;
    padding: 4px 20px !important;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    color: var(--navi-link);
    border: none !important;
    background: var(--tab-pl);
    font-family: var(--main-font);
    font-size: 15px;
    letter-spacing: 4px;
    flex: 0 0 auto;
}

.rk-tab-btn.active {
  background: var(--link-acc) !important;
  color: var(--navi-link-hov) !important;
}

/* ====================== TOP BAR (ADD/SAVE) ====================== */

.rk-top-controls {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: none !important;
  padding: 12px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 20px !important;
}

/* ========================= GRID LAYOUT ========================= */

.rk-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 30px;
  padding: 20px;
}

/* ========================= FANDOM BLOCKS ========================= */

.rk-fandom-head {
    font-weight: 400;
    margin-bottom: 6px;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    color: var(--text);
    background: #aba89e70;
    border-radius: 6px;
    padding: 6px 0px 0px 20px;
    font-family: 'Yeseva One';
    font-size: 16px;
    height: 30px;
}
.rk-fandom-head::before {
    color: var(--tab-pl);
    content: '\f561';
    font-family: "Font Awesome 6 Pro";
    font-size: 16px;
    /* position: absolute; */
    display: inline-block;
    margin: 8px 5px 0px -4px;
    margin-top: 8px;
    transform: translateY(-50%);
    height: 20px;
    line-height: 21px;
}

.rk-fandom {
        background: #aba89e70;
    padding: 0px 0px 10px 0px;
    border-radius: 8px;
}

.rk-char-list {
    margin: 0px 0px 0px 20px;
    padding-left: 18px;
    max-height: 300px;
    overflow-y: scroll;
}

.rk-char-list li {
    list-style: disc;
    margin: 2px 0;
    font-weight: bold;
    color: var(--link-acc) !important;
        text-transform: lowercase;
}

/* ========================= EDIT BUTTONS ========================= */

.rk-edit-char {
  opacity: 0;
  transition: opacity .2s ease;
    border:none;
  border-radius:12px;
  background-color: var(--link-acc) !important;
  color:#fff;
}

.rk-edit-cast {
  opacity: 0;
  transition: opacity .2s ease;
      position: relative;
    top: -2px;
    left: 10px;
      border:none;
  border-radius:12px;
  background-color: var(--link-acc) !important;
  color:#fff;
}


.rk-char-list li:hover .rk-edit-char {
  opacity: 1;
  

}

.rk-fandom-head:hover .rk-edit-cast {
  opacity: 1;

}

/* ========================= MODAL BACKDROP ========================= */

.rk-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 9999;
}

.rk-backdrop.visible {
  opacity: 1;
}

/* ========================= MODAL WINDOW ========================= */

.rk-modal {
  background: var(--light50, #fff);
  padding: 22px;
  border-radius: 10px;
  width: 360px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ========================= MODAL FIELDS ========================= */

.rk-field {
  margin-bottom: 14px;
}

.rk-field label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.rk-field input,
.rk-field select {
  width: 100%;
  padding: 7px;
  border: 1px solid #ccc;
  background: #fafafa;
}

/* ========================= MODAL BUTTONS ========================= */

.rk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rk-btn {
    transition: all 0.5s ease-in-out;
    font-weight: 400 !important;
    line-height: 13px !important;
    padding: 4px 20px !important;
    cursor: pointer;
    border-radius: 20px;
    text-transform: uppercase;
    color: var(--navi-link) !important;
    border: none !important;
    font-family: var(--sec-font) !important;
    background: var(--link-acc) !important;
    font-size: 10px;
}

.rk-btn.warn {
  background: #ff9e9e !important;
}