:root {
  --header-color: #E72C2C;
  --accent-color: #B71C1C;
  --accent-hover: #3E1515;
  --star-color: #FFDF00;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(0deg, #000, #1a1a21);
    background-attachment: fixed;
    background-size: cover;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

#logo {
    background-image: url("logo.png");
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    margin: auto;
    width: 600px;
    height: 100px;
}

h1 {
    color: var(--header-color);
    font-family: 'Saira', sans-serif;
    text-align: center;
    margin-top: 20px;
}

nav {
    background: linear-gradient(0deg, #1f1f1f, #2c2c2c);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

nav .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav select {
    font-size: 16px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #666;
    background-color: #2c2c2c;
    color: #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
}

nav button {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1em;
    margin-right: 15px;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

nav button:hover {
    background-color: var(--accent-hover);
    color: #fff;
}

nav button.active {
    background-color: var(--accent-color);
    color: #fff;
}

table {
    border-collapse: collapse;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    background-color: #1e1e1e;
    border-radius: 6px;
    overflow: visible;
    table-layout: auto;
}

th, td {
    padding: 10px 25px;
    text-align: left;
}

th {
    background: linear-gradient(to bottom, #2c2c2c, #1f1f1f);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-weight: 600;
    position: sticky;
    top: 0;
    cursor: pointer;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

tbody tr:nth-child(even) { background-color: #131313; }
tbody tr:nth-child(odd) { background-color: #181818; }

tbody tr:hover td {
    background-color: var(--accent-hover);
    transition: background-color 0.2s ease;
}

td:first-child {
    font-size: 100%;
}

td {
    font-size: 85%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: top;
}

td:nth-child(3) {
    vertical-align: middle;
}

th.sort-asc::after { 
    content: " ▲"; 
    color: var(--accent-color);
    font-size: 0.7em;
}

th.sort-desc::after { 
    content: " ▼"; 
    color: var(--accent-color);
    font-size: 0.7em;
}

.console-icon {
    max-height: 20px;
    max-width: 58px;
    width: auto;
    display:inherit;
    margin: 0px auto;
}

.star-full, .star-half {
    color: var(--star-color);
    text-shadow: 0 0 3px white;
}

.star-empty { display: none; }

.tier-s, .tier-a, .tier-b, .tier-c, .tier-d, .tier-f {
  display: grid;
  place-items: center;
  width: 50px;
  height: 20px;
  border-radius: 12px;
  font-weight: bold;
  margin: auto;
  color: black;
  font-family: Helvetica;
  text-align: center;
}

.tier-s { background: rgb(255, 127, 127); }
.tier-a { background: rgb(255, 191, 127); }
.tier-b { background: rgb(255, 255, 127); }
.tier-c { background: rgb(127, 255, 127); }
.tier-d { background: rgb(127, 191, 255); }
.tier-f { background: rgb(255, 127, 255); }

/*.tier-s { color: rgb(255, 127, 127); }
.tier-a { color: rgb(255, 191, 127); }
.tier-b { color: rgb(255, 255, 127); }
.tier-c { color: rgb(127, 255, 127); }
.tier-d { color: rgb(127, 191, 255); }
.tier-f { color: rgb(255, 127, 255); }*/

.status-done { color: #4CAF50; }
.status-dropped { color: #F44336; }

.ui-tooltip {
    background: #222;
    color: #fff;
    border-radius: 4px;
    padding: 12px;
    font-size: 0.95em;
    min-width: 200px;
    max-width: 660px;
    white-space: normal;
    z-index: 10000 !important;
}

/* Subtle note emoji styling */
.note-icon {
    float: right;
    opacity: 0.2;
    margin-top: 4px;
    margin-left: 10px;
    margin-right: -32px;
    transition: opacity 0.2s ease;
    font-size: 0.7em;
}

tr[data-note]:hover .note-icon { opacity: 1; }