/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf5 100%);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header - Bluish gradient */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tabs */
.tabs {
    display: flex;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.tab-button {
    padding: 15px 30px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.tab-button:hover {
    background: #f0f3ff; /* light blue tint on hover */
}
.tab-button.active {
    background: white;
    border-bottom: 3px solid #667eea; /* match header start color */
    color: #667eea;
    font-weight: bold;
}

/* Tab content */
.tab-content {
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 400px;
}
.tab-pane {
    display: none;
    padding: 20px;
}
.tab-pane.active {
    display: block;
}

/* Search box */
.search-box {
    margin-bottom: 20px;
}
.search-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Table styles */
.table-container {
    overflow-x: auto;
}
.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.items-table th {
    background: linear-gradient(135deg, #f0f3ff 0%, #f5f0ff 100%);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #764ba2;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.items-table th:hover {
    background: linear-gradient(135deg, #e8ecff 0%, #ede5ff 100%);
}
.items-table th::after {
    content: '↕';
    position: absolute;
    right: 10px;
    opacity: 0.3;
    color: #667eea;
}
.items-table th.sort-asc::after {
    content: '↑';
    opacity: 1;
    color: #764ba2;
}
.items-table th.sort-desc::after {
    content: '↓';
    opacity: 1;
    color: #764ba2;
}
.items-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}
.items-table tbody tr:hover {
    background: linear-gradient(135deg, #f8faff 0%, #faf5ff 100%);
}

/* Metadata styles */
.metadata {
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

/* Race-specific styles */
.race-xenotype {
    background: linear-gradient(135deg, #f0f3ff 0%, #f5f0ff 100%);
}
.race-base {
    background-color: white;
}
.items-table tr.race-base {
    border-bottom: 2px solid #dee2e6;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
   
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
   
    .items-table th,
    .items-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
   
    header h1 {
        font-size: 2rem;
    }
}

/* Additional accents to match the bluish theme */
::selection {
    background: #667eea;
    color: white;
}

.steam-link {
    color: #1b88e9;
    text-decoration: underline;
}
.steam-link:hover {
    color: #66c0f4;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f3ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd9, #6a4295);
}
