:root {
    --colour-white: #ffffff;
    --colour-black: #000;
    --colour-purple: #160f26;
    --colour-blue: #4256e7;
    --colour-grey: #dfdedf;
    --colour-darkgrey: darkgrey;
    --colour-red: #dc3545;

    font-size: 1rem;
    font-family: 'SF Pro Display', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background-color: var(--colour-white);
    accent-color: var(--colour-blue);
    color: var(--colour-black);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
    height: 100%;
}

body {
    padding: 32px 32px 10px 32px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----------------------------------------------------------------------------*/
/* menu/*/

.container{
    flex: 1;
    padding-top: 30px;
    margin-bottom: 40px;
}
.header-bar {
    width: 100%;
    height: 60px;
    background: #f7f7f7;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
    gap: 30px;
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    max-width: 1000px;
    justify-content: left;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.header-menu {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: center;
}

.header-auth {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: right;
    list-style: none;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-menu ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    align-items: center;
}

.header-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.header-menu a:hover {
    background-color: #e2e2e2;
}

.divider-x {
    color: #242424;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
}


.login {
    background-color: var(--colour-white);
    padding: .5rem 1rem;
    color: var(--colour-black);
    border-radius: 4px;
    text-decoration: none;
    border: none;
    list-style: none;
}
.login:hover {
    background-color: var(--colour-blue);
    color: var(--colour-white);
    cursor: pointer;
}

.username {
    margin-right: .5rem;
}

.logout {
    display: inline-block;
}
.logout button {
    background-color: var(--colour-white);
    padding: .5rem 1rem;
    color: var(--colour-black);
    border-radius: 4px;
    border: none;
}
.logout button:hover {
    background-color: var(--colour-blue);
    color: var(--colour-white);
    cursor: pointer;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 15px 20px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    min-width: 0;
    flex-shrink: 0;
}

.copyright {
    color: #666;
    font-size: 14px;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex: 0 0 auto;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #333;
    text-decoration: underline;
}

.footer-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 10px;
}

.footer-link::after {
    display: none;
}

.footer-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
}

/* ----------------------------------------------------------------------------*/
/* common page items */

main {
    padding-top: 1rem;
    padding-left: 4rem;
    padding-right: 4rem;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    height: 35px;
    margin: .5rem 0 .5rem 0;
}
h2 a {
    color: inherit;
    text-decoration: none;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: .5rem 0 .5rem 0;
}
h3 a {
    color: inherit;
    text-decoration: none;
}

/* ----------------------------------------------------------------------------*/
/* modern tables */

.modern-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--colour-white);
    border: 1px solid var(--colour-grey);
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.modern-table thead {
    background-color: #f8f9fa;
}

.modern-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--colour-black);
    border-bottom: 2px solid var(--colour-grey);
    font-size: 0.95rem;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.modern-table tbody tr {
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f8f9fa;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

.modern-table a {
    color: var(--colour-blue);
    text-decoration: none;
    font-weight: 500;
}

.modern-table a:hover {
    text-decoration: underline;
    color: #3648d4;
}

/* Compact table variant */
.compact-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--colour-white);
    border: 1px solid var(--colour-grey);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.compact-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    background-color: #f8f9fa;
    color: var(--colour-black);
    border-bottom: 1px solid var(--colour-grey);
    font-size: 0.9rem;
}

.compact-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.9rem;
}

.compact-table tbody tr:hover {
    background-color: #f8f9fa;
}

.compact-table tbody tr:last-child td {
    border-bottom: none;
}

/* Legacy table styling for backwards compatibility */
table {
    border: 1px solid var(--colour-grey);
    min-width: 400px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--colour-white);
}

th {
    text-align: left;
    padding: 0.8rem 1rem;
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
}
td {
    padding: 0.8rem 1rem;
    border: none;
    border-top: 1px solid #f0f0f0;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

/* ----------------------------------------------------------------------------*/
/* plugins list */

.plugins-list {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--colour-white);
    border: 1px solid var(--colour-grey);
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.plugins-list thead {
    background-color: #f8f9fa;
}

.plugins-list th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--colour-black);
    border-bottom: 2px solid var(--colour-grey);
    font-size: 0.95rem;
}

.plugins-list .plugin-name {
    width: 70%;
    text-align: left;
}
.plugins-list .plugin-version {
    width: 30%;
    text-align: right;
}

.plugins-list tbody tr {
    border: none;
    transition: background-color 0.2s ease;
}

.plugins-list tbody tr:hover {
    background-color: #f8f9fa;
}

.plugins-list tbody tr:last-child td {
    border-bottom: none;
}

.plugins-list tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.plugins-list tbody .plugin-name {
    font-size: 1.3rem;
    font-weight: 500;
}

.plugins-list tbody .plugin-name a {
    color: var(--colour-blue);
    text-decoration: none;
    font-weight: 500;
}

.plugins-list tbody .plugin-name a:hover