:root {
    --primary-color: #2c2c2c;
    --secondary-color: #3a3a3a;
    --accent-color: #4a90e2;
    --text-color: #ffffff;
    --completed-color: #4caf50;
    --border-color: #444444;
    --footer-color: #1a1a1a;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    margin-top: 15px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: var(--secondary-color);
}

.main-nav a.active {
    background-color: var(--accent-color);
    color: white;
}

.progress-container {
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.progress-text {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.progress-bar {
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.search-container {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#search-input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 1rem;
}

#search-input::placeholder {
    color: #888;
}

.clear-button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.clear-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background-color: var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.card-progress {
    margin-bottom: 20px;
}

.category-button {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
    margin-top: auto;
}

.category-button:hover {
    background-color: #3a7bc8;
}

.bosses-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.boss-category {
    background-color: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.category-header {
    background-color: var(--secondary-color);
    padding: 15px;
    cursor: pointer;
}

.category-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.category-header h3 {
    --arrow: "▼";
}

.category-header h3:before {
    content: var(--arrow);
    margin-right: 10px;
    font-size: 0.8rem;
}

.boss-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boss-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.boss-item:hover {
    background-color: #444444;
}

.boss-checkbox {
    margin-right: 15px;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.boss-checkbox:checked {
    background-color: var(--completed-color);
    border-color: var(--completed-color);
}

.boss-checkbox:checked:after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.boss-name {
    flex-grow: 1;
    font-size: 1rem;
}

.boss-item.completed .boss-name {
    text-decoration: line-through;
    opacity: 0.7;
}

.boss-location {
    font-size: 0.8rem;
    color: #aaa;
    margin-left: auto;
}

.hidden {
    display: none;
}

footer {
    background-color: var(--footer-color);
    padding: 15px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .categories-container {
        grid-template-columns: 1fr;
    }
    
    .boss-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .boss-location {
        margin-left: 35px;
        margin-top: 5px;
    }
}

#completed-count, #total-completed-count {
    margin-left: 10px;
}