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

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #1e293b;
    --background-color: #f1f5f9;
    --card-background: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --success-color: #16a34a;
    --success-hover: #15803d;
    --error-color: #dc2626;
    --error-hover: #b91c1c;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --header-bg: #1e293b;
    --header-text: #f8fafc;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-primary);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.storage-stats {
    display: flex;
    align-items: center;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    min-width: 140px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--header-text);
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.25rem;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.equipment-section {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border: none;
    aspect-ratio: 1 / 1;
}

.equipment-section:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.equipment-section:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(241, 245, 249, 0.5);
}

.section-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
}

.equipment-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
}

/* Customize scrollbar for webkit browsers */
.equipment-list::-webkit-scrollbar {
    width: 6px;
}

.equipment-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 0.5rem;
}

.equipment-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.equipment-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    margin-bottom: 0.5rem;
    background-color: var(--card-background);
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.equipment-item:hover {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.equipment-item:last-child {
    margin-bottom: 0;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.item-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    background-color: rgba(241, 245, 249, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.item-quantity {
    font-size: 0.75rem;
    color: var(--success-color);
    background: rgba(22, 163, 74, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    opacity: 0.9;
}

.action-btn:hover:not(:disabled) {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.store-btn {
    background-color: var(--primary-color);
    color: white;
}

.store-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.equip-btn {
    background-color: var(--success-color);
    color: white;
}

.equip-btn:hover:not(:disabled) {
    background-color: var(--success-hover);
}

.action-btn:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.equipment-section.player-equipment {
    grid-column: span 1;
}

.equipment-section.stored-equipment {
    grid-column: span 1;
}

.detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    padding: 2rem;
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background-color: var(--card-background);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
