.items-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-header h1 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.btn-manage-items {
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-manage-items:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 주요 통계 섹션 */
.main-stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-stats-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: var(--text-primary);
    text-align: center;
}

.main-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.main-stat-box {
    text-align: center;
    padding: 20px;
    background: #5a67d8;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-stat-value {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.main-stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* 카테고리별 통계 섹션 */
.category-stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-stats-section h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-primary);
    text-align: center;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.filter-bar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.controls-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-box select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    background: white;
}

/* 기본: 필터가 넓게 보이도록 설정 */
.filter-box select {
    min-width: 360px;
}

/* 스킨 선택 시 필터가 쪼개진 레이아웃 */
.controls-section.split-filters .filter-box select {
    min-width: 180px;
}

#jobFilterBox select {
    min-width: 180px;
    min-width: 180px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.item-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.item-image-container {
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.item-placeholder {
    font-size: 24px;
    color: #ccc;
}

.item-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-category {
    font-size: 12px;
    color: var(--text-secondary);
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state-sub {
    font-size: 14px;
    opacity: 0.7;
}

/* 다크모드 */
body.dark-mode .stat-item,
body.dark-mode .filter-bar,
body.dark-mode .item-card {
    background: rgba(30, 30, 30, 0.95);
    color: var(--text-primary);
}

body.dark-mode .filter-select {
    background: #2a2a2a;
    border-color: #444;
    color: var(--text-primary);
}

body.dark-mode .item-category {
    background: #444;
    color: var(--text-primary);
}