body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    background-color: #121212;
    display: flex;
    min-height: 100vh;
}

table td {
    vertical-align: middle;
}

a:link {
  color: #4da6ff; 
  text-decoration: underline;
}

a:visited {
  color: #a3c2e0; 
  text-decoration: underline;
}

a:hover {
  color: #80bfff;
  text-decoration: none;
}

a:active {
  color: #ff9999;
}

a.static, a.static:hover, a.static:visited {
    text-decoration: none;
    color: #ffffff;
}


/* nav */

.sidebar {
    width: 220px;
    min-height: 100vh;
    background-color: #1e1e1e;
    border-right: 1px solid #444444;
    transition: width 0.1s ease;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #0c0c0c;
    border-bottom: 1px solid #2a2a2a;
    border-radius: 0;
    margin-bottom: 0;
}
.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    padding-right: 15px;
    padding-top: 5px;
}
.toggle-btn {
    cursor: pointer;
    font-size: 1.5rem;
    color: #a1a1aa;
}
.toggle-btn:hover {
    color: #ffffff;
}
.menu-items {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}
.menu-items li a {
    display: flex;
    align-items: center;
    padding: 5px 22px;
    color: #e4e4e7;
    text-decoration: none;
    transition: background-color 0.2s;
}
.menu-items li a:hover {
    background-color: #2a2a2a;
    color: #ffffff;
}
.icon {
    margin-right: 10px;
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}
.emoji {
    font-size: 0.8rem;
}
.main-content {
    flex: 1;
    padding: 0 20px;
}
.container {
    margin: 40px auto;
}
input#menu-toggle {
    display: none !important;
}
#menu-toggle:checked ~ .sidebar {
    width: 70px;
}
#menu-toggle:checked ~ .sidebar .logo {
    display: none;
}
#menu-toggle:checked ~ .sidebar .sidebar-header {
    justify-content: center;
}
#menu-toggle:checked ~ .sidebar .menu-text {
    visibility: hidden;
    opacity: 0;
}


/* data table */

.head {
    padding: 10px;
}
.table-container {
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background-color: #0c0c0c;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(0deg, #000000 0%, #171717 90%);
}
table.data th {
    min-width: 600px;

    border-collapse: collapse;
    text-align: left;
    vertical-align: bottom;
    font-size: 0.875rem;

    font-weight: 500;
    color: #aaaaaa;

    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    padding-right: 12px;
    border-bottom: 1px solid #222222;
}
table.data tr:not(:has(th)) {
    cursor: pointer;
}
table.data {
    width: 100%;
    margin-bottom: 12px;
    border-collapse: collapse;
    table-layout: fixed;
}
table.data td {
    border-bottom: 1px solid #222222;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 12px;
    padding-right: 12px;
}
table.data td:first-child, 
table.data th:first-child {
    white-space: nowrap;
}
table.data td.selected {
    outline: 2px solid #ffffff !important;
    outline-offset: -2px;
    z-index: 2;
}
table.data td.editing {
    padding: 0 !important; 
}
.visible-when-editing {
    display: none;
}
table.data[data-editing="true"] .visible-when-editing {
    display: table-row;
}
table.data tr.editing td {
    padding: 0px;
}
table.data td.editing input {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    border: 2px solid #ffffff !important;
    outline: none;
    padding: 7px 11px; 
    font-family: inherit;
    font-size: 12px;
    background: #2a2a2a;
    color: #ffffff;
}
table.data tr:last-child td {
    border-bottom: none;
}
table.data tr:hover, table.data tr.editing {
    background-color: #333333;
}

table.data input[type="text"],
table.data input[type="email"],
table.data input[type="password"],
table.data select {
    padding: 4px;
    box-sizing: border-box;

    border: 1px solid #444444;
    border-radius: 6px;

    background-color: #2a2a2a;

    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
}

/* form table */

.form {
    width: 100%;
}
.form td {
    vertical-align: middle;
}
.error {
    padding: 20px !important;
    background-color: #730000;
    color: #fff;
}
.form td:first-child {
    text-align: right;
    white-space: nowrap;
    width: 120px;
    padding-right: 16px;    
}
.form td:last-child {
    padding-left: 0;
    padding-top: 6px;
    padding-bottom: 6px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form select,
.form textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;

    border: 1px solid #444444;
    border-radius: 6px;

    background-color: #2a2a2a;

    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;

    padding: 10px;
}
.form textarea {
    font-family: "Monaco", monospace;
    font-size: 10px;
    height: 80px;
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="password"]:focus,
.form select:focus,
.form textarea:focus {
    border-color: #888888;
}
.form input[type="text"]:disabled,
.form input[type="email"]:disabled,
.form input[type="password"]:disabled,
.form select:disabled,
.form textarea:disabled {
    border: 1px solid #444444;
    background: #000000;
    color: #444444;
}
.form input[type="text"].invalid,
.form input[type="email"].invalid,
.form input[type="password"].invalid,
.form select.invalid,
.form textarea.invalid {
    border: 1px solid #ff0000;
    background: #350000;
}
.form .hint {
    padding-left: 10px;
}
.hint {
    font-size: 0.8rem;
    color: #aaaaaa;    
}
.form input[type="submit"] {
    padding: 10px;
    margin: 10px 0 20px 0;
    box-sizing: border-box;

    border: 1px solid #444444;
    border-radius: 6px;

    background-color: #2a2a2a;

    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;

    padding: 10px;
}

.hidden-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    position: absolute;
    z-index: 1;

    padding: 16px;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    
    border-radius: 6px;
    border: 1px solid #333333;

    background-color: #000000;
    color: #aaaaaa;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}
.tooltiptext.right {
    bottom: 75%;
    left: 110%;
    margin-left: 0px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


ul.tabnav {
    text-align: left;
    margin: 1em 0 1em 0;
    border-bottom: 1px solid #333333;
    list-style-type: none;
    padding: 3px 10px 5px 10px;
}

ul.tabnav li {
    display: inline;
}

body.tab, li.tab a, body.tabactive, li.tabactive a {
    position: relative;
    top: -2px;
}
body.tabactive, li.tabactive a {
    position: relative;
    top: 2px;
}

ul.tabnav li.tabactive a {
    padding: 5px 20px;
    border: 1px solid #444444;
    background-color: #333333;
    color: #888888;
    margin-right: 0px;
    text-decoration: none;
    border-bottom: none;
}

ul.tabnav li a {
    padding: 5px 20px;
    border: 1px solid #444444;
    background-color: #333333;
    margin-right: 0px;
    text-decoration: none;
    border-bottom: none;
    color: #666666;
}

ul.tabnav a:hover {
    background: #444444;
}

.mobile-only {
    display: none !important;;
}

@media (max-width: 767px) {
    .mobile-only {
        display: inline-block;
    }
}


.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    font-size: 12px;
    color: #000000;
    background-color: #dddddd;
    border-radius: 9999px;
    white-space: nowrap;
}

.pill-color-0 { background-color: #0f766e; } /* Neon Teal */
.pill-color-1 { background-color: #b45309; } /* Burnt Amber */
.pill-color-2 { background-color: #a21caf; } /* Dark Magenta */
.pill-color-3 { background-color: #566dac; } /* Electric Blue */
.pill-color-4 { background-color: #15803d; } /* Emerald Green */
.pill-color-5 { background-color: #be123c; } /* Crimson Red */
.pill-color-6 { background-color: #6d28d9; } /* Royal Purple */
.pill-color-7 { background-color: #be185d; } /* Hot Pink */
.pill-color-8 { background-color: #334155; } /* Charcoal Gray */
.pill-color-9 { background-color: #4338ca; } /* Indigo Blue */

