:root {
    --container-bg: #062540;
    --main-bg: #111;
    --main-font: #eee;
    --bar-bg: #103045;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--main-bg);
    color: var(--main-font);
    margin: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--container-bg);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 30px;
}
.dps-bar-container {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping for long text/bars */
    gap: 10px; /* Space between name, bar, and numbers */
}
.charname {
    flex-shrink: 0; /* Don't let charname shrink */
    width: 120px; /* Fixed width for names */
    text-align: right;
    font-weight: bold;
    padding-right: 10px; /* Space before bar */
}
.bar-wrapper {
    flex-grow: 1; /* Allow bar to take remaining space */
    background-color: var(--bar-bg);
    border-radius: 4px;
    height: 25px; /* Height of the bar */
    position: relative;
    overflow: hidden; /* Hide anything outside the rounded corners */
}
.dps-bar {
    height: 100%;
    background-color: #666;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    color: white;
    font-size: 0.9em;
    box-sizing: border-box; /* Include padding in width */
    transition: width 0.5s ease-out; /* Smooth transition for bar growth */
}
.dps-value {
    flex-shrink: 0; /* Prevent DPS value from shrinking */
    font-weight: bold;
    color: var(--main-font); /* Darker color for readability */
    width: 100px; /* Fixed width for DPS number */
    text-align: left;
    padding-left: 10px;
}
.percentage-diff {
    flex-shrink: 0;
    width: 80px; /* Fixed width for percentage */
    text-align: left;
    font-weight: bold;
}
.positive {
    color: green;
}
.negative {
    color: red;
}
.average-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px; /* Thickness of the line */
    background-color: #9999ff;
    z-index: 1; /* Ensure it's above the bar but under text if needed */
}
.mean-display {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff;
}

/* Class Bars */

.bar-death-knight {
    background-color: #C41E3A !important;
}

.bar-demon-hunter {
    background-color: #A330C9 !important;
}

.bar-druid {
    background-color: #FF7C0A !important;
}

.bar-evoker {
    background-color: #33937F !important;
}

.bar-hunter {
    background-color: #AAD372 !important;
}

.bar-mastery-hunter {
    background-color: #AAD372 !important;
}

.bar-mage {
    background-color: #3FC7EB !important;
}

.bar-monk {
    background-color: #00FF98 !important;
}

.bar-paladin {
    background-color: #F48CBA !important;
}

.bar-priest {
    background-color: #FFFFFF !important;
}

.bar-rogue {
    background-color: #FFF468 !important;
}

.bar-shaman {
    background-color: #0070DE !important;
}

.bar-warlock {
    background-color: #8788EE !important;
}

.bar-warrior {
    background-color: #C59B68 !important;
}

/* Tabs */

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #555;
    justify-content: center; /* Center the tabs */
}

.tab-button {
    background-color: #444;
    color: #bbb;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s, color 0.3s;
}

.tab-button:hover {
    background-color: #555;
    color: #eee;
}

.tab-button.active {
    background-color: #007bff; /* Active tab color */
    color: white;
    font-weight: bold;
}

.tab-content {
    display: none; /* Hidden by default */
}

.tab-content.active {
    display: block; /* Show active content */
}