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

body.cyberpunk {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #00ffff;
    overflow-x: hidden;
}

body.cyberpunk::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    padding: 25px 15px 20px;
    position: relative;
}

.back-link {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border: 1px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.page-title {
    font-size: 1.8rem;
    color: #00ffff;
    margin-bottom: 3px;
    text-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 0.7rem;
    color: #ff00ff;
    letter-spacing: 3px;
}

.main-content {
    flex: 1;
}

.neon-box {
    background: rgba(0, 10, 20, 0.8);
    border: 2px solid #00ffff;
    border-radius: 0;
    padding: 18px;
    margin-bottom: 18px;
    position: relative;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.neon-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff, #ff00ff);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 0;
    opacity: 0.5;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.stat-card {
    background: rgba(0, 255, 255, 0.05);
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    color: #ff00ff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    color: #00ffff;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff;
}

.control-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.category-select-wrapper {
    flex: none;
    width: 180px;
    min-width: 180px;
}

.cyber-label {
    display: none;
    font-size: 0.8rem;
    color: #00ffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.cyber-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 10, 20, 0.9);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.cyber-select:hover,
.cyber-select:focus {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.cyber-select option {
    background: #0a0a0a;
    color: #00ffff;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.search-input {
    width: 200px;
    padding: 8px 12px;
    background: rgba(0, 10, 20, 0.9);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

.search-input:focus {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.search-btn {
    padding: 8px 18px;
    border: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.search-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.cyber-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cyber-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

.cyber-btn:active {
    transform: translateY(0);
}

.btn-primary {
    border-color: #00ffff;
}

.btn-primary:hover {
    background: rgba(0, 255, 255, 0.3);
}

.btn-secondary {
    border-color: #ff00ff;
    color: #ff00ff;
}

.btn-secondary:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4);
}

.btn-icon {
    font-size: 0.95rem;
}

.list-section {
    padding: 0;
    overflow: hidden;
}

.list-header {
    display: grid;
    grid-template-columns: 40px 1fr 2fr;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 2px solid #00ffff;
    font-weight: bold;
    letter-spacing: 1px;
}

.header-cell {
    color: #ff00ff;
    text-transform: uppercase;
}

.data-list {
    max-height: 500px;
    overflow-y: auto;
}

.data-list::-webkit-scrollbar {
    width: 6px;
}

.data-list::-webkit-scrollbar-track {
    background: rgba(0, 10, 20, 0.5);
}

.data-list::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 0;
}

.data-list::-webkit-scrollbar-thumb:hover {
    background: #ff00ff;
}

.data-item {
    display: grid;
    grid-template-columns: 40px 1fr 2fr;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-item:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: #00ffff;
}

.data-item:last-child {
    border-bottom: none;
}

.checkbox-cell,
.title-cell,
.link-cell {
    display: flex;
    align-items: center;
}

.cyber-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #00ffff;
}

.item-title {
    color: #00ffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-title:hover {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.item-link {
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.95rem;
    color: #666;
    letter-spacing: 1px;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: rgba(0, 10, 20, 0.9);
    border: 1px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.pagination-btn.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: rgba(0, 255, 255, 0.5);
    padding: 0 4px;
}

.pagination-info {
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-left: 10px;
    white-space: nowrap;
}

.footer {
    text-align: center;
    padding: 20px 15px;
    color: rgba(0, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header {
        padding: 20px 10px 15px;
    }

    .back-link {
        position: static;
        transform: none;
        margin-bottom: 15px;
        display: inline-block;
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .page-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .page-subtitle {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .neon-box {
        padding: 12px;
        margin-bottom: 12px;
    }

    .stats-section {
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .control-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .button-group {
        flex-direction: column;
    }

    .search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        width: 100%;
    }

    .cyber-btn {
        justify-content: center;
        width: 100%;
    }

    .list-header,
    .data-item {
        grid-template-columns: 35px 1fr 2fr;
        gap: 10px;
        padding: 10px 12px;
    }

    .item-title {
        font-size: 0.85rem;
    }

    .item-link {
        font-size: 0.75rem;
    }

    .pagination-wrapper {
        gap: 6px;
        padding: 12px 15px;
    }

    .pagination-btn {
        min-width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .data-list {
        max-height: 400px;
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .list-header,
    .data-item {
        grid-template-columns: 30px 1fr 1.5fr;
        gap: 8px;
        padding: 8px 10px;
    }

    .item-title {
        font-size: 0.8rem;
    }

    .item-link {
        font-size: 0.7rem;
    }
}
