/* Character Encoding Page Styles */

body {
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
    min-height: 100vh;
}

.concept-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.encoding-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.encoding-table thead {
    background: #f1f5f9;
}

.encoding-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
    border-bottom: 2px solid #e2e8f0;
}

.encoding-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.encoding-table tbody tr:hover {
    background: #f8fafc;
}

.encoding-table td:first-child {
    font-size: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 0.5rem;
}

.example-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.example-box ul {
    font-family: 'Courier New', monospace;
}

/* Hide class for output */
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .concept-card {
        padding: 1.5rem;
    }
    
    .encoding-table th,
    .encoding-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}