:root {
    --bg-color: #050505;
    --bg-surface: #0a0a0c;
    --bg-panel: rgba(15, 15, 20, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f0;
    --text-secondary: #8a8a93;
    --accent-glow: 0 0 20px rgba(0, 240, 255, 0.15);
    
    /* Category Colors */
    --cat-1xx: #00f0ff;
    --cat-1xx-bg: rgba(0, 240, 255, 0.05);
    
    --cat-2xx: #00ff88;
    --cat-2xx-bg: rgba(0, 255, 136, 0.05);
    
    --cat-3xx: #ffb800;
    --cat-3xx-bg: rgba(255, 184, 0, 0.05);
    
    --cat-4xx: #ff2a5f;
    --cat-4xx-bg: rgba(255, 42, 95, 0.05);
    
    --cat-5xx: #b02aff;
    --cat-5xx-bg: rgba(176, 42, 255, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 42, 95, 0.03) 0%, transparent 40%);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.cyber-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-glitch {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    text-shadow: var(--accent-glow);
    margin-bottom: 0.5rem;
    position: relative;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Search */
.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 0.75rem;
}

#search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.5rem 0;
    outline: none;
    font-family: 'Inter', sans-serif;
}

#search-input::placeholder {
    color: rgba(138, 138, 147, 0.5);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn[data-color="info"].active { background: var(--cat-1xx); color: #000; border-color: var(--cat-1xx); }
.filter-btn[data-color="success"].active { background: var(--cat-2xx); color: #000; border-color: var(--cat-2xx); }
.filter-btn[data-color="redirect"].active { background: var(--cat-3xx); color: #000; border-color: var(--cat-3xx); }
.filter-btn[data-color="client-error"].active { background: var(--cat-4xx); color: #000; border-color: var(--cat-4xx); }
.filter-btn[data-color="server-error"].active { background: var(--cat-5xx); color: #000; border-color: var(--cat-5xx); }

/* Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.status-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.status-card:hover {
    transform: translateY(-4px);
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--card-color);
    box-shadow: 0 0 10px var(--card-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-code {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: var(--card-color);
    line-height: 1;
    letter-spacing: -2px;
}

.status-emoji {
    font-size: 1.5rem;
}

.common-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.status-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.rfc-link {
    color: var(--card-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.rfc-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Category Specifics */
.cat-1xx { --card-color: var(--cat-1xx); background: linear-gradient(145deg, var(--bg-surface), var(--cat-1xx-bg)); }
.cat-1xx:hover { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05); }

.cat-2xx { --card-color: var(--cat-2xx); background: linear-gradient(145deg, var(--bg-surface), var(--cat-2xx-bg)); }
.cat-2xx:hover { border-color: rgba(0, 255, 136, 0.3); box-shadow: 0 10px 30px rgba(0, 255, 136, 0.05); }

.cat-3xx { --card-color: var(--cat-3xx); background: linear-gradient(145deg, var(--bg-surface), var(--cat-3xx-bg)); }
.cat-3xx:hover { border-color: rgba(255, 184, 0, 0.3); box-shadow: 0 10px 30px rgba(255, 184, 0, 0.05); }

.cat-4xx { --card-color: var(--cat-4xx); background: linear-gradient(145deg, var(--bg-surface), var(--cat-4xx-bg)); }
.cat-4xx:hover { border-color: rgba(255, 42, 95, 0.3); box-shadow: 0 10px 30px rgba(255, 42, 95, 0.05); }

.cat-5xx { --card-color: var(--cat-5xx); background: linear-gradient(145deg, var(--bg-surface), var(--cat-5xx-bg)); }
.cat-5xx:hover { border-color: rgba(176, 42, 255, 0.3); box-shadow: 0 10px 30px rgba(176, 42, 255, 0.05); }

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .header-glitch { font-size: 2rem; }
    .status-grid { grid-template-columns: 1fr; }
    .subtitle { font-size: 1rem; }
}
