* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    background-color: #e9ecef;
    color: #333333;
    line-height: 1.4;
}

a {
    color: #1a5a96;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#header {
    background: linear-gradient(to bottom, #2c3e50 0%, #1a252f 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-bottom: 3px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

#header .logo span {
    color: #3498db;
}

#header .user-info {
    font-size: 11px;
    color: #cccccc;
}

#header .user-info a {
    color: #ffffff;
    font-weight: bold;
    margin-left: 8px;
}

#navbar {
    background-color: #dcdcdc;
    border-bottom: 1px solid #b5b5b5;
    padding: 0 20px;
}

#navbar ul {
    list-style: none;
    display: flex;
}

#navbar ul li a {
    display: block;
    padding: 8px 16px;
    color: #333333;
    font-weight: bold;
    border-right: 1px solid #c4c4c4;
    background: linear-gradient(to bottom, #f4f4f4 0%, #dcdcdc 100%);
}

#navbar ul li a:hover,
#navbar ul li a.active {
    background: #ffffff;
    color: #1a5a96;
    text-decoration: none;
    border-bottom: 2px solid #3498db;
    margin-bottom: -1px;
}

#wrapper {
    display: flex;
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 15px;
    gap: 15px;
}

#sidebar {
    width: 220px;
    flex-shrink: 0;
}

.box {
    background: #ffffff;
    border: 1px solid #cccccc;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.box-header {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e2e2e2 100%);
    border-bottom: 1px solid #cccccc;
    padding: 7px 10px;
    font-weight: bold;
    color: #222222;
    font-size: 12px;
}

.box-content {
    padding: 10px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px dotted #e0e0e0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu li a {
    display: block;
    padding: 6px 4px;
    color: #333333;
}

.sidebar-menu li a:hover {
    background-color: #f0f7fd;
    color: #1a5a96;
    text-decoration: none;
    padding-left: 8px;
}

#content {
    flex-grow: 1;
}

.alert-info {
    background-color: #e8f4fd;
    border: 1px solid #b6d9f7;
    color: #1a5a96;
    padding: 8px 12px;
    margin-bottom: 15px;
}

table.sp-table {
    width: 100%;
    border-collapse: collapse;
}

table.sp-table th {
    background-color: #f0f0f0;
    border-bottom: 2px solid #cccccc;
    padding: 7px 8px;
    text-align: left;
    font-weight: bold;
    color: #444444;
}

table.sp-table td {
    padding: 8px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
}

table.sp-table tr:hover td {
    background-color: #f9fbfd;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    text-transform: uppercase;
}

.badge-online {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #c3e6cb;
}

.badge-offline {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    font-family: Tahoma, sans-serif;
    border: 1px solid #adadad;
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    color: #333333;
    cursor: pointer;
    border-radius: 2px;
}

.btn:hover {
    background: #e6e6e6;
    text-decoration: none;
}

.btn-green {
    background: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
    border-color: #398439;
    color: #ffffff;
}

.btn-green:hover {
    background: #449d44;
}

.btn-red {
    background: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
    border-color: #ac2925;
    color: #ffffff;
}

.btn-red:hover {
    background: #c9302c;
}

.btn-blue {
    background: linear-gradient(to bottom, #337ab7 0%, #286090 100%);
    border-color: #204d74;
    color: #ffffff;
}

.btn-blue:hover {
    background: #286090;
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row {
    margin-bottom: 8px;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 11px;
}

.form-row input[type="text"],
.form-row select {
    width: 100%;
    padding: 5px;
    border: 1px solid #bbbbbb;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

.console-output {
    background-color: #111111;
    color: #00ff00;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    height: 180px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #333333;
    margin-bottom: 8px;
}

.console-input-bar {
    display: flex;
    gap: 5px;
}

.console-input-bar input {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #bbbbbb;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

#footer {
    text-align: center;
    padding: 15px;
    font-size: 11px;
    color: #777777;
    border-top: 1px solid #cccccc;
    margin-top: 20px;
}
