@import url("palette.css");

/* Reset */

a img,
:link img,
:visited img {
    border: none;
}

/* Forms */

input[type="text"],
input[type="number"],
input[type="password"],
input[type="button"],
button,
select {
    border: 1px solid var(--color-border-default);
    border-radius: 3px;
    color: var(--color-text-default);
    padding: 4px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-accent-blue);
}

input[type="button"],
input[type="submit"],
button {
    cursor: pointer;
    padding: 4px 16px;
}

button:disabled {
    cursor: initial;
}

/*table { border-collapse: collapse; border-spacing: 0; }*/

:focus {
    outline: none;
}

/* Structure */

body {
    color: var(--color-text-default);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 18px;
    margin: 0;
    text-align: left;
}

.aside {
    width: 300px;
}

.invisible {
    display: none;
}

/* Typography */

h2,
h3,
h4 {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding: 0 0 5px;
}

h2 {
    color: var(--color-text-default);
    font-size: 14px;
    font-weight: bold;
}

#mochaPage h3 {
    border-bottom: 1px solid var(--color-border-default);
    display: block;
    font-size: 12px;
    margin: 0 0 8px;
    padding: 6px 0;
}

#error_div,
#rename_error {
    color: var(--color-text-red);
    float: left;
    font-size: 14px;
    font-weight: bold;
}

h4 {
    font-size: 11px;
}

a {
    color: var(--color-text-orange);
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

p {
    margin: 0;
    padding: 0 0 9px;
}

/* List Elements */

ul {
    list-style: outside;
    margin: 0 0 9px 16px;
}

dt {
    font-weight: bold;
}

dd {
    padding: 0 0 9px;
}

/* Forms */

fieldset {
    border: 1px solid var(--color-border-default);
    border-radius: 5px;
}

/* Code */

pre {
    background-color: var(--color-background-default);
    border: 1px solid var(--color-border-default);
    color: var(--color-text-green);
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    margin: 0 0 10px;
    max-height: 250px;
    overflow: auto;
    padding: 10px;
}

/* Dividers */

hr {
    background-color: var(--color-background-default);
    border: 0px;
    color: var(--color-text-default);
    height: 1px;
}

.vcenter {
    vertical-align: middle;
}

#urls {
    height: 100%;
    width: 90%;
}

#trackersUrls {
    height: 100%;
    width: 90%;
}

#Filters ul {
    list-style-type: none;
}

#Filters ul li {
    margin-left: -16px;
}

#Filters ul img {
    height: 16px;
    padding: 0 4px;
    vertical-align: middle;
    width: 16px;
}

.selectedFilter {
    background-color: var(--color-background-blue) !important;
    color: var(--color-text-white) !important;
}

.selectedFilter a {
    color: var(--color-text-white) !important;
}

#properties {
    background-color: var(--color-background-default);
}

a.propButton {
    border: 1px solid rgb(85 81 91);
    margin-left: 3px;
    margin-right: 3px;
    /*border-radius: 3px;*/
    padding: 2px;
}

a.propButton img {
    margin-bottom: -4px;
}

.scrollableMenu {
    overflow: hidden auto;
}

/* context menu specific */

.contextMenu {
    background-color: var(--color-background-default);
    border: 1px solid var(--color-border-default);
    display: none;
    list-style-type: none;
    padding: 0;
}

.contextMenu .separator {
    border-top: 1px solid var(--color-border-default);
}

.contextMenu li {
    margin: 0;
    padding: 0;
}

.contextMenu li a {
    color: var(--color-text-default);
    display: block;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    padding: 5px 20px 5px 5px;
    text-decoration: none;
    white-space: nowrap;
}

.contextMenu li a:hover {
    background-color: var(--color-background-hover);
    color: var(--color-text-white);
}

.contextMenu li a.disabled {
    font-style: italic;
}

.contextMenu li a.disabled:hover {
    color: var(--color-text-disabled);
}

.contextMenu li ul {
    background: var(--color-background-default);
    border: 1px solid var(--color-border-default);
    left: -999em;
    list-style-type: none;
    margin: -29px 0 0 100%;
    padding: 0;
    position: absolute;
    width: 164px;
    z-index: 8000;
}

.contextMenu li ul li a {
    position: relative;
}

.contextMenu li a.arrow-right,
.contextMenu li a:hover.arrow-right {
    background-image: url("../images/arrow-right.gif");
    background-position: right center;
    background-repeat: no-repeat;
}

.contextMenu li:hover ul,
.contextMenu li.ieHover ul,
.contextMenu li li.ieHover ul,
.contextMenu li li li.ieHover ul,
.contextMenu li li:hover ul,
.contextMenu li li li:hover ul {
    /* lists nested under hovered list items */
    left: auto;
}

.contextMenu li img {
    height: 16px;
    margin-bottom: -4px;
    margin-right: 0.5em; /* return missed padding */
    width: 16px;
}

.contextMenu li input[type="checkbox"] {
    position: relative;
    top: 3px;
}

/* Sliders */

.slider {
    clear: both;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    width: 400px;
}

.sliderWrapper {
    font-size: 1px;
    height: 9px;
    line-height: 1px;
    position: relative;
    width: 422px;
}

.sliderarea {
    background: #f2f2f2 url("../images/slider-area.gif") repeat-x;
    border: 1px solid #a3a3a3;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    font-size: 1px;
    height: 7px;
    left: 0;
    line-height: 1px;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    top: 0;
    width: 420px;
}

.sliderknob {
    background: url("../images/knob.gif") no-repeat;
    cursor: pointer;
    font-size: 1px;
    height: 9px;
    left: 0;
    line-height: 1px;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 19px;
    z-index: 2;
}

.update {
    padding-bottom: 5px;
}

.mochaToolButton {
    margin-right: 10px;
}

/* Mocha Customization */

#mochaToolbar {
    height: auto !important;
    margin-top: 5px;
    overflow-y: hidden;
    position: relative;
}

#mochaToolbar .divider {
    background-image: url("../images/toolbox-divider.gif");
    background-position: left center;
    background-repeat: no-repeat;
    padding-left: 14px;
    padding-top: 15px;
}

.MyMenuIcon {
    margin-bottom: -3px;
    margin-left: -18px;
    padding-right: 5px;
}

#mainWindowTabs {
    float: right;
    margin: 4px 5px 0 0;
}

#torrentsFilterToolbar {
    display: inline-block;
    vertical-align: top;
}

#torrentsFilterInput {
    background-color: var(--color-background-default);
    background-image: url("../images/edit-find.svg");
    background-position: left;
    background-repeat: no-repeat;
    background-size: 1.5em;
    border: 1px solid var(--color-border-default);
    border-radius: 3px;
    min-width: 160px;
    padding: 4px 4px 4px 25px;
}

#torrentsFilterRegexBox {
    display: none;
}

#torrentsFilterRegexBox + label {
    background-image: url("../images/regex.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    border: 1px solid var(--color-border-default);
    border-radius: 4px;
    display: inline-block;
    height: 26px;
    margin-bottom: -9px;
    width: 26px;
}

#torrentsFilterRegexBox:checked + label {
    background-color: var(--color-background-default);
    background-image: url("../images/regex.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.5em;
    border: 1px solid var(--color-accent-blue);
    border-radius: 4px;
    display: inline-block;
    height: 26px;
    margin-bottom: -9px;
    width: 26px;
}

#torrentFilesFilterToolbar {
    float: right;
    margin-right: 30px;
}

#torrentFilesFilterInput {
    background-image: url("../images/edit-find.svg");
    background-position: left;
    background-repeat: no-repeat;
    background-size: 1.5em;
    padding-left: 2em;
    width: 160px;
}

/* Tri-state checkbox */

label.tristate {
    background: url("../images/3-state-checkbox.gif") 0 0 no-repeat;
    display: block;
    float: left;
    height: 13px;
    margin: 0.15em 8px 5px 0px;
    overflow: hidden;
    text-indent: -999em;
    width: 13px;
}

label.checked {
    background-position: 0 -13px;
}

label.partial {
    background-position: 0 -26px;
}

fieldset.settings {
    border: 1px solid var(--color-border-default);
    border-radius: 8px;
    padding: 4px 4px 4px 10px;
}

fieldset.settings legend {
    font-weight: bold;
    margin-left: 8px;
    padding: 4px;
}

fieldset.settings label {
    padding: 2px;
}

fieldset.settings + div.formRow {
    margin-top: 10px;
}

div.formRow {
    clear: left;
    display: block;
}

.filterTitle {
    display: block;
    font-weight: bold;
    overflow: hidden;
    padding-left: 5px;
    padding-top: 5px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.filterTitle img {
    height: 16px;
    margin-bottom: -3px;
    padding: 0 5px;
    width: 16px;
}

.filterTitle img.rotate {
    transform: rotate(270deg);
}

ul.filterList {
    margin: 0 0 0 16px;
    padding-left: 0;
}

ul.filterList a,
ul.filterList span.link {
    color: inherit;
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 4px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

ul.filterList li:hover {
    background-color: var(--color-background-hover);
    color: var(--color-text-white);
}

ul.filterList li:hover a {
    color: var(--color-text-white);
}

td.generalLabel {
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
    width: 1px;
}

.filesTableCollapseIcon {
    cursor: pointer;
    height: 15px;
    margin-bottom: -3px;
    padding-right: 5px;
    width: 15px;
}

.filesTableCollapseIcon.rotate {
    margin-bottom: -1px;
    transform: rotate(270deg);
}

.unselectable {
    -webkit-touch-callout: none;
    user-select: none;
}

#prop_general {
    padding: 2px;
}

.piecesbarWrapper {
    position: relative;
    width: 100%;
}

.piecesbarCanvas {
    height: 100%;
    image-rendering: pixelated;
    inset: 0;
    position: absolute;
    width: 100%;
}

#watched_folders_tab {
    border-collapse: collapse;
}

#watched_folders_tab td,
#watched_folders_tab th {
    border: 1px solid black;
    padding: 2px 4px;
}

.select-watched-folder-editable {
    border: solid grey 1px;
    height: 20px;
    position: relative;
    width: 160px;
}

.select-watched-folder-editable select {
    border: none;
    bottom: 0px;
    left: 0px;
    margin: 0;
    position: absolute;
    top: 0px;
    width: 160px;
}

.select-watched-folder-editable input {
    border: none;
    left: 0px;
    padding: 1px;
    position: absolute;
    top: 0px;
    width: 140px;
}

.select-watched-folder-editable select:focus,
.select-editable input:focus {
    outline: none;
}

/*
 * Workaround to prevent the transfer list from
 * disappearing when zooming in the browser.
 */
#filtersColumn_handle {
    margin-left: -1px;
}

.combo_priority {
    font-size: 1em;
}

td.statusBarSeparator {
    background-image: url("../images/toolbox-divider.gif");
    background-position: center 1px;
    background-repeat: no-repeat;
    background-size: 2px 18px;
    width: 22px;
}

/* Statistics window */
.statisticsValue {
    text-align: right;
}

/* Search tab */

#SearchPanel,
#SearchPanel_wrapper,
#SearchPanel_pad {
    height: inherit;
}

#searchResults {
    height: 100%;
    padding: 0 20px;
}

#searchResultsTableContainer {
    -moz-height: calc(100% - 177px);
    -webkit-height: calc(100% - 177px);
    height: calc(100% - 177px);
    overflow: auto;
}

#searchResultsTableDiv {
    -moz-height: calc(100% - 26px) !important;
    -webkit-height: calc(100% - 26px) !important;
    height: calc(100% - 26px) !important;
}

#searchResults .dynamicTable {
    width: 100%;
}

#searchResults .numSearchResults {
    font-style: italic;
}

.red {
    color: var(--color-text-red);
}

.green {
    color: var(--color-text-green);
}

.searchPluginsTableRow {
    cursor: pointer;
}

#torrentFilesTableDiv .dynamicTable tr.nonAlt:hover {
    background-color: var(--color-background-hover);
    color: var(--color-text-white);
}
