/* Reset and base styles to match screenshot exactly */
* {
    margin: 80;
    padding: 0;
    box-sizing: border-box;
}

/* Body background - solid blue gradient like in screenshot */
body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 11px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%) !important;
    background-attachment: fixed !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Navigation buttons - exactly like in screenshot */
.cell-nav {
    height: 28px;
    min-width: 90px;
    padding: 0 12px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 11px;
    font-weight: normal;
    color: #ffffff;
    text-align: center;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: table-cell;
    vertical-align: middle;
    line-height: 26px;
    margin: 0 1px;
}

.cell-nav:hover {
    background: #3a3a3a;
    color: #ffffff;
}

/* Active navigation button - blue highlight like in screenshot */
.cell-nav-active {
    background: #0d89bc !important;
    color: #ffffff !important;
    font-weight: normal !important;
    border: 1px solid #0d89bc !important;
}

.cell-nav-active:hover {
    background: #0d89bc !important;
    color: #ffffff !important;
}

/* Navigation container */
table[cellpadding="0"][cellspacing="1"] {
    margin: 15px auto 0 auto;
    border-spacing: 2px;
    background: transparent;
}

/* Tab content */
.tab-content {
    display: table !important;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin-top: 5px;
    padding: 20px;
}

.hide-table {
    display: none !important;
}

/* Sidebar buttons - matching the dark theme */
.cell-plugin {
    height: 28px;
    width: 130px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 3px;
    line-height: 26px;
    margin-bottom: 2px;
}

.button-auto {
    height: 28px;
    width: 130px;
    margin-bottom: 2px;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 11px;
    color: #ffffff;
    text-align: center;
    border: 1px solid #444;
    background: #2c2c2c;
    border-radius: 3px;
    cursor: pointer;
    line-height: 26px;
}

.button-auto:hover {
    background: #3a3a3a;
}

/* Plugin section headers */
.plugincolhd {
    background: #2c2c2c;
    color: #ffffff;
    padding: 5px;
    width: 130px;
    border-radius: 3px;
    margin: 2px auto;
    text-align: center;
    font-size: 11px;
    border: 1px solid #444;
}

.plugincollst {
    color: #ccc;
    font-weight: normal;
    font-size: 11px;
}

/* News section */
.news {
    background: #0d89bc;
    border-radius: 5px 5px 0 0;
    padding: 8px 15px;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.news_tab {
    background: rgba(13, 137, 188, 0.8);
    border-radius: 0 0 5px 5px;
    padding: 15px;
    color: #ffffff;
    height: 200px;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.4;
}

/* Main layout container */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Form elements */
input, select, textarea {
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 11px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 4px;
    color: #000;
}

/* Links */
a {
    color: #55aaff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Table styling */
tr {
    font-family: "Segoe UI", Tahoma;
    font-size: 11px;
    line-height: 14.5px;
    color: #FFFFFF;
}

/* Remove all modern CSS that conflicts */
.nav-tabs,
.nav-tab,
.site-header {
    text-align: center;
    padding: 20px 0;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}
.site-logo,
.main-content,
.sidebar,
.content-area,
.container {
    all: unset;
}

/* Keep essential utility classes */
.hide-table { display: none !important; }
.title { font-size: 18px; font-weight: bold; }
.warning { color: #FF6600; }
.htmlerror { color: #fffa1e; background-color: #FF0000; padding: 3px; }
.htmltrue { color: #000; background-color: #090; padding: 3px; }

/* Center sinfo section */
.sinfo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
}

#server_stats {
    text-align: center;
    margin: 20px auto;
    width: 100%;
}

.ss-cpu-table {
    margin: 0 auto;
    text-align: center;
    border-collapse: collapse;
    width: auto;
    display: inline-table;
}

.ss-td-style,
.cpu-td {
    text-align: center;
    vertical-align: top;
    padding: 15px 25px;
    width: 50%;
}

.ss-span-style,
.cpu-span {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    text-align: center;
}

.cpu-clock-st-text,
.cpu-clock-st-time {
    text-align: center;
}

#diskpercent {
    display: block;
    margin: 8px auto;
}

#inuse, #inusepercent, #freespace, #diskspace, #server, #clock {
    text-align: center;
}

/* Progress bar styles */
.progressouter {
    background: #2c2c2c;
    border: 1px solid #444;
    border-radius: 3px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

/* Fix progress bar positioning */
.progressdown, .progressup {
    background: linear-gradient(90deg, #0d89bc 0%, #55aaff 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Download completion styles */
.download-complete {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.download-complete h3 {
    color: #00ff00;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.download-complete p {
    color: #ffffff;
    margin: 10px 0;
}

.download-complete a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-complete a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-download {
    background: #0d89bc;
    color: white;
}

.btn-download:hover {
    background: #0a6b94;
}

.btn-main {
    background: #555;
    color: white;
}

.btn-main:hover {
    background: #333;
}
.transloadui, .uploadui {
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
}

.transloadui td, .uploadui td {
    padding: 5px;
    color: #ffffff;
    font-weight: bold;
}

#progressblock {
    display: block;
    margin: 10px auto;
}

#received, #percent, #speed {
    font-size: 11px;
    color: #ffffff;
}