@font-face {
    font-family: "Noto Emoji";
    font-style: normal;
    font-weight: 400;
    src: url(fonts/NotoEmoji-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400;
    src: url(fonts/NotoSans-Regular.ttf) format("truetype");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 200;
    src: url(fonts/NotoSans-Thin.ttf) format("truetype");
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 700;
    src: url(fonts/NotoSans-Bold.ttf) format("truetype");
}

:root {
    --white: #ffffff;
    --black: #000000;
    --light-gray: #f6f6f6;
    --mid-gray: #ededed;
    --dark-gray: #b6b6b6;
    --darker-gray: #a0a0a0;
    --dark-burple: #2f2f3f;
    --dark-lighter-burple: #3f3f5f;
    --dark-bluer-burple: #2f2f8f;
    --light-burple: #e7e7f7;
    --lighter-burple: #f7f7ff;
    --mid-dark-burple: #5f5f7f;
    --mid-burple: #7f7f9f;
    --orange: #ff8000;
    --orange-hover: #ffbb33;
    --dark-orange: #df8000;
    --darker-red: #bb0000;
    --dark-red: #cc0000;
    --dark-red-hover: #ff6666;
    --light-red: #ffeeee;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: block;
    font-family: "Noto Sans", Arial, Helvetica, sans-serif;
    color: var(--dark-burple);
    background: var(--light-gray);
}

.icon {
    font-family: "Noto Emoji";
}

nav[role="navigation"] {
    background-color: var(--mid-burple);
    width: 225px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    margin-right: 20px;
}

nav[role="navigation"] ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav[role="navigation"] ul li a {
    display: block;
    padding: 12px 20px 12px 30px;
    border-left: 4px solid transparent;
    text-decoration: none;
    color: #afafcf;
    font-size: 0.85em;
    font-weight: normal;
}

nav[role="navigation"] ul li a .icon {
    display: inline-block;
    width: 25px;
}

nav[role="navigation"] ul li.selected a {
    border-left-color: var(--dark-bluer-burple);
}

nav[role="navigation"] ul li a:hover,
nav[role="navigation"] ul li.selected a {
    color: #ffffff;
    background-color: var(--mid-dark-burple);
}

a.head {
    display: block;
    width: 225px;
    height: 40px;
    background-color: var(--dark-burple);
    border-bottom: var(--dark-lighter-burple) 1px solid;
    text-align: center;
    padding-top: 20px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
}

@keyframes sparkle {
    0% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }

}

a.head .icon {
    background-image: linear-gradient(var(--orange), var(--dark-red));
    opacity: 0.75;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sparkle ease-in 3s infinite;
    display: inline-block;
    position: relative;
    top: -3px;
}

main {
    margin-left: 225px;
    padding: 20px 30px 20px 20px;
    min-height: 100%;
}

main section {
    margin: 5px;
    border-top: 1px var(--light-burple) solid;
    background: var(--white);
    min-height: 200px;
}

main section hr.divider {
    clear: both;
    border: none;
    border-bottom: 1px solid var(--light-burple);
}

main section .content {
    padding: 10px 20px;
}

header {
    margin-left: 225px;
    padding: 14px 30px 14px 14px;
    height: 31px;
    border-bottom: 1px var(--light-burple) solid;
    background: var(--white);
}

header a img {
    border-radius: 50%;
    width: 32px;
    float: right;
}

nav#breadcrumbs {
    margin-left: 225px;
    padding: 20px 30px 40px 20px;
    border-bottom: var(--light-burple) 1px solid;
    display: block;
    background: var(--white);
}

nav#breadcrumbs h1 {
    font-family: "Noto Sans";
    font-weight: 200;
    font-size: 1.4em;
    padding: 0;
    margin: 0 0 5px 0;
}

nav#breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav#breadcrumbs ul li {
    display: block;
    float: left;
    font-size: 0.8em;
}

nav#breadcrumbs ul li a {
    text-decoration: none;
    color: var(--dark-burple);
}

nav#breadcrumbs ul li:not(:first-child):before {
    content: " / ";
    display: block;
    margin: 0 5px;
    float: left;
}

nav#breadcrumbs ul li:last-child {
    font-weight: bold;
}

nav#breadcrumbs ul li:last-child:after {
    content: '';
    display: block;
    clear: both;
}

/* Tables */
.data-table {
    width: 100%;
    font-size: 0.8em;
    border-collapse: collapse;
}

.data-table,
.data-table th,
.data-table td {
    border-bottom: 1px solid var(--light-burple);
    padding: 5px;
}

.data-table tr:nth-child(2n) {
    background-color: var(--lighter-burple);
}

.data-table td.long {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 500px;
}

.data-table th {
    text-align: left;
}

.data-table th.sortable {
    cursor: pointer;
}

.data-table .is-subscriber {
    color: #08f;
}

.data-table .is-vip {
    color: #E005B9;
}

.data-table .is-mod {
    color: #1CB96A;
}

.data-table .is-broadcaster {
    color: #f00;
}

.data-table .short {
    font-weight: bold;
}

.data-table .data-table td,
.data-tableters .data-table td {
    overflow: visible;
    white-space: normal;
    max-width: inherit;
}

.data-table .bool,
.data-table .actions {
    text-align: center;
}

.data-table .actions>button {
    text-decoration: none;
    font-family: "Noto Emoji";
    color: var(--white);
    padding: 3px;
    border-radius: 3px;
    font-size: 1em;
    border: 1px transparent solid;
    text-align: center;
    display: inline-block;
    width: 25px;
    cursor: pointer;
}

.data-table .actions .btn-edit {
    margin-right: 5px;
}

.data-table .actions .btn-delete {
    height: auto;
}

.btn-edit {
    background-color: var(--orange);
}

.btn-edit:hover {
    background-color: var(--dark-orange);
}

.btn-delete {
    background-color: var(--dark-red);
}

.btn-delete:hover {
    background-color: var(--darker-red);
}

.data-table td.bool {
    font-family: "Noto Emoji";
}

.data-table .short,
.data-table .display-name {
    max-width: 200px;
    min-width: 50px;
}

.data-table .data-table .short {
    text-align: right;
    padding-right: 10px;
}

.data-table .date {
    width: 140px;
}

.data-table .user-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.no-commands {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    padding: 20px;
}

.no-commands .btn-add {
    display: block;
    margin: 20px auto;

    text-decoration: none;
    color: var(--white);
    padding: 3px;
    border-radius: 3px;
    font-size: 1em;
    border: 1px transparent solid;
    text-align: center;
    width: 200px;

    background-color: var(--dark-lighter-burple);
}

.no-commands .btn-add:hover {
    background-color: var(--mid-dark-burple);
}

header #channel-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    display: block;
    width: 40%;
    float: left;
}

header #channels {
    float: right;
    display: block;
    width: 40%;
    list-style: none;
    margin: 0;
}

header .user {
    display: block;
    float: right;
    margin: 0 0 0 10px;
    border-radius: 50%;
    border: 2px transparent solid;
}

header .user.selected {
    border-color: var(--dark-bluer-burple);
}

header .user:hover {
    border-color: var(--mid-dark-burple);
}

.user-info {
    cursor: pointer;
}

.user-info .user-popup {
    border: 1px var(--mid-dark-burple) solid;
    padding: 10px;
    background: var(--mid-dark-burple);
    color: var(--white);
    display: none;
    position: absolute;
    margin-left: -285px;
    margin-top: -35px;
    width: 250px;
    z-index: 2000;
    box-shadow: 0 0 5px 0 var(--mid-dark-burple);
}

.user-info .user-popup:after {
    content: '';
    position: absolute;
    top: 10px;
    right: -20px;
    border: 10px solid transparent;
    border-left: 10px solid var(--mid-dark-burple);
}

.user-info:hover .user-popup {
    display: block;
}

.user-description {
    font-style: italic;
}

.edit-command .input-group {
    clear: both;
    float: none;
}

.edit-command label {
    clear: left;
    font-weight: bold;
    margin: 0;
    padding: 0 10px 0 0;
    width: 150px;
    min-height: 30px;
    display: block;
    float: left;
    text-align: right;
}

.edit-command {
    margin: 0;
    padding: 0;
    min-height: 30px;
    float: left;
    display: block;
}

.edit-command textarea {
    height: 100px;
    width: 400px;
}

.edit-command input,
.edit-command select,
.edit-command textarea {
    font-family: "Noto Sans", sans-serif;
}

.popup-content {
    border-radius: 5px;
    padding: 0 !important;
    border: 0;
    width: 600px !important;
}

.popup {
    margin: 0;
    padding: 0;
}

.popup hr {
    clear: both;
    border: none;
    border-bottom: 1px var(--dark-gray) solid;
}

.popup .close-popup {
    position: absolute;
    top: 12px;
    right: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    border: 0;
    background: none;
    color: var(--dark-gray);
}

.popup .close-popup:hover {
    color: var(--black);
}

.popup>h2 {
    padding: 10px 10px 0 10px;
    margin: 0;
    font-size: 1.5em;
}

.popup-body:after {
    content: '';
    display: block;
    clear: both;
}

.popup .buttons {
    float: right;
    padding: 0 10px 10px 10px;
}

.btn-submit,
.btn-cancel,
.btn-add,
.btn-delete {
    display: inline-block;
    margin: 0 5px;

    text-decoration: none;
    color: var(--white);
    padding: 3px;
    border-radius: 3px;
    font-size: 1em;
    border: 1px transparent solid;
    text-align: center;
    width: 75px;
    height: 35px;
    cursor: pointer;
}

.popup .btn-submit,
.btn-add {
    background-color: var(--mid-dark-burple);
}

.popup .btn-submit:hover,
.btn-add:hover {
    background-color: var(--dark-lighter-burple);
}

.popup .btn-cancel {
    background-color: var(--dark-gray);
}

.popup .btn-cancel:hover {
    background-color: var(--darker-gray);
}

.btn-add {
    font-size: 0.8em;
    width: 125px;
    height: auto;
    text-align: right;
    padding: 5px 10px;
    position: relative;
}

.btn-add:before {
    content: '+';
    font-size: 23px;
    position: absolute;
    left: 10px;
    top: -1px;
}

.section-header {
    padding: 10px 10px 5px 10px;
    position: relative;
}

.section-header h2 {
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 1em;
}

.section-header .btn-add {
    position: absolute;
    top: 15px;
    right: 10px;
}

.confirm-delete {
    padding: 0 10px 10px 10px;
}

/** Login **/
#login form {
    width: 450px;
    margin: 0 auto;
    padding: 50px;
}

#login .error-message {
    color: var(--darker-red);
    border: 1px var(--darker-red) solid;
    font-weight: bold;
    text-align: center;
    background-color: var(--light-red);
    padding: 5px;
    border-radius: 3px;
    width: 100%;
}

#login input[type="text"],
#login input[type="password"] {
    padding: 5px;
    margin: 5px auto;
    display: block;
    width: 100%;
    font-size: 1.5em;
    border-radius: 3px;
    font-family: "Noto Sans", sans-serif;
}

#login .login-button {
    display: block;
    padding: 5px;
    width: 100%;
    margin: 5px auto;
    font-size: 1.5em;
    background-color: var(--mid-dark-burple);
    color: var(--white);
    border: 1px transparent solid;
    border-radius: 3px;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
    text-align: center;
}

#login .login-button:hover {
    background-color: var(--dark-lighter-burple);
}


nav[role="navigation"] ul li.logout-item {
    position: absolute;
    bottom: 0;
    width: 225px;
    background: var(--dark-burple);
    border-top: 1px var(--dark-lighter-burple) solid;
}

nav[role="navigation"] ul li.logout-item a {
    padding-left: 0;
    text-align: center;
}

nav[role="navigation"] ul li.logout-item:hover a {
    background: var(--dark-burple);
    color: #fff;
}
