:root {
    --bg-color: #050510;
    --text-color: #e0e0e0;
    --accent-color: #00f3ff;
    --accent-glow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --border-color: rgba(0, 243, 255, 0.3);
    --bg-panel: rgba(10, 15, 30, 0.8);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    text-align: center;
    margin-bottom: 10px;
}

.header h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.subtitle {
    color: #888;
    margin-top: 5px;
    font-size: 0.9rem;
}

.input-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

input[type="text"], select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus, select:focus {
    box-shadow: var(--accent-glow);
    border-color: var(--accent-color);
}

input[type="text"] {
    flex: 1;
    max-width: 400px;
}

input[type="text"]::placeholder {
    color: rgba(0, 243, 255, 0.3);
}

select {
    cursor: pointer;
    appearance: none;
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--accent-color) 50%),
                      linear-gradient(135deg, var(--accent-color) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

select option {
    background: var(--bg-color);
    color: var(--accent-color);
}

.unit-explanation {
    text-align: center;
    color: rgba(0, 243, 255, 0.6);
    font-size: 0.85rem;
    margin: 5px 0 15px 0;
    line-height: 1.5;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-container.visible {
    opacity: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

th, td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    border-right: 1px solid rgba(0, 243, 255, 0.1);
}

th:first-child, td:first-child {
    text-align: center;
    position: sticky;
    left: 0;
    background: rgba(10, 15, 30, 0.95);
    z-index: 1;
    border-right: 2px solid var(--border-color);
    font-weight: bold;
    color: var(--accent-color);
}

th {
    background: rgba(0, 243, 255, 0.1);
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 0;
}

th:first-child {
    z-index: 2;
}

tbody tr:hover {
    background: rgba(0, 243, 255, 0.05);
}

.footer {
    margin-top: 20px;
    text-align: center;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid transparent;
}

.back-link:hover {
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
    border-color: var(--accent-color);
    border-radius: 4px;
    background: rgba(0, 243, 255, 0.05);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.6);
}
