:root {
    --bg-primary: #fafafa;
    --text-primary: #121212;
    --text-secondary: #737373;
    --border: rgba(0, 0, 0, 0.06);
    --surface: #ffffff;
    --radius: 4px;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1 { font-weight: 500; letter-spacing: -0.03em; }
p { font-size: 0.95rem; color: var(--text-secondary); }

@keyframes simpleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-fade {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: simpleFadeIn 0.4s ease-out forwards;
}

.footer-link {
    font-size: 0.8rem;
    margin-top: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at 50% 50%, #fdfdfd 0%, #fafafa 100%);
}

.home-center h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 4rem;
    animation: simpleFadeIn 0.3s ease-out forwards;
}

button {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

button:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.02);
}

body:not(.home-center) {
    padding: 1.5rem 2.5rem;
    max-width: 1600px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.back-button:hover { color: var(--text-primary); }
.back-button svg { opacity: 0.5; transition: transform 0.3s; }
.back-button:hover svg { transform: translateX(-3px); opacity: 1; }

.table-header { margin-bottom: 1.5rem; flex-shrink: 0; }
.table-header h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.table-header p { font-size: 0.85rem; }

.table-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: auto;
    flex-grow: 1;
    animation: simpleFadeIn 0.5s ease-out forwards;
}

table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }

th {
    background: #fafafa;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

td {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #fcfcfc; }

tr:target td {
    background-color: rgba(0, 153, 130, 0.1) !important;
    border-top: 1px solid #009982;
    border-bottom: 1px solid #009982;
    animation: highlightFade 3s ease-out;
}

tr.highlighted td {
    background-color: rgba(0, 153, 130, 0.15) !important;
    border-top: 1px solid #009982;
    border-bottom: 1px solid #009982;
}

@keyframes highlightFade {
    0% { background-color: rgba(0, 153, 130, 0.3); }
    100% { background-color: rgba(0, 153, 130, 0.1); }
}

.search-result-row {
    cursor: pointer;
}

.search-result-row:hover td {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.search-result-row:active td {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.search-form {
    margin: 2rem 0;
    width: 100%;
    max-width: 400px;
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex-grow: 1;
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.85rem;
}

.search-results-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.search-results-container h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.search-results-table {
    width: 100%;
    text-align: left;
}

.search-results-table th {
    padding: 0.6rem;
    border-bottom: 2px solid var(--border);
    background: transparent;
    position: static;
}

.search-results-table td {
    padding: 0.6rem;
}

.no-results {
    margin: 1rem 0;
    font-style: italic;
}

.cyber-link {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.cyber-link:hover {
    color: #009982;
    border-bottom-color: #009982;
}

@media (max-width: 768px) {
    body:not(.home-center) { padding: 1rem; }
    .table-header h1 { font-size: 1.25rem; }
    .home-center h1 { font-size: 1.75rem; }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-shrink: 0;
}

.page-link {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.page-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.page-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
