/* INVENTORY PAGE - Leather folder/wallet skeuomorphic */

/* Main content = wallet/folder: brown leather with top tab */
.inventory-page .main-content {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding-top: 10px;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.06) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.06) 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.04) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.04) 6px), linear-gradient(135deg, #6d5a45 0%, #7a6349 25%, #8b7355 50%, #7a6349 75%, #6d5a45 100%);
    border-radius: 0 0 20px 20px;
    border: 3px solid #5c4033;
    border-top: none;
    box-shadow: 0 18px 40px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.1), inset 0 -2px 0 rgba(0,0,0,0.25);
    padding: 28px 24px 32px;
}

/* Folder tab at top */
.inventory-page .main-content::before {
    content: 'My Inventory';
    position: absolute;
    top: -42px;
    left: 24px;
    padding: 10px 24px 12px;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.05) 6px), linear-gradient(135deg, #8b7355 0%, #a08060 50%, #8b7355 100%);
    border: 3px solid #5c4033;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d2520;
    text-shadow: 0 1px 2px rgba(255,255,255,0.35);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.2), 0 -2px 8px rgba(0,0,0,0.2);
}

/* Inner pocket - tan leather area */
.inventory-page .inventory-stats,
.inventory-page .inventory-tabs,
.inventory-page .inventory-content {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.03) 6px), linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border-radius: 16px;
    padding: 20px 24px;
    border: 2px solid #8b7355;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12);
    margin-bottom: 20px;
}

.inventory-page .inventory-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2d2520;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* Fix for overlapping elements */
.main-content {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding-top: 10px;
}

/* Ensure container has proper spacing */
.container {
    position: relative;
    z-index: 1;
}

/* Fix any potential layout issues */
.layout-wrapper {
    position: relative;
    z-index: 1;
}

/* Ensure proper spacing for all elements */
.inventory-title,
.inventory-stats,
.inventory-tabs,
.inventory-content {
    position: relative;
    z-index: 1;
}

/* Inventory icon styling */
.inventory-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 2rem;
    vertical-align: middle;
    line-height: 1;
}

/* Inventory filters */
.inventory-filters {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    align-items: center;
    flex-wrap: wrap;
}

.inventory-filters input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000000;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 200px;
    font-size: 0.9rem;
}

.inventory-filters input::placeholder {
    color: #888;
}

.inventory-filters select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 150px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .inventory-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .inventory-filters input,
    .inventory-filters select {
        min-width: auto;
        width: 100%;
    }
}

/* Loading states */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border-radius: 15px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.9);
    border: 1px solid #e5e7eb;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

/* Card layouts */
.stickers-grid,
.projects-grid,
.themes-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.sticker-card,
.project-card,
.theme-card,
.achievement-card {
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(0, 0, 0, 0.08);
    border: 2px solid #8b7355;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticker-card:hover,
.project-card:hover,
.theme-card:hover,
.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.sticker-icon,
.project-thumbnail,
.theme-preview,
.achievement-icon {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-icon img,
.project-thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
}

.theme-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.achievement-icon {
    font-size: 3rem;
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(50%);
}

.achievement-card.unlocked {
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

/* Page Title – bright leather */
.inventory-title {
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    color: #2d2520;
    padding: 20px 30px;
    border-radius: 15px;
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(0, 0, 0, 0.08);
    border: 2px solid #8b7355;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.inventory-title::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
    border-radius: 15px 15px 0 0;
}

/* Inventory Stats */
.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border: 2px solid #d4d4d4;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.12),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
    border-radius: 12px 12px 0 0;
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 2px solid #d4d4d4;
    border-radius: 12px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.1);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Inventory Tabs */
.inventory-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.inventory-tab {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.inventory-tab::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4), rgba(255,255,255,0.8));
    border-radius: 8px 8px 0 0;
}

.inventory-tab:hover {
    background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    transform: translateY(1px);
}

.inventory-tab:active {
    background: linear-gradient(145deg, #d9d9d9, #f0f0f0);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 -2px 4px rgba(255,255,255,0.8);
    transform: translateY(2px);
}

.inventory-tab.active {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #333333;
    border-color: #888888;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-size: 1rem;
}

/* Content Areas - Skeuomorphic */
.inventory-content {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border: 2px solid #d4d4d4;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.12),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.08);
    position: relative;
    margin-top: 20px;
    z-index: 1;
}

.inventory-content::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
    border-radius: 16px 16px 0 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.content-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #374151;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.content-actions {
    display: flex;
    gap: 10px;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.action-btn {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #333333;
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
}

.action-btn:hover {
    background: linear-gradient(145deg, #f0f0f0, #d9d9d9);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    transform: translateY(1px);
}

.action-btn:active,
.action-btn.active {
    background: linear-gradient(145deg, #d9d9d9, #f0f0f0);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 -2px 4px rgba(255,255,255,0.8);
    transform: translateY(2px);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
    border-radius: 8px 8px 0 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.dropdown-item:hover {
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    color: #1e293b;
}

.dropdown-item:active {
    background: linear-gradient(145deg, #e6e6e6, #f0f0f0);
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

/* Grids */
.stickers-grid,
.projects-grid,
.themes-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Sticker Cards - Skeuomorphic */
.sticker-card {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border: 2px solid #d4d4d4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.12),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.sticker-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    border-color: #888888;
}

.sticker-card::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5), rgba(255,255,255,0.9));
    border-radius: 12px 12px 0 0;
}

.sticker-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.sticker-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.sticker-quantity {
    font-size: 0.75rem;
    color: #6b7280;
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

/* Project Cards – bright leather */
.project-card {
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border: 2px solid #8b7355;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.project-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d2520;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.project-category {
    font-size: 0.9rem;
    color: #6b7280;
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

/* Theme Cards - Skeuomorphic */
.theme-card {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border: 2px solid #d4d4d4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.12),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
}

.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.theme-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.theme-status {
    font-size: 0.9rem;
    color: #6b7280;
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

/* Achievement Cards - Skeuomorphic */
.achievement-card {
    background: linear-gradient(145deg, #f9fafb, #f3f4f6);
    border: 2px solid #d4d4d4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 12px rgba(0,0,0,0.12),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
}

.achievement-card.unlocked {
    border-color: #10b981;
    background: linear-gradient(145deg, #d1fae5, #a7f3d0);
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(50%);
}

.achievement-icon {
    font-size: 3rem;
    min-width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb, #d1d5db);
    border-radius: 16px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    border: 3px solid #c8cacd;
    position: relative;
    font-weight: 700;
    color: #1a1d29;
    text-shadow: 
        0 2px 3px rgba(255,255,255,0.9),
        0 1px 1px rgba(0,0,0,0.2);
    margin: 0 auto 15px auto;
}

.achievement-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
    border-radius: 13px 13px 0 0;
}

/* Skeuomorphic Icon Classes - Using Material Icons */
.achievement-icon[class*="icon-"] {
    font-family: 'Material Icons', sans-serif;
    font-size: 0 !important; /* Hide any text content */
    line-height: 0;
    text-indent: -9999px; /* Additional hiding for any text */
    overflow: hidden;
}

.icon-project::after { content: 'folder'; }
.icon-follower::after { content: 'people'; }
.icon-following::after { content: 'link'; }
.icon-comment::after { content: 'comment'; }
.icon-like::after { content: 'favorite'; }
.icon-view::after { content: 'visibility'; }
.icon-sticker::after { content: 'label'; }
.icon-calendar::after { content: 'calendar_today'; }
.icon-aero-earn::after { content: 'monetization_on'; }
.icon-aero-spend::after { content: 'shopping_cart'; }
.icon-xp::after { content: 'star'; }
.icon-message-send::after { content: 'send'; }
.icon-message-receive::after { content: 'inbox'; }
.icon-game::after { content: 'sports_esports'; }
.icon-art::after { content: 'palette'; }
.icon-music::after { content: 'music_note'; }
.icon-article::after { content: 'article'; }
.icon-report::after { content: 'report'; }
.icon-shopping::after { content: 'shopping_bag'; }
.icon-theme::after { content: 'color_lens'; }
.icon-boost::after { content: 'bolt'; }
.icon-eye::after { content: 'remove_red_eye'; }
.icon-globe::after { content: 'public'; }
.icon-star::after { content: 'star'; }
.icon-fire::after { content: 'local_fire_department'; }
.icon-thumbs-up::after { content: 'thumb_up'; }
.icon-viral::after { content: 'trending_up'; }
.icon-default::after { content: 'emoji_events'; }

.achievement-icon[class*="icon-"]::after {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    text-shadow: 
        0 2px 3px rgba(255,255,255,0.9),
        0 1px 1px rgba(0,0,0,0.2);
    color: inherit;
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(145deg, #fbbf24, #f59e0b, #d97706);
    box-shadow: 
        0 6px 12px rgba(251, 191, 36, 0.5),
        inset 0 2px 4px rgba(255,255,255,0.5),
        inset 0 -2px 4px rgba(0,0,0,0.25);
    border-color: #d97706;
}

.achievement-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.achievement-progress {
    font-size: 0.9rem;
    color: #6b7280;
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 2px rgba(255,255,255,0.8);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6c5ce7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #495057;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .inventory-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .inventory-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .stickers-grid,
    .projects-grid,
    .themes-grid,
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}