/* Compact-Only Demo Database Styles */

:root {
    --primary-color: #ff7800;
    --glow-color: rgba(255, 120, 0, 0.6);
}

.demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    padding: 2rem;
    margin-top: 100px;
    width: 120%;
    max-width: 1365px;
}

/* Section container */
.demo-section {
    margin-bottom: 5rem;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 120, 0, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 120, 0, 0.1);
    animation: cardEntrance 0.8s ease-out forwards;
    overflow: hidden;
    width: 100%;
    align-self: center;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 120, 0, 0.1), transparent);
    border-radius: 1.5rem;
    z-index: -1;
}

.demo-section::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 200px;
    top: -100px;
    left: -25%;
    z-index: -1;
}

/* Title styling */
.demo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--glow-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.demo-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.5);
}

.demo-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    line-height: 1.5;
    font-weight: 300;
}

/* Search container */
.demo-search-container {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.demo-search-box {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 2;
}

#demo-search {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 120, 0, 0.3);
    border-radius: 1rem;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3), 0 0 0 transparent;
}

#demo-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 120, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

#demo-search::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-btn {
    background: linear-gradient(45deg, #ff7800, #ff4500);
    border: none;
    border-radius: 1rem;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    padding: 1.2rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 120, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 120, 0, 0.3);
}

.search-btn:hover::before {
    left: 100%;
}

/* Items per page control */
.pagination-controls {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 120, 0, 0.2);
    backdrop-filter: blur(5px);
    justify-content: space-between;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-per-page-label {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.items-per-page select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 120, 0, 0.2);
    border-radius: 0.5rem;
    color: white;
    padding: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    outline: none;
}

.items-per-page select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.3);
}


/* Enhanced Table Layout */
.demo-table-header {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    table-layout: fixed;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.35));
    border-radius: 0.8rem 0.8rem 0 0;
    border: 1px solid rgba(255, 120, 0, 0.3);
    border-bottom: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.demo-table-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.7;
    z-index: 1;
    box-shadow: 0 0 15px var(--glow-color);
}

.header-row {
    display: table-row;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}


.header-cell {
    display: table-cell;
    padding: 1.2rem 1rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    background: transparent;
    border-bottom: 2px solid rgba(255, 120, 0, 0.3);
    border-right: 1px solid rgba(255, 120, 0, 0.1);
    text-align: left;
    vertical-align: middle;
    position: relative;
    text-shadow: 0 0 5px rgba(255, 120, 0, 0.3);
}

/* Set width for each column */
.header-cell.map-col { width: 15%; }
.header-cell.date-col { width: 10%; }
.header-cell.server-col { width: 18%; }
.header-cell.length-col { width: 8%; text-align: center; }
.header-cell.players-col { width: 8%; text-align: center; }
.header-cell.round-col { width: 11%; text-align: center; }
.header-cell.size-col { width: 8%; text-align: right; }
.header-cell.download-col { width: 15%; text-align: center; }


.header-cell:first-child {
    border-top-left-radius: 0.5rem;
    padding-left: 1.5rem;
}

.header-cell:last-child {
    border-right: none;
}

/* Enhanced sort indicators */
.header-cell i {
    margin-left: 0.5rem;
    opacity: 0.6;
    position: relative;
    top: 1px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.header-cell:hover {
    color: #fff;
    background: rgba(255, 120, 0, 0.15);
    border-bottom-color: var(--primary-color);
}

.header-cell:hover i {
    opacity: 1;
    transform: scale(1.2);
    color: #fff;
}


.header-cell.sorted-asc i:before {
    content: "\f0dd"; /* FontAwesome up arrow */
}

.header-cell.sorted-desc i:before {
    content: "\f0de"; /* FontAwesome down arrow */
}

@keyframes sortPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.header-cell.sorted-asc,
.header-cell.sorted-desc {
    background: rgba(255, 120, 0, 0.2);
    border-bottom-color: var(--primary-color);
    color: #fff;
}

.header-cell.sorted-asc i,
.header-cell.sorted-desc i {
    animation: sortPulse 0.3s ease-out;
}



/* Active header with visual indicator */
.header-cell.sorted-asc::after,
.header-cell.sorted-desc::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Enhanced Table Body */
.demo-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed; /* Fixed layout for consistent column widths */
    border: 1px solid rgba(255, 120, 0, 0.2);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.demo-row {
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
    position: relative;
}

.demo-row:hover {
    transform: translateY(-2px);
    z-index: 1;
}

.demo-row:nth-child(odd) .demo-cell {
    background: rgba(0, 0, 0, 0.3);
}

.demo-row:nth-child(even) .demo-cell {
    background: rgba(0, 0, 0, 0.4);
}

.demo-row:nth-child(1) { animation-delay: 0.05s; }
.demo-row:nth-child(2) { animation-delay: 0.1s; }
.demo-row:nth-child(3) { animation-delay: 0.15s; }
.demo-row:nth-child(4) { animation-delay: 0.2s; }
.demo-row:nth-child(5) { animation-delay: 0.25s; }
.demo-row:nth-child(6) { animation-delay: 0.3s; }
.demo-row:nth-child(7) { animation-delay: 0.35s; }
.demo-row:nth-child(8) { animation-delay: 0.4s; }
.demo-row:nth-child(9) { animation-delay: 0.45s; }
.demo-row:nth-child(10) { animation-delay: 0.5s; }
.demo-row:nth-child(11) { animation-delay: 0.55s; }
.demo-row:nth-child(12) { animation-delay: 0.6s; }

.demo-cell {
    padding: 1rem;
    vertical-align: middle;
    border-top: none;
    border-bottom: 1px solid rgba(255, 120, 0, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* Last row with no bottom border */
.demo-row:last-child .demo-cell {
    border-bottom: none;
}

.demo-row:hover .demo-cell {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 120, 0, 0.15);
}

.demo-cell:first-child {
    padding-left: 1.5rem;
}

/* Cell styles for different data types */
.demo-cell.map-cell {
    font-weight: 700;
    color: #fff;
}

.demo-row:hover .demo-cell.map-cell {
    color: var(--primary-color);
}

.demo-cell.date-cell {
    white-space: nowrap;
}

.demo-cell.server-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-cell.length-cell {
    text-align: center;
}

.demo-cell.players-cell {
    text-align: center;
}

.demo-cell.round-cell {
    text-align: center;
}

.demo-cell.size-cell {
    white-space: nowrap;
    text-align: right;
}

/* Improved download buttons cell */
.demo-cell.download-cell {
    display: flex;
    padding: 1.0rem;
    width: 100%; /* Reduced width since we only have one button now */
    justify-content: center;
    align-items: center;
}

/* Enhanced favorite button */
.favorite-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    position: relative;
}

.favorite-btn:hover {
    color: #ffcc00;
    transform: scale(1.2);
}

.favorite-btn.active {
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.demo-download-btn {
    padding: 0.7rem 1.2rem;
    text-align: center;
    border-radius: 0.4rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    background: #ff6f00;
    color: white;
    border: none;
    width: 100%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.demo-download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.demo-download-btn.mega {
    background: #c40000;
    color: white;
    border: none;
}

.demo-download-btn.ftp {
    background: #ff6f00;
    color: white;
    border: none;
}

.demo-download-btn:hover {
    transform: translateY(-2px);
    background: #ff6f00;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.demo-download-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.demo-download-btn:hover::before {
    left: 100%;
}

.demo-download-btn.mega:hover {
    background: #ff0000;
}

.demo-download-btn.ftp:hover {
    background: #0088ff;
}

/* Button icons */
.demo-download-btn i {
    font-size: 1.1rem;
}

/* Tag system for demos */
.demo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.demo-tag {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 120, 0, 0.2);
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.demo-tag:hover {
    background: rgba(255, 120, 0, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Main pagination container */
.pagination-container-demo {
    display: flex;
    justify-content: center;
    margin: 20 auto;
    width: 100%;
}

/* Pagination list */
.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 120, 0, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 120, 0, 0.1);
}

/* Individual pagination items */
.pagination-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 120, 0, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Active page styling */
.pagination-item.active {
    background: rgba(255, 120, 0, 0.2);
    border-color: rgba(255, 120, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 120, 0, 0.2);
    transform: translateY(-2px);
}

/* Glowing underline for active page */
.pagination-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
    border-radius: 1px;
}

/* Pagination links */
.pagination-link {
    color: #fff;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
    min-width: 2.5rem;
    text-align: center;
}

/* Active page link styling */
.pagination-item.active .pagination-link {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 120, 0, 0.4);
}

/* Hover effects */
.pagination-item:not(.disabled):hover {
    background: rgba(255, 120, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 120, 0, 0.1);
    border-color: rgba(255, 120, 0, 0.3);
}

/* Previous/Next buttons */
.pagination-prev, .pagination-next {
    font-size: 0.9rem;
}

/* Disabled items */
.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.disabled .pagination-link {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Ellipsis separator */
.pagination-separator {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 120, 0, 0.1);
}

/* Enhanced hover animations */
.pagination-item:not(.disabled):hover .pagination-link {
    transform: scale(1.05);
}

.pagination-item.active:hover {
    transform: translateY(-2px);
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Rajdhani', sans-serif;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pagination-jump input {
    width: 4rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 120, 0, 0.2);
    border-radius: 0.5rem;
    color: white;
    padding: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
}

.pagination-jump button {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 120, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-jump button:hover {
    background: rgba(255, 120, 0, 0.2);
    color: white;
}

/* No demos found message */
.no-demos {
    padding: 4rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 120, 0, 0.15);
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.no-demos i {
    font-size: 4rem;
    color: rgba(255, 120, 0, 0.2);
    margin-bottom: 1.5rem;
    display: block;
}

.no-demos h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-demos p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Empty state styling for favorites and searches */
.empty-state {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 120, 0, 0.15);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 3rem;
    color: rgba(255, 120, 0, 0.2);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.empty-state-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.empty-state-action {
    margin-top: 1.5rem;
}

.empty-state-btn {
    background: rgba(255, 120, 0, 0.2);
    border: 1px solid rgba(255, 120, 0, 0.3);
    border-radius: 0.5rem;
    padding: 0.8rem 1.5rem;
    color: var(--primary-color);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state-btn:hover {
    background: rgba(255, 120, 0, 0.3);
    transform: translateY(-2px);
}


/* Loading State */
.demo-grid-loading {
    position: relative;
    min-height: 400px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 120, 0, 0.2);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.date-cell {
    width: 120px !important; /* Set fixed width for better alignment */
}

.date-display {
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.time-display {
    font-size: 0.9rem;
    color: rgba(255, 120, 0, 0.8); /* Using your theme's primary color */
    white-space: nowrap;
}

/* Stats panel styling */
.stats-panel-demo {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 120, 0, 0.2);
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.stats-grid-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card-demo {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.8rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 120, 0, 0.15);
    transition: all 0.3s ease;
}

.stat-card-demo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 120, 0, 0.1);
    border-color: rgba(255, 120, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.stat-icon-demo {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 120, 0, 0.3);
    flex-shrink: 0;
}

.stat-content-demo {
    flex-grow: 1;
}

.stat-value-demo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.stat-label-demo {
    font-family: 'Rajdhani', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .demo-cell.server-cell,
    .demo-cell.file-cell {
        max-width: 150px;
    }
    
    .header-cell, .demo-cell {
        padding: 0.8rem;
    }
    
    .stat-card-demo {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .stat-icon-demo {
        font-size: 1.8rem;
    }
    
    .stat-value-demo {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .demo-section {
        padding: 2rem;
    }
    
    .demo-search-container {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .favorite-filter {
        margin-left: 0;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-table, .demo-table-header {
        display: block;
        width: 100%;
    }
    
    .header-row, .demo-row {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(255, 120, 0, 0.15);
        border-radius: 0.5rem;
        overflow: hidden;
    }
    
    .header-cell {
        display: none; /* Hide headers on mobile */
    }
    
    .demo-cell {
        display: block;
        width: 100% !important; /* Override fixed widths */
        border: none;
        border-bottom: 1px solid rgba(255, 120, 0, 0.1);
        border-radius: 0;
        padding: 0.8rem 1rem;
        position: relative;
        padding-left: 50%;
        text-align: left !important; /* Override text alignment */
    }
    
    .demo-cell:last-child {
        border-bottom: none;
    }
    
    /* Create labels for mobile view */
    .demo-cell:before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        white-space: nowrap;
        font-weight: 700;
        color: var(--primary-color);
        text-transform: uppercase;
        font-size: 0.8rem;
        font-family: 'Orbitron', sans-serif;
    }
    
    .demo-cell.download-cell {
        padding-left: 1rem;
        display: flex;
        flex-direction: row;
    }
    
    /* Reposition favorite button on mobile */
    .demo-cell .favorite-btn {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 0;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid-demo {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .demo-container {
        padding: 1rem;
    }
    
    .demo-section {
        padding: 1.5rem;
    }
    
    .demo-title {
        font-size: 2rem;
    }
    
    .demo-description {
        font-size: 1rem;
    }
    
    .demo-pagination .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-map-buttons,
    .filter-server-buttons {
        justify-content: center;
    }
    
    .pagination-jump {
        flex-direction: column;
        width: 100%;
    }
    
    .pagination-jump button {
        width: 100%;
    }
    
    .active-filters {
        justify-content: center;
    }
    
    .stats-grid-demo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .demo-section {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .demo-title {
        font-size: 1.5rem;
    }
    
    .demo-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .demo-search-container {
        margin-bottom: 2rem;
    }
    
    #demo-search {
        padding: 1rem 1.5rem 1rem 3rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .filter-shortcuts h3 {
        font-size: 1.3rem;
    }
    
    .filter-shortcuts h4 {
        font-size: 1.1rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .pagination-info {
        font-size: 0.9rem;
    }
}