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

body {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #5a2800;
    background: url('../images/background.jpg') repeat fixed;
    line-height: 1.5;
}

a {
    color: #5a2800;
    text-decoration: none;
}

a:hover {
    color: #804000;
    text-decoration: underline;
}

#wrapper {
    width: 980px;
    margin: 0 auto;
    padding: 0 10px 10px 10px;  /* No top padding, keeps sides and bottom */
}
#header {
    text-align: center;
    margin: 0 0 10px 0;  /* No top margin */
}

#header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: -100px;  /* Pull image up - adjust this number */
    margin-bottom: -110px;  /* Pull up content below - adjust as needed */
}
#statusbar {
    background: linear-gradient(to bottom, #d4c0a1, #c4a574);
    border: 1px solid #5a2800;
    border-radius: 5px;
    padding: 8px 15px;
    margin-bottom: 10px;
    text-align: center;
}

.status-item {
    margin: 0 20px;
}

.status-item .online {
    color: #00aa00;
    font-weight: bold;
}

.status-item .offline {
    color: #aa0000;
    font-weight: bold;
}

#main-container {
    display: flex;
    gap: 10px;
}

#navbar {
    width: 180px;
    flex-shrink: 0;
}

.nav-section {
    background: linear-gradient(to bottom, #d4c0a1, #c4a574);
    border: 1px solid #5a2800;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.nav-header {
    background: linear-gradient(to bottom, #5a2800, #3a1800);
    color: #f4e4bc;
    font-weight: bold;
    padding: 8px 10px;
    text-transform: uppercase;
    font-size: 11px;
}

.nav-list {
    list-style: none;
    padding: 5px 0;
}

.nav-list li {
    border-bottom: 1px solid #b4a074;
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list li a {
    display: block;
    padding: 6px 15px;
    transition: background 0.2s;
}

.nav-list li a:hover {
    background: rgba(90, 40, 0, 0.1);
    text-decoration: none;
}

#content {
    flex: 1;
    background: linear-gradient(to bottom, #d4c0a1, #c4a574);
    border: 1px solid #5a2800;
    border-radius: 5px;
    padding: 15px;
}

.page-title {
    background: linear-gradient(to bottom, #5a2800, #3a1800);
    color: #f4e4bc;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    margin: -15px -15px 15px -15px;
    border-radius: 4px 4px 0 0;
}

.box {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #5a2800;
    border-radius: 3px;
    margin-bottom: 15px;
}

.box-header {
    background: linear-gradient(to bottom, #8b6914, #6b4914);
    color: #f4e4bc;
    font-weight: bold;
    padding: 6px 10px;
    font-size: 11px;
}

.box-content {
    padding: 10px;
}

.news-post {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid #5a2800;
    border-radius: 3px;
    margin-bottom: 15px;
}

.news-header {
    background: linear-gradient(to bottom, #8b6914, #6b4914);
    color: #f4e4bc;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-title {
    font-weight: bold;
    font-size: 13px;
}

.news-date {
    font-size: 10px;
    opacity: 0.8;
}

.news-content {
    padding: 12px;
    line-height: 1.6;
}

.news-author {
    padding: 5px 12px;
    font-size: 10px;
    color: #666;
    border-top: 1px solid #b4a074;
    text-align: right;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #5a2800;
    border-radius: 3px;
    background: #f4e4bc;
    font-family: inherit;
    font-size: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #804000;
    box-shadow: 0 0 3px rgba(90, 40, 0, 0.3);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(to bottom, #5a2800, #3a1800);
    color: #f4e4bc;
    border: 1px solid #2a0800;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn:hover {
    background: linear-gradient(to bottom, #7a4800, #5a2800);
    color: #fff;
    text-decoration: none;
}

.btn-small {
    padding: 4px 10px;
    font-size: 10px;
}

.btn-danger {
    background: linear-gradient(to bottom, #aa0000, #880000);
    border-color: #660000;
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #cc0000, #aa0000);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.3);
}

.table th {
    background: linear-gradient(to bottom, #8b6914, #6b4914);
    color: #f4e4bc;
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: bold;
}

.table td {
    padding: 8px 10px;
    border-bottom: 1px solid #b4a074;
}

.table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.2);
}

.table tr:hover {
    background: rgba(90, 40, 0, 0.1);
}

.table .rank {
    width: 50px;
    text-align: center;
    font-weight: bold;
}

.message {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.message-success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.message-error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.message-info {
    background: #d1ecf1;
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.character-info {
    display: flex;
    gap: 20px;
}

.character-outfit {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    border: 1px solid #5a2800;
    border-radius: 3px;
}

.character-details {
    flex: 1;
}

.character-details td {
    padding: 4px 0;
}

.character-details td:first-child {
    font-weight: bold;
    width: 120px;
}

.character-list {
    margin-top: 15px;
}

.character-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #b4a074;
}

.character-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.2);
}

.character-row:last-child {
    border-bottom: none;
}

.character-row .name {
    font-weight: bold;
}

.character-row .info {
    font-size: 11px;
    color: #666;
}

.character-row .actions {
    display: flex;
    gap: 5px;
}

.death-entry {
    padding: 5px 0;
    border-bottom: 1px solid #b4a074;
}

.death-entry:last-child {
    border-bottom: none;
}

#footer {
    background: linear-gradient(to bottom, #5a2800, #3a1800);
    color: #d4c0a1;
    text-align: center;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 11px;
}

#footer p {
    margin: 3px 0;
}

@media (max-width: 1000px) {
    #wrapper {
        width: 100%;
        padding: 5px;
    }
    
    #main-container {
        flex-direction: column;
    }
    
    #navbar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-section {
        flex: 1;
        min-width: 150px;
        margin-bottom: 0;
    }
}