* {
    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;
}

#header {
    visibility: hidden;
    text-align: center;
    margin: 0 0 10px 0;
}

#header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: -100px;
    margin-bottom: -110px;
}

#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;
    }
}

/* ==================== ACHIEVEMENTS CATALOG ==================== */

.ach-jumpbar {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #5a2800;
    border-radius: 3px;
    padding: 10px 15px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ach-jumpbar-label {
    font-weight: bold;
    font-size: 13px;
    margin-right: 8px;
    color: #5a2800;
}

.ach-jumpbar-link {
    padding: 6px 14px;
    background: linear-gradient(to bottom, #5a2800, #3a1800);
    color: #f4e4bc;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}

.ach-jumpbar-link:hover {
    background: linear-gradient(to bottom, #7a4800, #5a2800);
    color: #fff;
    text-decoration: none;
}

/* ==================== ACHIEVEMENT TABLE (shared) ==================== */

.ach-catalog-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.ach-catalog-row td {
    padding: 10px 8px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.2);
}

.ach-catalog-row td:first-child {
    border-radius: 4px 0 0 4px;
}

.ach-catalog-row td:last-child {
    border-radius: 0 4px 4px 0;
}

.ach-catalog-row:hover td {
    background: rgba(255, 255, 255, 0.45);
}

.ach-catalog-icon-cell {
    width: 80px;
    text-align: center;
}

.ach-catalog-icon {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 40, 0, 0.1);
    border: 1px solid rgba(90, 40, 0, 0.2);
}

.ach-catalog-icon img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
}

.ach-catalog-row.ach-cat-hunting .ach-catalog-icon     { background: rgba(192, 57, 43, 0.15); border-color: rgba(192, 57, 43, 0.35); }
.ach-catalog-row.ach-cat-boss .ach-catalog-icon        { background: rgba(142, 68, 173, 0.15); border-color: rgba(142, 68, 173, 0.35); }
.ach-catalog-row.ach-cat-leveling .ach-catalog-icon    { background: rgba(41, 128, 185, 0.15); border-color: rgba(41, 128, 185, 0.35); }
.ach-catalog-row.ach-cat-skills .ach-catalog-icon      { background: rgba(39, 174, 96, 0.15); border-color: rgba(39, 174, 96, 0.35); }
.ach-catalog-row.ach-cat-exploration .ach-catalog-icon  { background: rgba(22, 160, 133, 0.15); border-color: rgba(22, 160, 133, 0.35); }
.ach-catalog-row.ach-cat-fishing .ach-catalog-icon     { background: rgba(52, 152, 219, 0.15); border-color: rgba(52, 152, 219, 0.35); }
.ach-catalog-row.ach-cat-survival .ach-catalog-icon    { background: rgba(211, 84, 0, 0.15); border-color: rgba(211, 84, 0, 0.35); }
.ach-catalog-row.ach-cat-questing .ach-catalog-icon    { background: rgba(243, 156, 18, 0.15); border-color: rgba(243, 156, 18, 0.35); }
.ach-catalog-row.ach-cat-misc .ach-catalog-icon        { background: rgba(127, 140, 141, 0.15); border-color: rgba(127, 140, 141, 0.35); }

.ach-catalog-sep {
    width: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #5a2800;
}

.ach-catalog-info-cell {
    line-height: 1.5;
}

.ach-catalog-name {
    font-weight: bold;
    font-size: 13px;
    color: #5a2800;
}

.ach-catalog-desc {
    font-size: 11px;
    color: #7a5a30;
}

.ach-secret-badge {
    display: inline-block;
    background: #5a2800;
    color: #f4e4bc;
    font-size: 8px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 2px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== CHARACTER ACHIEVEMENTS ==================== */

/* Overview header */
.ach-overview {
    text-align: center;
    padding: 20px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #5a2800;
    border-radius: 4px;
}

.ach-overview-heading {
    font-size: 20px;
    font-weight: bold;
    color: #5a2800;
    margin-bottom: 8px;
}

.ach-overview-count {
    font-size: 14px;
    color: #5a2800;
    margin-bottom: 6px;
}

.ach-overview-pct {
    font-size: 36px;
    font-weight: bold;
    color: #5a2800;
    margin-bottom: 10px;
}

.ach-overview-bar {
    width: 60%;
    max-width: 400px;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 0 auto;
}

.ach-overview-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #27ae60, #2ecc71);
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* Filters */
.achievement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.ach-filter-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #5a2800;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    color: #5a2800;
    cursor: pointer;
    transition: all 0.2s;
}

.ach-filter-btn:hover,
.ach-filter-btn.active {
    background: linear-gradient(to bottom, #5a2800, #3a1800);
    color: #f4e4bc;
    text-decoration: none;
}

/* Row status (grayed out if not completed) */
.ach-catalog-row.completed td {
    opacity: 1;
}

.ach-catalog-row.in-progress td {
    opacity: 0.5;
}

.ach-catalog-row.not-started td {
    opacity: 0.35;
}

.ach-catalog-row.secret-locked td {
    opacity: 0.25;
}

.ach-catalog-row.in-progress:hover td,
.ach-catalog-row.not-started:hover td,
.ach-catalog-row.secret-locked:hover td {
    opacity: 0.7;
}

/* Status column */
.ach-status-cell {
    width: 140px;
    text-align: center;
    vertical-align: middle;
}

.ach-completed-label {
    display: block;
    color: #27ae60;
    font-weight: bold;
    font-size: 13px;
}

.ach-completed-date {
    display: block;
    color: #999;
    font-size: 9px;
    font-style: italic;
    margin-top: 2px;
}

.ach-row-progress {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.ach-row-progress-fill {
    height: 100%;
    background: #f39c12;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* ==================== CHARACTER PROFILE MINI ACHIEVEMENTS ==================== */

.ach-mini-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.ach-overall-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.ach-overall-fill {
    height: 100%;
    background: linear-gradient(to right, #27ae60, #2ecc71);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.ach-mini-recent {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #b4a074;
}

.ach-mini-recent-title {
    font-weight: bold;
    font-size: 11px;
    margin-bottom: 6px;
    color: #7a5a30;
}

.ach-mini-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 11px;
}

.ach-mini-item .ach-mini-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.ach-mini-item .ach-mini-name {
    font-weight: bold;
    flex: 1;
}

.ach-mini-item .ach-mini-date {
    font-size: 9px;
    color: #999;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 600px) {
    .ach-jumpbar {
        justify-content: center;
    }

    .ach-overview-bar {
        width: 90%;
    }
}