﻿body.dark-theme {
    background-color: #1e1e2f;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.page-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

/* Tab Container */
.tab-container {
    min-width: 950px;
    margin: 0 auto;
    border: 1px solid #3e3e55;
    border-radius: 8px;
    background-color: #28293d;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #3e3e55;
    background-color: #3e3e55;
}

.tabs button {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #3e3e55;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.tabs button.active {
    background-color: #e91e63;
    color: #ffffff;
}

.tabs button:hover {
    background-color: #5a5b75;
}

/* Tab Content */
.tab-content {
    padding: 20px;
    background-color: #1e1e2f;
    color: #ffffff;
    border-top: none;
}

.tab-content > div[x-show="true"] {
    display: block; /* Show active content */
}


.container {
    background-color: #28293d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead th {
    cursor: pointer;
    background-color: #3e3e55;
    color: #ffffff;
    padding: 10px;
}

tbody td {
    padding: 10px;
    text-align: left;
}

tbody tr:nth-child(odd) {
    background-color: #2c2c3e;
}

tbody tr:hover {
    background-color: #3a3a50;
}

/* Center-align numerical fields in table */
table td.center {
    text-align: center;
}
table th.center {
    text-align: center;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #e91e63;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between elements */
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between checkbox and text */
    color: #ffffff; /* Optional: Dark theme adjustment */
    font-size: 1rem; /* Optional: Adjust text size */
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0; /* Remove default margins */
    cursor: pointer; /* Pointer cursor for better UX */
}


label {
    font-size: 1.1rem;
}

select, input[type="checkbox"] {
    background-color: #3e3e55;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 1rem;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #3e3e55;
}

th {
    color: #ffffff;
    font-weight: bold;
}

span {
    color: #f1c40f;
}

.player-name {
    padding: 2px 5px;
    display: inline-block; /* Makes spacing effective */
    border: 1px solid #444; /* Optional: Add a border */
    border-radius: 4px; /* Optional: Rounded corners */
    margin-right: 5px; /* Space between names */
    background-color: #2c2c3e; /* Optional: Dark theme adjustment */
}

a {
    color: #e91e63; /* Default color */
    text-decoration: none; /* Optional: Remove underline */
}

    a:hover {
        color: #ff4081; /* Lighter pink on hover */
    }

    a:visited {
        color: #e91e63; /* Force visited links to stay the same color */
    }

.no-purple-links a:visited {
    color: #e91e63;
}

/* Title Bar (H1 + Add Button) */
.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.add-item-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    font-size: 20px;
    padding: 8px 14px;
    border-radius: 50%;
    cursor: pointer;
}

    .add-item-btn:hover {
        background-color: #d81b60;
    }

/* Add Item Form */
.add-item-form {
    background-color: #3e3e55;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

    .add-item-form h2 {
        margin-top: 0;
    }

    .add-item-form label {
        display: block;
        margin: 5px 0;
    }

    .add-item-form input {
        width: 100%;
        padding: 8px;
        margin-bottom: 10px;
        border-radius: 4px;
        border: 1px solid #666;
        background-color: #28293d;
        color: white;
    }

.save-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.cancel-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 10px;
    margin-left: 10px;
    cursor: pointer;
}

/* MedalTV Embed */
.medal-embed {
    position: relative;
    display: inline-block;
    max-width: 350px;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
    padding: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.medal-thumbnail {
    width: 100%;
    border-radius: 5px;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.medal-video {
    width: 100%;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e91e63;
    color: white;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
}

    .close-btn:hover {
        background: #d81b60;
    }

.video-container {
    display: flex;
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
}

.video-header {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.video-box {
    min-width: 350px;
    min-height: 220px;
    margin: 0 0 12px 8px
}

.qwf {
    width: 100%;
    height: 100%;
}