/*
    Name: PCH Torrent RSS Config
    Description: Stylistic update of the TorrentWatch (http://code.google.com/p/torrentwatch/) config interface.
    Version: 1.0
    Author: Keith Solomon
    Author URI: http://reciprocity.be/
    
    License: GNU General Public License v2
*/

/* Modifications by Joris Vandalon
 * inspired by Clutch
 */

/*---------------------
 * Some debugging info
 * --------------------*/
div.rss_debug {
    display: none;
}

/*-----------------
 *
 * G L O B A L
 *
 * ---------------*/
html {
    overflow: hidden;
}

body {
    font: 85% "lucida grande", Tahoma, Verdana, Arial, Helvetica, sans-serif;
    color: #323232 !important;
    text-align: left;
    overflow: hidden;
    height: 100%;
    }

input, select {
    margin-left: 2em;
}

select {
    border: 1px solid #787878;
}

input[type=text] {
    border: 1px solid #787878;
    margin-left: 2em;
    }

input[type=password] {
    border: 1px solid #787878;
    margin-left: 2em;
    }

input[type=hidden] {
    display: none;
}
    
input[type=checkbox] {
    margin-top: 2px;
}

label {
    display: inline;
    font-size: 0.9em;
    margin-left: 1em;
    }

label.category {
    display: block;
    font-size: 1.0em;
    margin: 1em 0 1em 1em;
    font-weight: bold;
    }

.hidden {
    display: none;
    }
    
/*-----------------
 *
 * T O P   M E N U
 *
 * ----------------*/
ul.mainoptions {
    background: transparent url('../images/chrome.png') repeat-x;
    border-bottom: 1px solid #979797;
    width: 100%;
    height: 68px;
    z-index: 2;
    }

ul.mainoptions li {
    float: left;
    margin: 12px 0 0 0;
    vertical-align: middle;
    }

ul.mainoptions li#legend {
    float: right;
}

ul.mainoptions li#report {
    float: right;
}

ul.mainoptions li#webui {
    display: none;
    float: right;
}

ul.mainoptions li a {
    color: #030303;
    font-size: 0.9em;
    text-decoration: none;
    padding: 33px 0.7em 0 0.7em;
    display: block;
}

ul.mainoptions li#favoritesMenu a {
    background: url(../images/nuvola_bookmark.png) no-repeat center 0;
}
ul.mainoptions li#config a {
    background: url(../images/nuvola_configure.png) no-repeat center 0;
}

ul.mainoptions li#view a {
    background: url(../images/nuvola_history.png) no-repeat center 0;
}

ul.mainoptions li#empty a {
    background: url(../images/remove.png) no-repeat center 0;
}

ul.mainoptions li#webui a {
    background: url(../images/webui.png) no-repeat center 0;
}

ul.mainoptions li#legend a {
    background: url(../images/info.png) no-repeat center 0;
}

ul.mainoptions li#report a {
    background: url(../images/report_bug.png) no-repeat center 0;
}

ul.mainoptions li.divider {
        width: 0;
        border-right: 1px dotted black;
        opacity: 0.2;
    height: 2.3em;
    margin: 1.3em 0 0 0;
    }

/*-----------------
 *
 * F I L T E R     B A R
 *
 * ---------------*/

ul#filterbar_container {
    position: fixed;
    background: #ddd;
    border-bottom: 1px solid #979797;
    height: 22px;
    right: 0;
    left: 0;
    z-index: 2;
    }

ul#filterbar_container li {
    float: left;
    margin: 0.3em 0.5em;
    padding-left: 0.5em;
    vertical-align: middle;
    height: 1.1em;
    font-size: 0.9em;
    color: #4E4E4F;
    }

    
ul#filterbar_container li a {
    padding-right: 0.5em;
    text-decoration: none;
    color: #333;
    }


ul#filterbar_container li:hover {
    background: transparent url('../images/filter_hover_left.png') no-repeat top left;
    height: 16px;
}

ul#filterbar_container li:hover a {
    background: transparent url('../images/filter_hover_right.png') no-repeat top right;
    display: inline-block;
    height: 16px;
}

ul#filterbar_container li.selected {
    background: transparent url('../images/filter_selected_left.png') no-repeat top left;
    height: 16px;
}

ul#filterbar_container li.selected a {
    background: transparent url('../images/filter_selected_right.png') no-repeat top right;
    display: inline-block;
    height: 16px;
}

ul#filterbar_container li#rates:hover,
ul#filterbar_container li#rates {
    background: none;
    padding: 0;
    margin: 0;
    float: right;
    font-size: 9px;
}

ul#filterbar_container li#filter_bytext:hover,
ul#filterbar_container li#filter_bytext {
    background: none;
    float: right;
    margin: 0;
    border: 0;
}

input#filter_text_input {
    height: 13px; 
    width: 8em; 
    border: 1px solid #5D80A1; 
    padding: 1px 5px 2px 15px;
    margin: 2px 5px;
    border-radius: 10px;
    background: #FFF url('../images/filter_icon.png') top left no-repeat;
    -o-border-radius: 8px; 
    -icab-border-radius: 8px;
    -khtml-border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px; 
    outline-style: none;
    }

input#filter_text_input.blur {
    border-color: #CCC;
    }

/*------------
 *
 * L E G E N D
 *
 *------------*/

ul.show_legend {
    border: 1px solid grey;
}

ul.show_legend li {
    padding: 5px 5px 5px 5px;
    font-size: 12px;
}

/*-------------------------
 *
 * T O R R E N T   L I S T
 *
 * ------------------------*/

div#torrentlist_container {
    display: none;
    position: absolute;
    overflow: auto;
    width: 100%;
    top: 92px;
    bottom: 0;
    left: 0;
    right: 0;
    }

div#torrentlist_container div.errorHeader {
    border-bottom: 1px solid #ccc;
    font-size: 1.0em;
    height: 1.2em;
    text-align: center;
    background: #FBBFBF;
    color: #777;
}

div#torrentlist_container div.header,
div.transmission div.header {
    border-bottom: 1px solid #ccc;
    font-size: 1.4em;
    height: 1.2em;
    text-align: center;
    background: #CCFFCC;
}

div#torrentlist_container div.header_hidden {
    color: #ccc;
}

div#torrentlist_container div.header td.hide_feed {
    text-align: center;
    width: 18px;
}

div#torrentlist_container div.header td.feed_title {
    text-align: center;
}

ul.torrentlist li.torrent {
    font-size: 0.9em;
    }

li.torrent.hidden_bytext {
    display: none;
    }

ul.torrentlist li.torrent.alt {
    background-color: #EDF3FE;
    }

ul.torrentlist li.torrent.paused {
    background-color: #FBBFBF;
}

ul.torrentlist li.torrent.downloading {
    background-color: #f2e2ff;
}

ul.torrentlist li.torrent.verifying {
    background-color: #FFFFCC;
}

ul.torrentlist li.torrent.waiting {
    background-color: #FFFFFF;
}

ul.torrentlist p {
    padding: 1px;
}

ul.torrentlist td.buttons {
    border-bottom: 1px dotted #ccc;
    text-align: center;
    vertical-align: top;
    padding-top: 3px;
    width: 15px;
    height: 15px;
}

div#show_legend li.legend.match_nomatch,
ul.torrentlist td.buttons.match_nomatch {
    background-color: #fbbfbf;
}

div#show_legend li.legend.match_season,
ul.torrentlist td.buttons.match_season {
    background-color: #66cdaa;
}

div#show_legend li.legend.match_old_download,
ul.torrentlist td.buttons.match_old_download {
    background-color: #CDCDCD;
}

div#show_legend li.legend.match_match,
ul.torrentlist td.buttons.match_match {
    background-color: #FFCC66;
}

ul.torrentlist td.buttons.match_duplicate,
div#show_legend li.legend.match_old,
ul.torrentlist td.buttons.match_old {
    background-color: #CCCCFF;
}

div#show_legend li.legend.match_test,
ul.torrentlist td.buttons.match_test {
    background-color: #FFCCFF;
}

div#show_legend li.legend.match_cachehit,
ul.torrentlist td.buttons.match_cachehit,
ul.torrentlist td.buttons.match_downloaded,
ul.torrentlist td.buttons.match_downloading,
ul.torrentlist td.buttons.match_transmission {
    background-color: #CCFFCC;
}

ul.torrentlist td.buttons.left {
    padding-left: 4px;
}

ul.torrentlist td.buttons.right {
    padding-right: 5px;
}

ul.torrentlist td.torrent_name {
    padding: 5px 2px 5px 3px;
}

ul.torrentlist div.torInfo {
    color: green;
    font-size: 9px;
    margin-top: 2px;
}

span.torrent_name {
    margin-right: 5px;
}

td.torrent_name {
    border-bottom: 1px solid #ccc;
    vertical-align: middle;
}

td.feed_info {
    border-bottom: 1px solid #ccc;
    text-align: right;
    vertical-align: middle;
    padding: 1px 2px 1px 0;
}

span.dateAdded,
p.torrent_pubDate {
    padding-bottom: 1px;
    font-size: 10px;
}    

p.feed_name {
    padding-top: 1px;
    font-size: 9px;
    color: #777777;
}

span.hide_item img {
    border: 1px solid #b0b0b0;
}    

div#footer {
    padding: 2px;
    background-color: #DDD;
    font-size: 0.8em;
    text-align: center;
}

div#donate {
    padding-top: 3px;
    text-align: center;
}

/*--------------------------
 *
 * D I A L O G S
 *
 * ---------------------*/

div.dialog_window {
    display: none;
    position: fixed; 
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    z-index: 2;
    background-color: #B0C4DE;
    background-color: #DDD;
    margin: -0.2em auto 0 auto;
    filter: alpha(opacity=90);
    -moz-opacity: .95;
    opacity: .95;
    border: 2px solid #B5B5B5;
    top: 100px;
    width: 450px;
    margin-left: -205px;
    padding: 5px;
    }

div.move_data {
    position: inherit;
    padding: 5px 10px 0px 0px;
}

div.move_data input {
    float: none;
    font-size: 0.8em;
    width: 200px;
    margin: 0 0 0 0;
    padding: 0 2px 1px 2px;
}

div.move_data a {
    float: none;
    border: 1px solid grey;
    text-align: center;
    text-decoration: none;
    background-color: #EEE;
    font-size: 0.8em;
    color: #323232;
    margin: 0 0 0 5px;
    padding: 0 5px 1px 5px;
}

div.move_data a.close {
    width: 40px;
}

div.move_data a.button.close {
    width: 10px;
}

div.move_data label {
    margin: 0 0 0 2px;
}
    
div#configuration  {
    top: 5px;
    width: 700px;
    margin-left: -350px;
}

h2.dialog_heading {
    font-size: 1.3em;
    text-align: center;
    }

div.buttonContainer {
    margin-top: 2px;
    float: right;
    }

a.toggleConfigTab {
    vertical-align: bottom;
    margin-top: 5px;
    padding: 1px 2px 1px 2px;
    background-color: #EEE;
    border: 1px solid #787878;   /* if needed */
    -webkit-border-radius: 4px;    /* for Safari */
    -moz-border-radius: 4px;       /* for Firefox */
    font-size: 0.8em;
    color: #323232;
    text-decoration: none;
    cursor: pointer;
}
    
a.button,
input[type=submit] {
    float: right;
    margin: .5em 1em 0 0;
    padding: .5em;
    background-color: #EEE;
    border: 1px solid #787878;
    font-size: 0.8em;
    color: #323232;
    clear: left;
    cursor: pointer;
    }

a.button {
    width: 50px;
    text-align: center;
    text-decoration: none;
    -webkit-border-radius: 8px;    /* for Safari */
    -moz-border-radius: 8px;       /* for Firefox */
    }

a.disabled {
    color: #CCCCCC;
}
input[type=submit] {
    width: 62px;
    height: 28px;
    }

div.legend input {
    clear: left;
    }
    
div#clientError {
    top: 5px;
    text-align: center;
    width: 450px;
    margin-left: -225px;
    
}

div#clientError h2 {
    font-weight: bold;
    color: red;
    margin-bottom: 4px;
}

div#errorDialog {
    top: 5px;
    color: red;
    text-align: center;
    width: 600px;
    margin-left: -310px;
}

div#successDialog {
    top: 5px;
    color: green;
    text-align: center;
    width: 600px;
    margin-left: -310px;
}

div#newVersion {
    top: 20px;
    color: green;
    text-align: center;
    width: 450px;
    margin-left: -225px;
}

div#newVersion a {
    color: green;
}

div#fav_error {
    top: 20px;
    color: red;
    text-align: center;
}

/********************************
 *
 * W I Z A R D   D I A L O G S
 *
 *******************************/
div.welcome {
    margin: -0.2em auto 0 -300px;
    width: 600px;
    border: 3px solid grey;
    }

div.welcome input {
    clear: left;
    }

div#welcome1 label,
div#welcome5 label {
    margin-top: 0.2em;
    display: block;
    }
    
div.form_radio {
    padding-left: 10px;
    }

div.form_input {
    margin: 10px 0 10px 20px;
}

div.form_input input.form_downdir[type=text] {
    width: 200px;
    margin-left: 12px;
}

div#welcome5 input.form_email[type=text] {
    width: 300px;
    margin: 10px 0 10px 12px;
}


/***************************
 *
 * P R O G R E S S   B A R
 *
 ***************************/
#progressbar {
    background: #DBDBDB url('../images/ajaxload.gif') no-repeat center bottom;
    display: block;
    height: 30px;
    top: 150px;
    overflow: hidden;
    z-index: 5;
    width: 300px;
    margin: -0.2em auto 0 -150px;
    }

#progressbar span {
    text-align: center;
    font-size: 1.2em;
    padding-left: 125px;
    }

/*****************************
 *
 * C O N F I G   D I A L O G 
 *
 ****************************/
 
div#configTabs {
    margin-top: 5px;
    text-align: center;
    height: 25px;
}

div#configTabs .selTab {
    background-color: #787878;
    color: #FFFFFF;
}

div.dialog_window#configuration {
    margin-top: 90px;
    margin-left: -225px;
    float: left;
    width: 450px;
}

div.dialog_window#configuration div.config_form input.text,
div.dialog_window#configuration div.config_form input.password,
div.dialog_window#configuration div.config_form input[type=text],
div.dialog_window#configuration div.config_form input[type=password] {
    position: absolute;
    left: 148px;
    width: 275px;
    padding-left: 3px;
}

div.dialog_window#configuration div.config_form select {
    position: absolute;
    left: 148px;
    width: 277px;
}

div.dialog_window#configuration div.config_form input[type=checkbox] {
    position: absolute;
    left: 148px;
}

div.config_form {
    border: 1px solid grey;
    padding: 10px 0 5px 0;
    margin: 10px 0 0 0 ;
}

form#config_form div {
    min-height: 22px;
}

div#config_feeds {
    border: 1px solid grey;
    margin-top: 10px;
    padding: 5px 0 5px 0;
}

div#addFeed {
    border-bottom: 1px solid grey;
    padding-bottom: 5px;
}

div#feedItemTitles {
    margin: 3px 0 5px;
}

div#feedNameUrl {
    margin-left: 0;
    float: left;
    width: 315px;
}

div#addFeed input.feed_link[type=text] {
    width: 300px;
    margin: 0 0;
    padding: 3px;
    left: 87px;
}

div#addFeed a.button {
    margin: 0 10px 0 0;
    padding: 3px 0 3px 0;
}


div#config_feeds div.feeditem {
    height: 35px;
}

div#config_feeds div.feeditem label.item {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    width: auto;
    padding: 5px;
}

div#config_feeds div.feeditem input[type=text] {
    width: 300px;
    margin: 3px 0;
    padding: 3px;
    left: 0px;
}

div#config_feeds div.feeditem input.feed_url[type=text],
div#config_feeds div.feeditem input.feed_name[type=text] {
    margin: 3px 0 0 10px;
}

div#config_feeds div.feeditem input.seed_ratio[type=text] {
    width: 2em;
    margin-left: 6px;
}

div#config_feeds div.feeditem a.button {
    width: 30px;
    margin: 3px 10px 0 0;
    padding: 3px 0 3px 0;
}

div#config_feeds div.feeditem a.button#Update {
    margin-right: 5px;
}

div#showURL {
    font-size: 0.9em;
}

div#showURL input[type=checkbox] {
    margin-left: 5px;
}

div#config_hideList ul.hidelist {
    border: 1px solid grey;
    max-height: 300px;
    overflow: auto;
    padding-bottom: 5px;
}

div#config_hideList ul.hidelist li {
     overflow: hidden;
}

div#config_hideList ul.hidelist li:hover {
     background-color: #3879D7;
}

div#config_hideList ul.hidelist input[type=checkbox] {
    margin: 0 5px 0 0;
}

div#linkButtons  {
    float: right;
}

/***********************************
 *
 * F A V O R I T E S   D I A L O G
 *
 **********************************/
div.dialog_window#favorites {
    width: 590px;
    margin-left: -287px;
    height: 247px;
}

div.favorite {
    height: 245px;
    width: 180px;
    float: left;
    clear: left;
    border: 1px solid grey;
    padding: 0 0 0 5px;
}

ul.favorite {
    height: 245px;
    font-size: 120%;
    overflow: auto;
}

div.favinfo {
    height: 245px;
    float: right; 
    clear: right;
    border: 1px solid grey;
    padding: 0px 0 0px 5px;
    width: 380px;
}

ul.favorite li {
    overflow: hidden;
    cursor: pointer;
    }

ul.favorite li a {
    vertical-align: top;
    font-size: 0.8em;
    text-decoration: none;
    color: #000000;
    overflow: hidden;
    }

ul.favorite li:hover {
    background-color: #3879D7;
    }

form.favinfo {
    height: 248px;
    display: none;
    padding: 5px 0;
    margin: 5px 0;
    width: 380px;
    float: right;
    }
form.favinfo div {
    height: 24px;
    }

form.favinfo #mode,
form.favinfo input#idx {
    display: none;
    }

form.favinfo select {
    position: absolute;
    right: 25px;
    width: 262px;
}

form.favinfo input.text,
form.favinfo input[type=text] {
    position: absolute;
    right: 25px;
    width: 260px;
}

form.favinfo div.favorite_seed_and_episode {
     position: absolute;
     float: right;
     right: 25px;
     width: 360px;
}

form.favinfo label.lastSeason {
    position: absolute;
    right: 70px;
    top: 2px;
    margin-left: 0;
}

form.favinfo label.lastEpisode{
    position: absolute;
    right: 30px;
    top: 2px;
    margin-left: 0;
}

form.favinfo input.seedratio[type=text] {
    position: absolute;
    right: 240px;
    width: 20px;
    text-align: center;
}

form.favinfo input.lastSeason[type=text] {
    position: absolute;
    right: 40px;
    width: 20px;
    text-align: center;
}

form.favinfo input.lastEpisode[type=text] {
    position: absolute;
    right: 0;
    width: 25px;
    text-align: center;
}

div.favinfo div.buttonContainer {
    position: absolute;
    top: 210px;
    right: 75px;
}

div#favClose {
    right: 3px;
}

/**********************************
 *
 * B U G  R E P O R T   D I A L O G
 *
 **********************************/
 
div#report_bug {
    width: 420px;
}

form#report_form div {
    min-height: 22px;
}

div#report_bug textarea {
    resize: vertical;
    float: right;
    width: 300px;
}

div#report_bug select,
div#report_bug input[type=text] {
    float: right;
    width: 300px;
}

div#report_bug input[type=submit] {
    height: 25px;
}

/******************************
 *
 * H I S T O R Y   D I A L O G
 *
 *****************************/
div#history {
    height: 257px;
    }

ul#historyItems {
    top: 0;
    bottom: 35px;
    left: 0;
    right: 0;
    height: 222px;
    overflow: auto;
    border-bottom: 1px solid #979797;
    padding: 2px 0 0 10px;
    }

div#history ul li{
    white-space: nowrap;
    overflow: hidden;
    font-size: 0.9em
    }


div#history a {
    bottom: 0.2em;
    }

div#history a#clearhistory {
    right: 0;
    }

div#history a.toggleDialog {
    right: 6.5em;
    }

/*-----------------
 *
 * O L D   C S S   S T U F F
 *
 * ----------------*/


.clear { clear: both; }

div.dialog_window#history {
    width: 583px;
    margin-left: -288px;
}

div.timer {
    font-size: 8pt;
    text-align: right;
    margin-right: 5px;
    bottom: 0;
    right: 0;
}


.favorite li {
    background: url(../images/favorites.png) no-repeat left center;
    height: 20px;
    margin-bottom: 5px;
    padding-left: 24px;
    overflow: hidden;
}

