@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0b1220;
    --surface: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --success: #22c55e;
    --warn: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --border: #e2e8f0;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --success: #16a34a;
    --warn: #d97706;
    --error: #dc2626;
}

body {
    background-color: var(--bg);
    color: var(--text);
    text-align: center;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.header {
    padding: 20px;
    background-color: transparent;
    color: var(--text);
}

.logo {
    max-width: 325px;
    margin-bottom: 1px;
}
.status-indicator {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
.proxy-status {
    background-color: green;
}
.no-proxy-status {
    background-color: red;
}
.message {
    display: inline-block;
    padding: 20px;
    background-color: var(--surface);
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--border);
    margin-bottom: 20px;
}
.status-emphasis {
    font-size: 1.2em;
    font-weight: 600;
}
footer {
    background-color: var(--surface);
    color: var(--text);
    padding: 10px 0;
    position: relative;
    width: 100%;
    font-weight: bold; 
}
footer a {
    color: var(--text); /* Keep the links visible */
    text-decoration: none; 
    margin-left: 10px;
    margin-right: 10px;
}
footer a:hover {
    text-decoration: underline; /* Optional: adds underline on hover */
}
.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}
.status-light {
    height: 60px;
    margin-right: 10px;
}
.connected-text, .location-text {
    display: inline-block;
    margin-bottom: 5px; /* Adjust this value as needed */
}



.status-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border);
}

.status-table thead {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .status-table thead {
    background: var(--surface);
}

[data-theme="light"] .status-table th {
    color: var(--text);
}

.status-table th {
    color: var(--text);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-table th:nth-child(2),
.status-table th:nth-child(3) {
    text-align: center;
}

.status-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.status-table td:first-child {
    font-weight: 500;
    color: var(--text);
}

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

.status-table tbody tr {
    transition: all 0.2s ease;
}

.status-table tbody tr:hover {
    background-color: rgba(255,255,255,0.03);
}
.status-icon {
    height: 20px;
    vertical-align: middle;
}
.last-checked {
    margin-top: 20px;
}
.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.glowing-green {
    background-color: var(--success);
}

.glowing-red {
    background-color: var(--error);
}

.glowing-yellow {
    background-color: var(--warn);
}
.dot:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    background-color: var(--surface);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    z-index: 1;
    margin-bottom: 5px;
}
.status-text {
    cursor: pointer;
}

.dot:hover::after, .status-text:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    background-color: var(--surface);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    z-index: 1;
    margin-bottom: 5px;
}
.status-container:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    background-color: var(--surface);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    z-index: 1;
    margin-bottom: 5px;
}
.reseed-footer {
    background-color: var(--surface);
    color: var(--text);
    padding: 10px 0;
    position: relative; /* Adjust as needed */
    bottom: 0;
    width: 100%;
    font-weight: bold;
    text-align: center; /* Center the footer content */
}

.reseed-footer a {
    color: var(--text);
    text-decoration: none;
    margin-left: 10px;
    margin-right: 10px;
}

/* Download link styling */
.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--accent);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.85em;
    border: 1px solid rgba(79, 70, 229, 0.25);
}

.download-link:hover {
    background: var(--accent);
    color: white;
}

.download-link:hover svg {
    stroke: white;
}

.download-icon {
    width: 20px;
    height: 20px;
}

.no-download {
    color: var(--muted);
    font-size: 0.85em;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    min-height: 32px;
}

.reseed-footer a:hover {
    text-decoration: underline;
}


/* Banner */

header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 10px 4px;
    background: var(--surface);
    border-bottom: 1.3px solid var(--border);
    animation: down .5s ease .8s both;
}

header a {
    font-weight: 600 !important;
    color: var(--text); /* Adjust the text color as needed */
    text-decoration: none;
}
header button.theme-toggle {
    font-weight: 600 !important;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 10px;
    cursor: pointer;
}
header button.theme-toggle:hover {
    background: rgba(255,255,255,0.06);
}
header button.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
header button.theme-toggle svg {
    width: 18px;
    height: 18px;
}
header button.theme-toggle .icon-bulb-on { display: none; }
[data-theme="light"] header button.theme-toggle .icon-bulb-on { display: inline-block; }
[data-theme="light"] header button.theme-toggle .icon-bulb-off { display: none; }

header ul {
    display: flex;
    justify-content: space-around;
    justify-content: right;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
}

header li {
    line-height: 1.6;
    margin: 0 10px;
}

/* Ping Site */

.status-online {
    color: var(--success);
    font-weight: bold;
}
.status-offline {
    color: var(--error);
    font-weight: bold;
}
#showAdvanced {
    cursor: pointer;
    color: var(--accent);
    text-decoration: underline;
}
#showAdvanced:hover {
    text-decoration: none;
}

/* Donate */

#donate_options {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}
#donate_options th, #donate_options td {
    text-align: center !important;
}
#donate_options thead th {
    padding-bottom: 4px; /* Reduced from 8px to make it closer */
}
#donate_options tbody td {
    font-family: DejaVu Sans Mono, monospace;
    font-size: 65%;
    word-break: break-all;
    text-align:justify;
    user-select: all;
    color: var(--text);
    width: 25%; /* Adjusted for equal spacing */
    line-height: 1.05;
    padding: 8px 10px; /* Reduced horizontal padding */
    border-bottom: 1px solid rgba(255,255,255,.2);
}
#donate_options tbody span {
    display: inline-block;
    border-radius: 4px;
    background: var(--border);
    padding: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 180px;	
}
#donate_options tbody span:hover {
    overflow: auto;
    text-overflow: clip;
}
#donate_options span::selection {
    background: #ff0;
    color: #000;
}




.donation-section {
    margin: 20px 0px; 
    padding: 20px;
    background-color: var(--surface);
    border-radius: 8px; 
}

.donation-title {
    color: var(--text);
    text-align: center;
    margin-bottom: 16px;
}

.donation-text {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px; 
}

.donation-text strong, .bold-link {
    color: var(--text);
    font-weight: bold;
    text-decoration: none; 
}

.bold-link:hover {
    text-decoration: underline; 
}

.donation-text a, .donation-text strong {
    color: var(--text);
    font-weight: bold;
    text-decoration: none; 
}
.donation-text a:hover {
    text-decoration: underline;
}

.donation-message {
    display: block; 
    padding: 20px;
    background-color: var(--surface);
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--border);
    margin: 40px auto; 
    max-width: 960px; 
}

.donation-section {
    margin: 20px 0; 
    padding: 20px;
    background-color: var(--surface);
    border-radius: 8px;
}

.donation-message .donation-text, .donation-message .donation-text a, .donation-message .donation-text strong {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none; 
}

.donation-message .donation-text a:hover {
    text-decoration: underline; 
}

/* Home page CSS status dots (proxy indicator) */
.status-dot {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}
.status--up {
    background-color: var(--success);
}
.status--down {
    background-color: var(--error);
}
