/* Subnet Calculator Specific Styles */

/* Binary display styling */
.binary-display {
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
}

.binary-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.binary-row:last-child {
    border-bottom: none;
}

.binary-label {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.binary-value {
    font-size: 0.875rem;
    color: var(--text-primary, #212529);
    word-break: break-all;
    line-height: 1.4;
}

/* Reference table section */
.reference-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reference-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary, #212529);
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.reference-table th,
.reference-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.reference-table th {
    background: var(--bg-secondary, #f8f9fa);
    font-weight: 600;
    color: var(--text-primary, #212529);
    white-space: nowrap;
}

.reference-table td {
    color: var(--text-secondary, #495057);
}

.reference-table tbody tr:hover {
    background: var(--bg-secondary, #f8f9fa);
}

.reference-table td:first-child {
    font-weight: 600;
    color: var(--primary-color, #003049);
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .binary-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .binary-label {
        min-width: 100px;
        flex-shrink: 0;
    }

    .binary-value {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .reference-section {
        padding: 2rem;
    }

    .reference-section h2 {
        font-size: 1.5rem;
    }

    .reference-table th,
    .reference-table td {
        padding: 1rem;
    }

    .reference-table {
        font-size: 1rem;
    }

    .binary-display {
        padding: 1.5rem;
    }

    .binary-value {
        font-size: 1rem;
    }
}
