* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #0f3460;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    color: #e94560;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-summary {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 8px;
    border: 2px solid #e94560;
}

.progress-summary h2 {
    color: #e94560;
    margin-bottom: 10px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 2px solid #4ecca3;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(78, 204, 163, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #4ecca3;
    color: #0f3460;
}

.info-box {
    background: rgba(78, 204, 163, 0.1);
    border: 2px solid #4ecca3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box h3 {
    color: #4ecca3;
    margin-bottom: 10px;
}

.info-box ul {
    margin-left: 20px;
}

#category-content {
    min-height: 400px;
}

.weapon {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #e94560;
}

.weapon-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #e94560;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: -8px -8px 12px -8px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.weapon-name.weapon-complete {
    color: #4ecca3;
}

.weapon-name:hover {
    background: rgba(233, 69, 96, 0.2);
}

.weapon-name::after {
    content: '▼';
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.complete-btn {
    background: rgba(78, 204, 163, 0.2);
    color: #4ecca3;
    border: 2px solid #4ecca3;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
    font-weight: bold;
}

.complete-btn:hover {
    background: rgba(78, 204, 163, 0.4);
    transform: scale(1.05);
}

.complete-btn.all-complete {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    border-color: #e94560;
}

.complete-btn.all-complete:hover {
    background: rgba(233, 69, 96, 0.4);
}

.weapon.collapsed .weapon-name::after {
    transform: rotate(-90deg);
}

.weapon.collapsed .weapon-name {
    margin-bottom: -8px;
}

.weapon-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.weapon.collapsed .weapon-content {
    max-height: 0;
    opacity: 0;
}

.camo-section {
    margin-bottom: 10px;
}

.camo-section-title {
    font-weight: bold;
    color: #4ecca3;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.camo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.camo-item {
    display: flex;
    align-items: center;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.camo-item.has-camo-image {
    color: #fff;
}

.camo-item.has-camo-image label {
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.camo-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.camo-item label {
    cursor: pointer;
    flex: 1;
    user-select: none;
}

.camo-item.completed label {
    text-decoration: line-through;
    opacity: 0.6;
}

.special-desc {
    font-size: 0.9em;
    color: #aaa;
    margin-left: 28px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.reset-btn, .export-btn, .import-btn {
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.export-btn {
    background: #4ecca3;
}

.export-btn:hover {
    background: #3db892;
    transform: translateY(-2px);
}

.import-btn {
    background: #4a90e2;
}

.import-btn:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
}

.reset-btn {
    background: #e94560;
}

.reset-btn:hover {
    background: #d63651;
    transform: translateY(-2px);
}

#import-file {
    display: none;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #4ecca3;
    font-size: 1.2em;
}