/* ================================
   Original demosdm.css content
   ================================ */

/* Base Styles */

/* Outer wrapper for horizontal scrolling */
.scrollable-wrapper {
    overflow-x: auto;
}

/* Fixed container for table layouts */
.fixed-container {
    min-width: 1024px;
}

/* Table full width */
.fixed-container table {
    width: 98%;
    margin: 0 auto;
}

/* Main content override */
.container.main-content {
    z-index: auto !important;
    position: relative;
}

/* Action container for icons */
.action-container {
    display: inline-flex;
    align-items: center;
    background: transparent !important;
}

/* Button styles for copy and download */
.copy-button,
.download-button {
    border: none;
    background: transparent !important;
    cursor: pointer;
    padding: 0;
    margin-left: 1px;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

/* Icon image size */
.copy-button img,
.download-button img {
    width: 26px !important;
    height: 26px !important;
    background-color: transparent !important;
    border: none !important;
}

/* Feedback text styling */
.copy-feedback {
    margin-left: 5px;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.copy-feedback.show {
    opacity: 1;
}

/* Existing Styles */
.main-content {
    z-index: 999999;
    position: relative;
    padding: 20px 25px;
    background: url("../img/dark_wall.jpg") repeat scroll 0% 0% transparent;
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5), 0px 1px 1px rgba(255, 255, 255, 0.2) inset;
            box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5), 0px 1px 1px rgba(255, 255, 255, 0.2) inset;
    -o-border-image: none;
       border-image: none;
}

table {
    width: 100%;
    border: 1px solid black;
    font-size: 1.4rem;
}

tbody .demo img {
    -o-object-fit: cover;
       object-fit: cover;
    width: 85px;
    height: 85px;
    background-color: #fff;
    border-radius: 5px;
    padding: 1px;
}

thead, tfoot, .playerlist h6 {
    background-color: #1D1D1D;
    border: 1px solid black;
    background-image: -webkit-gradient(linear, left bottom, left top, from(#1A1B1F), to(#212528));
    background-image: -o-linear-gradient(bottom, #1A1B1F, #212528);
    background-image: linear-gradient(to top, #1A1B1F, #212528);
    -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3), 0px 1px 1px rgba(255, 255, 255, 0.2) inset;
            box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3), 0px 1px 1px rgba(255, 255, 255, 0.2) inset;
}

thead th,
tbody .demo td {
    padding: 10px;
}

tfoot td {
    padding: 5px;
}

thead th {
    text-align: left;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 20px;
    border-bottom: 2px solid black;
}

tbody .demo td {
    color: #999;
    padding: 15px;
    border-bottom: 1px solid black;
}

tbody .demo:nth-child(even) {
    background-color: #212528;
}

tbody .demo:nth-child(odd) {
    background-color: #1a1d1f;
}

div.error {
    margin: 0 !important;
    height: 211px;
    padding-top: 95px;
}

div.error a {
    color: #03b1fc;
}
div.error a:hover {
    color: #038cfc;
}

.no-results {
    height: 500px;
    text-align: center;
    padding-top: 250px;
    font-size: 15px;
    background-color: #212528;
}

/* Player list container (hidden by default) */
.playerlist .container2 {
    position: relative;
    overflow: hidden;
    display: none;
    background-color: #141416;
}

.playerlist ul {
    list-style-type: none;
    overflow: hidden;
    padding: 0;
    margin: 0 !important;
}

.playerlist h6 {
    width: 100%;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #bbb;
    border: none;
    border-bottom: 1px solid black;
    font-size: 0.8em;
    margin: 0 !important;
}

/*** Demo list of players ***/
.player_list .content {
    font-size: 15px;
}

.player_list li {
    width: 25%;
    float: left;
    padding-left: 6px;
    padding-right: 6px;
    margin-top: 12px;
}

.player {
    width: 100%;
    border: 1px solid #000;
    background-color: #161515;
    background-image: -webkit-gradient(linear, left bottom, left top, from(#100f10), to(#161515));
    background-image: -o-linear-gradient(bottom, #100f10, #161515);
    background-image: linear-gradient(0deg, #100f10, #161515);
    color: #606971;
    border: 1px solid black;
    -webkit-box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.75);
            box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.75);
}

.player_info {
    overflow: hidden;
    height: 90px;
    padding: 10px;
    padding-bottom: 0;
}

.player_avatar {
    width: 33.33333333333333%;
    height: 100%;
    float: left;
    text-align: center;
}

.player_avatar img {
    width: 80px;
    height: 80px;
    -o-object-fit: cover;
       object-fit: cover;
    border: 1px solid #000;
    background-color: #1d1d1d;
    background-image: -webkit-gradient(linear, left bottom, left top, from(#111111), to(#1d1d1d));
    background-image: -o-linear-gradient(bottom, #111111, #1d1d1d);
    background-image: linear-gradient(0deg, #111111, #1d1d1d);
    padding: 5px;
}

.player_time,
.player_rank,
.player_name {
    display: block;
    overflow: hidden;
    height: 33.33333333333333%;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
}

.player_time {
    text-align: right;
    font-size: 0.8em;
    line-height: 2.5;
    padding-right: 10px;
}

.player_rank {
    position: relative;
    text-align: right;
    padding-right: 10px;
    font-size: 1.7em;
    line-height: 1.1;
    cursor: default;
}

.player_rank i {
    display: inline-block;
    background-image: url(../img/military-rank.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 28px;
    height: 100%;
}

.player_name {
    color: #2091d8;
    text-transform: uppercase;
    padding-left: 10px;
    line-height: 2;
}

/*** Score Area Styles ***/

/* Center the entire player score area within its container */
.player_score {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Configure each score item (LI) as a flex row */
.player_score li {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Wrapper for header and progress bar stacked vertically */
.score-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px; /* Space between score-info and the icons */
}

/* Style for the header area */
.player_score .header {
    display: block;
    text-align: center;
    margin-bottom: 5px;
    padding: 0 12px;
    font-weight: bold;
    font-size: 0.85em;
    color: #777;
}

/* Style for the progress bar container */
.player_team_progress {
    width: 150px;  /* Adjust width as needed */
    margin-top: 5px; /* Spacing between header and progress bar */
}

.player_team_progress--bar {
	display: block;
	width: 0;
	height: 100%;
	background-color: #969696;
	background-image: -webkit-gradient(linear, left top, right top, from(#DB2C2C), color-stop(0, #2091d8));
		background-image: -o-linear-gradient(left, #DB2C2C var(--progress), #2091d8 0);
			background-image: linear-gradient(to right, #DB2C2C var(--progress), #2091d8 0);
	-webkit-animation: fill 3s ease forwards;
	        animation: fill 3s ease forwards;
}

/* Style for kill and death icons */
.player_score li span.icon {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;  /* Space between icons and score-info */
    font-size: 1.5rem;    /* Adjust if needed */
}

/* Kill/Death Icon image styling */
.player_score li span.kills i,
.player_score li span.deaths i {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 4px;
}

.player_score li span.kills i {
    background-image: url(../img/aim.png);
}

.player_score li span.deaths i {
    background-image: url(../img/human-skull.png);
}

/*** End Score Area Styles ***/

/*** Loader Styles ***/
.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #555; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 1s linear infinite;
            animation: spin 1s linear infinite;
    margin-bottom: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
}

.loader-container span {
    position: absolute;
    top: 50%;
    left: 49.50%;
    margin: 30px 0 0 -20px;
}

.loader-container {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: rgba(10, 10, 10, 0.5);
    width: 100%;
    height: 100%;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

/*** Content ***/
.content {
    overflow: hidden;
    padding: 0 5px 20px 5px;
}

.link {
    color: #0d6efd;
    text-decoration: underline;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
    white-space: nowrap;
}

.link:hover {
    color: #0a58ca;
}

.size {
    font-size: 0.95em;
}

.versus2 {
    color: #fff;
    margin: 0 10px;
}

.ct {
    background-image: -webkit-gradient(linear, left bottom, left top, from(#096AA1), to(#26C3F6));
    background-image: -o-linear-gradient(bottom, #096AA1, #26C3F6);
    background-image: linear-gradient(to top, #096AA1, #26C3F6);
    -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3) inset, 0px 0px 1px 1px #05c7f7 inset;
            box-shadow: 0px 1px 2px rgba(0,0,0,0.3) inset, 0px 0px 1px 1px #05c7f7 inset;
}

.t {
    background-image: -webkit-gradient(linear, left bottom, left top, from(#9C1A1A), to(#DB2C2C));
    background-image: -o-linear-gradient(bottom, #9C1A1A, #DB2C2C);
    background-image: linear-gradient(to top, #9C1A1A, #DB2C2C);
    -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3) inset, 0px 1px 1px 1px #f23535 inset;
            box-shadow: 0px 1px 2px rgba(0,0,0,0.3) inset, 0px 1px 1px 1px #f23535 inset;
}

.ct, .t {
    text-transform: uppercase;
    padding: 4px 10px;
    font-weight: bold;
    color: #fff;
    border: 1px solid black;
    border-radius: 2px;
}

.ct, .t, .versus2 {
    white-space: nowrap;
}

.player_team {
    float: left;
    margin-top: 5px;
}

.pie {
    width: 40px;
    height: 40px;
    margin-left: 2px;
    position: relative;
}

.pie--percent {
    font-size: 20px;
    z-index: 1;
}

.circle_progress {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
            transform: rotate(-90deg);
    background-color: #00d0ff;
    border-radius: 50%;
    opacity: 0.7;
}

.circle_progress--idk {
    --progress: 100;
    fill: #00d0ff;
    stroke: red;
    stroke-width: 32;
    stroke-dasharray: 0 100; /* 2 * PI x circle radius = 158 */
    -webkit-animation: fillup 3s ease forwards;
            animation: fillup 3s ease forwards;
}

@-webkit-keyframes fillup {
    to {
        stroke-dasharray: var(--progress) 100;
    }
}

@keyframes fillup {
    to {
        stroke-dasharray: var(--progress) 100;
    }
}

.player_team_progress {
    --progress: 0;
    margin: 0 auto;
    width: 80%;
    margin-bottom: 6px;
    height: 4px;
}

.player_team_progress--bar {
    display: block;
    width: 0;
    height: 100%;
    background-color: #969696;
    background-image: -webkit-gradient(linear, left top, right top, from(#DB2C2C), color-stop(0, #2091d8));
        background-image: -o-linear-gradient(left, #DB2C2C var(--progress), #2091d8 0);
            background-image: linear-gradient(to right, #DB2C2C var(--progress), #2091d8 0);
    -webkit-animation: fill 3s ease forwards;
            animation: fill 3s ease forwards;
}

@-webkit-keyframes fill {
    to {
        width: 100%;
    }
}

@keyframes fill {
    to {
        width: 100%;
    }
}

/*@media (max-width: 992px) {
    .ct, .t, .versus {
        display: block;
        text-align: center;
        margin: 6px 0;
    }
}*/

.player_score li {
    margin-bottom: 5px; /* Adds 5px space below the score area */
}

/* ================================
   Additional styles to mimic bans page
   ================================ */

/* Inner container similar to bans page */
.g-content {
    background: #212528;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3), 0px 1px 1px rgba(255,255,255,0.2) inset;   
    margin-bottom: 20px;
    width: 98%;
    min-height: 600px !important;
    margin: 0 auto;
    color: #CCC;
    font-size: 12px;
    padding-bottom: 20px;
}

/* Header styling matching bans page */
.user-rank {
    color: #ccc;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
    padding: 15px;
    border: 1px solid #000;
    background-color: #1D1D1D;
    background-image: linear-gradient(to top, #1A1B1F, #212528);
    box-shadow: 0px 1px 3px rgba(0,0,0,0.3), 0px 1px 1px rgba(255,255,255,0.2) inset;
    margin-bottom: 20px;
}

.demonotfound td {
    text-align: center;    /* Centers text horizontally */
    padding: 10px;
    vertical-align: top;   /* Aligns content to the top */
}

.no-players {
  text-align: left;
  font-style: italic;
  color: #888;
  padding: 10px 0;
  width: 100%;
}

/* Fix table layout so column widths remain constant */
.fixed-container table {
  table-layout: fixed;
  width: 98%;
  margin: 0 auto;
}

/* Explicit column widths for a 4-column table */
.fixed-container th:nth-child(1) {
  width: 35%;  /* Adjust as needed for the Downloads column */
}
.fixed-container th:nth-child(2) {
  width: 15%;  /* Map column */
}
.fixed-container th:nth-child(3) {
  width: 25%;  /* Final score column */
}
.fixed-container th:nth-child(4) {
  width: 25%;  /* Match finish column */
}

/* Ensure the player list row (drop-down) does not affect overall width */
.playerlist td {
  margin: 0;
  padding: 0;
}