
/* Global theme. */

:root {
    --color-main: rgb(225, 242, 245);
    --color-active: #007bff;
    --color-options-border: #888;
}

body {
    background-color: #272727;
    color: var(--color-main);
    font-family: Verdana,Arial,Sans-Serif;
}

table, th, td, tr {
    text-align: left;
//    border: 1px solid  #666;
    font-size: 20px;
}
table {
    border-collapse: collapse;
}

td {
    border: 1px solid #666;
}

table:not(.non-alternable) tbody tr:nth-child(even) td {
    background-color: #3a3a3a;
}
table:not(.non-alternable) tbody tr:nth-child(odd) td {
    background-color: #2f2f2f;
}
td {
    border: 1px solid #666;
}
table tbody tr:hover td {
    background-color: #002040 !important;
}

table {
    width: 70%;
    margin-left: 0%;
}
th {
    text-align: center;
}

.pageTitle {text-align: center; font-size: 20px; }
.pageSubtitle {text-align: center; font-size: 10px; }

div.render-stats, div.render-stats-extra {
    margin-left: 10%;
    font-size: 18px;
    color: silver;
    font-family: "Arial";
    font-style: italic;
    text-align: left;
    padding-bottom: 2em;
}
div.render-stats {
    margin-top: 5em;
    text-decoration: overline silver;
}

div.render-stats span.render-stats-elapsed {
    color: lightblue;
}
div.render-stats span.render-stats-at {
    //    color: lightgreen;
//    font-style
}

.hidden {display: none; }
/* .nonVisible {visible: false; } */


/* WarcraftLogs-like score colors. */
.scoreColorArtifact { color: rgb(229, 204, 128); }
.scoreColorPink { color: #e268a8;}
.scoreColorLegendary {color: rgb(255, 128, 0); }
.scoreColorEpic {color: rgb(163, 53, 238);  }
.scoreColorRare { color: rgb(0, 112, 255);  }
.scoreColorUncommon { color: rgb(30, 255, 0)  }
.scoreColorCommon { color: rgb(225, 242, 245);  }
.scoreColorPoor { color: #665;  }

/* Progression colors. */
.progressionColorAll, .completion-all {
    color: #5cc301;
}
.progressionColorSome, .completion-some {
    color: #fcff00;
}
.progressionColorNone {
    color: #665;
}
.completion-none {
    color: red;
}

/* Expectation colors. */
.expectationsFull {color: #5cc301; }
.expectationsPartial {color: #fcff00; }
.expectationsNone {color: red; }

.expectations-full {
    color: #5cc301;
}
.expectations-partial {
    color: #fcff00;
}
.expectations-minimal {
    color: #ff8000;
}
.expectations-none {
    color: red;
}


/* Sortable column. */
th.sortable-column {
    cursor: grab;
    position: relative;
    user-select: none;
}
th.sortable-column:hover {
    background: #555555;
    color: #ddd;
    transition: background-color 0.2s ease;
}
th.sortable-column::after {
//    content: " ▲▼";
//    content: " ↕";
//    content: " ⬍";
    font-size: 0.8em;
    opacity: 0.8;
    margin-left: 0.4em;
    position: absolute;
    right: 0.4em;
    bottom: 0.4em;

}
th.sortable-column.sorted-asc, th.sortable-column.sorted-desc {
    background: #007bff;
    color: white;
    font-size: 0.9em;
    padding-right: 1.25em;
}
th.sorted-asc::after {
    content: " ▲";
    position: absolute;
    top: 8px;

}
th.sorted-desc::after {
    content: " ▼";
    position: absolute;
}
th.sorted-asc::after, th.sorted-desc::after {
    margin-left: 0.4em;
    font-size: 0.7em;
    opacity: 1;
}

.interpunct::after {
    content: "·";
    color: lightgray;
}

span.green-check::after {
    content: "✔";
    color: green;
}
span.red-cross::after {
    content: "❌";
    color: green;
}


.DeathKnight { color: rgb(77%, 12%, 23%) !important; }
.Druid { color: rgb(100%, 49%, 4%) !important }
.Hunter { color: rgb(67%, 83%, 45%) !important }
.Mage { color: rgb(41%, 80%, 94%) !important }
.Monk { color: #2D9B78 !important }
.Paladin { color: rgb(96%, 55%, 73%) !important }
.Priest { color: rgb(100%, 100%, 100%) !important }
.Rogue { color: rgb(100%, 96%, 41%) !important }
.Shaman { color: rgb(14%, 35%, 100%) !important }
.Warlock { color: rgb(58%, 51%, 79%) !important }
.Warrior { color: rgb(78%, 61%, 43%) !important }
.DemonHunter { color: #a330c9 !important; }
.Evoker {color: #2e8472; !important; }
.Unknown {color: gray  !important; }


.DeathKnight:hover { color: rgb(92%, 27%, 38%) !important }
.Druid:hover { color: rgb(100%, 64%, 19%) !important }
.Hunter:hover { color: rgb(82%, 98%, 60%) !important }
.Mage:hover { color: rgb(56%, 95%, 100%) !important }
.Monk:hover { color: #4DbB98 !important }
.Paladin:hover { color: rgb(100%, 70%, 88%) !important }
.Priest:hover { color: rgb(85%, 85%, 85%) !important }
.Rogue:hover { color: rgb(100%, 100%, 56%) !important }
.Shaman:hover { color: rgb(29%, 50%, 100%) !important }
.Warlock:hover { color: rgb(72%, 66%, 94%) !important }
.Warrior:hover { color: rgb(93%, 76%, 58%) !important }
.DemonHunter:hover { color: #c350e9 }
.Evoker:hover    {color: #55b39f; !important; }

.DeathKnight-bg { background-color: rgb(77%, 12%, 23%) !important; }
.Druid-bg { background-color: rgb(100%, 49%, 4%) !important }
.Hunter-bg { background-color: rgb(62%, 78%, 42%) !important }
.Mage-bg { background-color: rgb(41%, 80%, 94%) !important }
.Monk-bg { background-color: #2D9B78 !important }
.Paladin-bg { background-color: rgb(96%, 55%, 73%) !important }
.Priest-bg { background-color: rgb(100%, 100%, 100%) !important }
.Rogue-bg { background-color: rgb(100%, 96%, 41%) !important }
.Shaman-bg  { background-color: rgb(14%, 35%, 100%) !important }
.Warlock-bg { background-color: rgb(58%, 51%, 79%) !important }
.Warrior-bg  { background-color: rgb(78%, 61%, 43%) !important }
.DemonHunter-bg { background-color: #a330c9 !important; }
.Evoker-bg    { background-color: 002040; !important; }

.DeathKnight-behind-text { background-color: rgb(57%, 10%, 18%) !important; }
.Druid-behind-text { background-color: rgb(80%, 39%, 4%) !important }
.Hunter-behind-text { background-color: rgb(47%, 63%, 25%) !important }
.Mage-behind-text { background-color: rgb(31%, 60%, 74%) !important }
.Monk-behind-text { background-color: #2D9B78 !important }
.Paladin-behind-text { background-color: rgb(76%, 44%, 58%) !important }
.Priest-behind-text { background-color: rgb(55%, 55%, 55%) !important }
.Rogue-behind-text { background-color: rgb(50%, 48%, 20%) !important }
.Shaman-behind-text { background-color: rgb(11%, 28%, 80%) !important }
.Warlock-behind-text { background-color: rgb(46%, 40%, 63%) !important }
.Warrior-behind-text { background-color: rgb(62%, 49%, 34%) !important }
.DemonHunter-behind-text { background-color: #631089 !important; }

/* Tooltips. */
.has-tooltip {
    position: relative;
    z-index: 1;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 12px;
    background-color: #3b3b3b;
    color: #ffffff;
    padding: 2em 2em;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 1001;

    box-shadow:
    0 0 10px rgba(0, 0, 0, 0.6),   /* outer halo */
    0 2px 4px rgba(0, 0, 0, 0.5);   /* directional drop shadow */

    transition: opacity 0.25s ease, transform 0.25s ease;

    border-left: 3px solid #4dd0e1;
}

.has-tooltip:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(6px);
}

/* User rank colors. */

.user-rank-0 { color: orange; }  /* GM */
.user-rank-1 { color: blue; }    /* Officer */
.user-rank-2 { color: green; }   /* Advisor */
.user-rank-4 { color: silver; }  /* Core Raider */
/* Raider, Trial, Casual, Alt */
.user-rank-5, .user-rank-6, .user-rank-7, .user-rank-8 { color: white; }

/* Weekly reports. */

a.report-link {
    text-decoration-line: none;
}
a.report-link:link {
    color: green;
    cursor: pointer;
}
a.report-link:visited {
    color: lightgreen;
}
a.report-link:hover {
    background-color: yellow;
    color: red;
}
a.report-link:active {
    color: yellow;
}
a.report-link.current-report, a.report-link.current-report:visited {
    color: orange;
    font-size: 150%;
}

/* Tab switcher, v2. */

div.tab-selector {
    backdrop-filter: blur(6px);
    background-color: rgba(32, 32, 32, 0.85);
    border-radius: 8px;
    padding: 8px 12px;
    margin-left: 5%;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #444;
    margin-bottom: 5px;
}
button.tab-button {
    background: none;
    border: none;
    color: #bbbbbb;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
button.tab-button:hover {
    background: linear-gradient(to right, #2a2a2a, #1f1f1f);
    border-radius: 6px;
    color: #e0e0e0;
    border-bottom: 3px solid #555;
}
button.tab-button.active {
    color: #4dd0e1;
    font-weight: 600;
    border-bottom: 3px solid #4dd0e1;
--    text-shadow: 0 0 4px #4dd0e1;
--    box-shadow: 0 3px 6px rgba(77, 208, 225, 0.2);
}


/* V1 */
div.tab-selector-outer {
   border: 2px solid #555555;
   padding: 5px;
   cursor: pointer;
   line-height: 30px;
   float: left;
   display: block;
   margin-right: 5px;
   font-size: 135%;
   background: black;
   color: gray;
}

div.tab-selector-active {
   font-weight: bold;
   border-bottom: 1px solid transparent;
   transform: scale(1.1);
   border: 1px yellow solid;
   color: lightblue;
}
